Disclosure of Invention
The application aims to provide a processing method for suppressing audio background noise and a related device, which are used for suppressing background noise signal values in audio input signals before gain processing, reducing interference caused by gain amplification of the background noise signal values and improving user experience.
In a first aspect, the present application provides a method for suppressing audio background noise, applied to a sound system, including:
acquiring an audio input signal, wherein the audio input signal is a signal which is not subjected to gain processing;
performing suppression processing on the audio input signal according to a preset background noise signal value to obtain a first audio output signal, wherein the target background noise signal value is a signal value which is preset and needs to be suppressed;
Gain processing is carried out on the first audio output signal according to a preset volume table to obtain a second audio output signal, wherein the volume table records digital power amplifier gains corresponding to different volume steps;
And playing according to the second audio output signal.
Optionally, the preset background noise signal value is a device-specific noise value of the sound system, and/or,
The preset background noise signal value is a target noise value which is set to be suppressed.
Optionally, the suppressing the audio input signal according to the preset background noise signal value includes:
the background noise signal values in the audio input signal are attenuated with a large slope such that the background noise signal values in the audio input signal are locally suppressed.
Optionally, before acquiring the audio input signal, the method further comprises:
Determining the device specific noise value of the sound system, and/or,
And determining the target noise value to be suppressed.
Optionally, the method further comprises:
receiving modification of digital power amplifier gains corresponding to different volume steps in the volume meter to obtain a new volume meter;
the performing gain processing on the first audio output signal according to a preset sound meter includes:
And performing gain processing on the first audio output signal according to the new sound meter.
Optionally, the volume meter is set with default values of digital power amplifier gains corresponding to different volume steps;
and when a gain recovery default value instruction is received, recovering the default value of the digital power amplifier gain corresponding to different volume step numbers in the volume table.
In a second aspect, the present application provides an apparatus for suppressing audio background noise, applied to a sound system, comprising:
An acquisition unit configured to acquire an audio input signal, the audio input signal being a signal that is not gain-processed;
The suppression unit is used for performing suppression processing on the audio input signal according to a preset background noise signal value to obtain a first audio output signal, wherein the target background noise signal value is a signal value which is preset and needs to be suppressed;
the gain unit is used for carrying out gain processing on the first audio output signal according to a preset volume table to obtain a second audio output signal, and the volume table records digital power amplification gains corresponding to different volume steps;
and the playing unit is used for playing according to the second audio output signal.
Optionally, the preset background noise signal value is a device-specific noise value of the sound system, and/or,
The preset background noise signal value is a target noise value which is set to be suppressed.
Optionally, when the suppression unit performs suppression processing on the audio input signal according to a preset background noise signal value, the suppression unit is specifically configured to:
the background noise signal values in the audio input signal are attenuated with a large slope such that the background noise signal values in the audio input signal are locally suppressed.
Optionally, the apparatus further includes:
a determining unit for determining the device-specific noise value of the sound system, and/or,
The determining unit is further configured to determine setting the target noise value to be suppressed.
Optionally, the apparatus further includes:
the receiving unit is used for receiving the modification of the digital power amplifier gains corresponding to different volume steps in the volume meter to obtain a new volume meter;
The gain unit is specifically configured to, when performing gain processing on the first audio output signal according to a preset sound meter:
And performing gain processing on the first audio output signal according to the new sound meter.
Optionally, the volume meter is set with default values of digital power amplifier gains corresponding to different volume steps;
And the recovery unit is used for recovering the digital power amplifier gains corresponding to different volume steps in the volume table to the default value when receiving a gain recovery default value instruction.
In a third aspect, the present application provides a computer device comprising:
processor, memory, bus, input/output interface, network interface;
the processor is connected with the memory, the input/output interface and the network interface through buses;
the memory stores a program;
The processor implements the method for suppressing audio noise floor according to any one of the above first aspects when executing the program stored in the memory.
In a fourth aspect, the present application provides a computer storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method for suppressing audio noise floor according to any one of the first aspects.
In a fifth aspect, the present application provides a computer program product, which when executed on a computer, causes the computer to perform the method of suppressing audio noise floor as described in any one of the first aspects above.
The above technical solution can be seen that the embodiment of the application has the following advantages:
The method for suppressing audio background noise applied to the sound system comprises the steps of obtaining an audio input signal, suppressing the audio input signal according to a preset background noise signal value to obtain a first audio output signal, setting a target background noise signal value to be a signal value to be suppressed in advance, performing gain processing on the first audio output signal according to a preset sound meter to obtain a second audio output signal, recording digital power amplification gains corresponding to different sound volume steps in the sound meter, and playing according to the second audio output signal to suppress the background noise signal value in the audio input signal before gain processing, so that interference caused by gain amplification of the background noise signal value is reduced, and user experience of playing sound of the sound system is improved.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It should be noted that, the background noise mentioned in this embodiment is also referred to as "background noise", and generally refers to an intrinsic noise that exists and is generated when there is no signal input in an electronic device or an electronic system, where the background noise refers to an intrinsic background noise that is irrelevant to a target signal during a signal transmission or recording process. Background noise may originate from circuit disturbances (e.g., thermal noise) within various electronic devices, from fine sounds in the environment (e.g., air conditioning sounds, fan sounds), or from noise inherent in the sound-insulating housing, and in electroacoustic systems background noise is also defined as "total noise other than useful signals" including device noise (e.g., white noise, pink noise), playback ambient noise, and the like.
The Sound system, called Sound (Sound) for short, refers to a whole set of equipment capable of playing back audio signals. The sound system of the embodiment mainly comprises sound source equipment, tuning equipment, power amplification equipment, a loudspeaker, an audio cable, a power supply and the like, wherein the sound source equipment is used for generating audio input signals, for example, the sound source equipment is a CD player, a radio, a computer and the like, an audio carrier of the sound source equipment can be a mobile hard disk, an optical disk, a magnetic tape and the like, the tuning equipment is mainly used for amplifying, equalizing and regulating the audio input signals input by the sound source equipment, mixing multipath signals and distributing the multipath signals to different output ends to realize the core of a sound chain, ensuring sound equalization and flexible control, the power amplification equipment is mainly used for amplifying front-stage signals distributed by the tuning equipment to drive the loudspeaker and outputting high voltage and high current, the loudspeaker is a sound box and a loudspeaker and is mainly used for converting the audio signals into sound waves and used as a final link of sound mechanical wave output in the sound equipment, and the loudspeaker can comprise single sound channel, stereo, quasi-stereo sound channel, four-channel surrounding, 5.1 sound channel and the like according to site requirements, the audio cable is connected among the sound source equipment, the tuning equipment, the power amplification equipment and the loudspeaker and is used for guaranteeing the audio mechanical wave conversion into sound mechanical wave, and the stable transmission process, and the power supply is used for providing the sound source equipment and the power supply equipment. In sound systems, where the background noise is also present, this process may introduce background noise from the time the audio input signal is generated by the source device until it is converted to an acoustic mechanical wave through the speaker.
At present, the input sensitivity of product equipment carrying a sound system to audio signals is adjusted to be higher, tiny audio signals can be well restored, the integrity of sound is ensured, the loudness and definition of sound expressed by the audio signals can be enhanced, namely, the high sensitivity of the sound system to the input of the audio signals can improve the tone quality of the tiny signals, but when the input sensitivity of the audio signals is adjusted to be higher, the gain of a transmission link of the whole audio signals is larger, so that noise signals contained in the audio signals can be amplified along with the input, and the user experience is affected.
With the foregoing understanding, referring to fig. 1, an embodiment of a method for suppressing audio noise floor applied to a sound system of the present application includes:
101. An audio input signal is acquired.
The audio input signal of the present embodiment refers to a signal that has not undergone gain processing. For example, the audio input signal is a signal obtained from a sound source device of a sound system and not processed by a tuning device.
102. And performing suppression processing on the audio input signal according to a preset background noise signal value to obtain a first audio output signal.
The preset background noise signal value in this embodiment is a signal value that needs to be suppressed, for example, the background noise signal value is an inherent noise value that the sound system itself has and generates when no signal is input. The noise floor signal value can be obtained by detecting, testing and evaluating the sound system. The step can perform suppression processing on the audio input signal according to a preset background noise signal value, so as to obtain a first audio output signal.
Specifically, the step can carry out large slope attenuation on the background noise signal value in the audio input signal, so that the background noise signal value in the audio input signal is locally restrained, and the suppression processing of the background noise signal value is realized. For example, assuming that the background noise signal value is-90 dB signal, when the audio system is subjected to digital power amplification debugging, interface display of large slope attenuation is not performed on-90 dB signal input in a DRC software debugging interface, as shown in FIG. 6, interface display of large slope attenuation is performed on-90 dB signal input in the DRC software debugging interface, as shown in FIG. 7, a red line is an input-to-output power curve of the power amplifier, large slope attenuation is performed on-90 dB signal input, namely, electric signal output is locally restrained at the-90 dB signal input, and experiments show that the background noise is obviously weakened on actual hearing, so that the experience of the whole audio system is improved.
103. And performing gain processing on the first audio output signal according to a preset sound meter to obtain a second audio output signal.
In this embodiment, the volume meter records the digital power amplification gains corresponding to different volume steps, and the digital power amplification gains can be controlled by using the volume meter through a digital power amplification gain software interface (for example, as shown in fig. 8), so as to achieve the output inhibition of the small volume electrical signal. Specifically, assuming that different angles of rotation of the power amplifier VOLUME knob correspond to different VOLUME step numbers, the VOLUME meter of this embodiment may be as shown in fig. 9. According to the embodiment, the gain processing of the first audio output signal according to the sound meter is achieved by rotating the VOLUME knob of the power amplifier, and the second audio output signal is obtained.
104. Playing according to the second audio output signal.
And playing the second audio output signal obtained in the step 103 through a loudspeaker of the sound system to realize the sound function. Therefore, in combination with the steps 102 and 103, the background noise signal value of the sound system can be effectively suppressed, the background noise signal value in the audio input signal is suppressed before the gain processing, the interference caused by the background noise signal value being amplified by the gain is reduced, the signal-to-noise ratio of the small-volume effective signal and the noise signal in the sound system is improved, and the user hearing experience of the whole sound system is improved.
Referring to fig. 2, another embodiment of a method for suppressing audio noise floor applied to a sound system of the present application includes:
201. And/or, determining the target noise value to be suppressed.
It should be noted that, in this embodiment, the device inherent noise value of the sound system needs to be measured, for example, it may be obtained by detecting, testing and evaluating the sound system, and in order to achieve a better noise floor suppression effect, in this embodiment, a target noise value set by the user according to the actual needs is also reserved, where the target noise value may be ambient noise.
202. An audio input signal is acquired.
The execution of this step is similar to step 101 in the embodiment of fig. 1, and the repetition is not repeated here.
203. And performing suppression processing on the audio input signal according to a preset background noise signal value to obtain a first audio output signal.
The execution of this step is similar to step 102 in the embodiment of fig. 1, and the repetition is not repeated here.
204. And receiving modification of the digital power amplifier gains corresponding to different volume steps in the volume table to obtain a new volume table.
It can be understood that the preset volume table in the embodiment can be modified according to actual needs so as to meet dynamic actual needs, default values of digital power amplification gains corresponding to different volume steps are set in the volume table in the embodiment, and when a gain recovery default value instruction is received, the default values of the digital power amplification gains corresponding to different volume steps in the volume table are recovered.
205. And performing gain processing on the first audio output signal according to the new sound meter to obtain a second audio output signal.
The execution of this step is similar to step 103 in the embodiment of fig. 1, and the repetition is not repeated here.
206. Playing according to the second audio output signal.
The execution of this step is similar to step 104 in the embodiment of fig. 1, and the repetition is not repeated here.
The embodiment utilizes the DRC power curve setting of the digital power amplifier to inhibit small signals, and then utilizes the sound meter to control the gain of the digital power amplifier, so that the signal-to-noise ratio of the sound system can be improved on the whole. The digital power amplifier DRC and the volume meter control gain design can improve the input sensitivity of the sound system, so that the sound product has good tone quality experience at high volume. The signal to noise ratio of the sound system at the low volume effective signal and the noise signal enables the experience of the whole sound product to be improved.
The above embodiment describes an embodiment of a method for suppressing audio background noise applied to a sound system, and the following describes an apparatus for suppressing audio background noise applied to a sound system, referring to fig. 3, an embodiment of an apparatus for suppressing audio background noise applied to a sound system of the present application includes:
An acquisition unit 301, configured to acquire an audio input signal, where the audio input signal is a signal that is not subjected to gain processing;
The suppression unit 302 is configured to perform suppression processing on the audio input signal according to a preset background noise signal value, so as to obtain a first audio output signal, where the target background noise signal value is a signal value that is preset and needs to be suppressed;
The gain unit 303 is configured to perform gain processing on the first audio output signal according to a preset volume table, so as to obtain a second audio output signal, where the volume table records digital power amplification gains corresponding to different volume steps;
and the playing unit 304 is configured to play according to the second audio output signal.
The operation performed by a processing device for suppressing audio noise floor applied to a sound system in this embodiment is similar to that described in the foregoing embodiment of fig. 1, and will not be repeated here.
Referring to fig. 4, another embodiment of an audio noise floor suppressing apparatus for a sound system according to the present application includes:
An acquisition unit 401 for acquiring an audio input signal, which is a signal that is not gain-processed;
The suppression unit 402 is configured to perform suppression processing on the audio input signal according to a preset background noise signal value, so as to obtain a first audio output signal, where the target background noise signal value is a signal value that is preset and needs to be suppressed;
The gain unit 403 is configured to perform gain processing on the first audio output signal according to a preset volume table, so as to obtain a second audio output signal, where the volume table records digital power amplification gains corresponding to different volume steps;
and the playing unit 404 is configured to play according to the second audio output signal.
Optionally, the preset background noise signal value is a device-specific noise value of the sound system, and/or,
The preset background noise signal value is a target noise value which is set to be suppressed.
Optionally, when the suppressing unit 402 performs the suppressing process on the audio input signal according to the preset background noise signal value, the suppressing unit is specifically configured to:
the background noise signal values in the audio input signal are attenuated with a large slope such that the background noise signal values in the audio input signal are locally suppressed.
Optionally, the apparatus further includes:
A determination unit 405 for determining the device specific noise value of the sound system, and/or,
The determining unit 405 is further configured to determine setting the target noise value to be suppressed.
Optionally, the apparatus further includes:
a receiving unit 406, configured to receive modification of digital power amplifier gains corresponding to different volume steps in the volume table, so as to obtain a new volume table;
the gain unit 403 is specifically configured to, when performing gain processing on the first audio output signal according to a preset sound meter:
And performing gain processing on the first audio output signal according to the new sound meter.
Optionally, the volume meter is set with default values of digital power amplifier gains corresponding to different volume steps;
And the restoration unit 407 is configured to restore the digital power amplifier gain corresponding to different volume steps in the volume table to the default value when a gain restoration default value instruction is received.
The operation performed by a processing device for suppressing audio noise floor applied to a sound system in this embodiment is similar to that described in the foregoing embodiment of fig. 2, and will not be repeated here.
Referring to fig. 5, an embodiment of a computer device according to an embodiment of the present application includes:
The computer device 500 may include one or more processors (central processing units, CPU) 501 and memory 502, with one or more applications or data stored in the memory 502. Wherein the memory 502 is volatile storage or persistent storage. The program stored in memory 502 may include one or more modules, each of which may include a series of instruction operations in a computer device. Still further, the processor 501 may be configured to communicate with the memory 502 and execute a series of instruction operations in the memory 502 on the computer device 500. The computer device 500 may also include one or more wireless network interfaces 503, one or more input/output interfaces 504, and/or one or more operating systems, such as HarmonyOS, windows Server, mac OS, unix, linux, freeBSD, etc. The processor 501 may perform the operations performed in any of the embodiments shown in fig. 1-2, and detailed descriptions thereof are omitted herein.
In the several embodiments provided in the embodiments of the present application, it should be understood by those skilled in the art that the disclosed systems, apparatuses and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. The storage medium includes a usb disk, a removable hard disk, a read-only memory (ROM), a random-access memory (RAM, random access memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather is intended to cover all modifications, equivalents, or alternatives falling within the spirit and principles of the application.