Disclosure of Invention
The invention aims to provide a noise reduction method and a noise reduction device for a headset, which are used for improving the noise reduction effect.
To achieve the purpose, the embodiment of the invention adopts the following technical scheme:
a method for reducing noise of an earphone is applied to the earphone, and the earphone comprises a main microphone, an auxiliary microphone and a bone conduction microphone;
the method comprises the following steps:
acquiring ambient noise through the auxiliary microphone;
processing the environmental noise to obtain an environmental noise value;
when the ambient noise value is greater than a first ambient noise threshold and less than a second ambient noise threshold, acquiring a first human voice signal through the bone conduction microphone and acquiring a first audio signal through the main microphone, wherein the first audio signal comprises a second human voice signal and an ambient sound signal;
and superposing the first human voice signal and the second human voice signal to obtain a target human voice signal.
Optionally, the superimposing the first human voice signal and the second human voice signal to obtain a target human voice signal includes:
comparing the first human voice signal with the second human voice signal, and determining the environment sound signal from the first audio signal;
weakening the environment sound signal in the first audio signal to obtain a processed audio signal;
and superposing the first human voice signal and the processed audio signal to obtain a target human voice signal.
Optionally, the first vocal signal is a low-frequency vocal signal;
the second voice signal is a high-frequency voice signal.
Optionally, the method further comprises:
acquiring the first audio signal through the primary microphone when the ambient noise value is less than or equal to the first ambient noise threshold;
emitting sound waves in anti-phase with the ambient noise to cancel the ambient noise.
Optionally, the method further comprises:
when the ambient noise value is greater than or equal to the second ambient noise threshold value, acquiring the first human acoustic signal through the bone conduction microphone.
Optionally, the headset is a bluetooth headset;
the main microphone is positioned at the bottom of the earphone;
the auxiliary microphone is positioned on one side of the earphone, which is far away from the loudspeaker hole of the earphone;
the bone conduction microphone is located on one side of the earphone close to the speaker hole of the earphone.
Optionally, the primary microphone and the secondary microphone are silicon microphones;
the amplitude of the audio picked up by the main microphone and the auxiliary microphone is larger than that of the audio picked up by the bone conduction microphone;
the audio frequency bandwidth picked up by the main microphone and the auxiliary microphone is wider than the audio frequency bandwidth picked up by the bone conduction microphone.
In order to achieve the purpose, the embodiment of the invention also adopts the following technical scheme:
an earphone noise reduction device is applied to an earphone, and the earphone comprises a main microphone, an auxiliary microphone and a bone conduction microphone;
the noise reduction device for a headphone includes:
a first acquisition unit configured to acquire ambient noise through the auxiliary microphone;
the processing unit is used for processing the environmental noise to obtain an environmental noise value;
a second obtaining unit, configured to obtain a first human voice signal through the bone conduction microphone and obtain a first audio signal through the main microphone when the ambient noise value is greater than a first ambient noise threshold and smaller than a second ambient noise threshold, where the first audio signal includes a second human voice signal and an ambient sound signal;
and the superposition unit is used for superposing the first voice signal and the second voice signal to obtain a target voice signal.
Optionally, the superimposing unit includes a determining module, a weakening module, and a superimposing module;
the determining module is configured to compare the first vocal signal with the second vocal signal, and determine the environmental sound signal from the first audio signal;
the weakening module is used for weakening the environment sound signal in the first audio signal to obtain a processed audio signal;
the superposition module is used for superposing the first human voice signal and the processed audio signal to obtain a target human voice signal.
Optionally, the headphone noise reduction apparatus further comprises a transmitting unit;
the second obtaining unit is further configured to obtain the first audio signal through the main microphone when the ambient noise value is less than or equal to the first ambient noise threshold;
the transmitting unit is further used for transmitting sound waves opposite in phase to the environmental noise so as to offset the environmental noise.
The invention has the beneficial effects that:
the earphone noise reduction method is applied to an earphone, the earphone comprises a main microphone, an auxiliary microphone and a bone conduction microphone, and in the earphone noise reduction method, the auxiliary microphone is used for acquiring environmental noise and processing the environmental noise to obtain an environmental noise value. When the ambient noise value is greater than the first ambient noise threshold value and less than the second ambient noise threshold value, certain ambient noise is indicated, and for this reason, a first human voice signal is acquired through the bone conduction microphone, and a first audio signal is acquired through the main microphone, wherein the first audio signal comprises a second human voice signal and an ambient sound signal. And then, superposing the first human voice signal and the second human voice signal to obtain a target human voice signal. In such a way, the human voice acquired by the bone conduction microphone is utilized, so that the human voice signal is enhanced, the proportion of environmental noise is weakened, and the noise reduction effect is improved.
Detailed Description
The embodiment of the invention provides a method and a device for reducing noise of a headset, which are used for improving the noise reduction effect.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings.
Fig. 1 is a flowchart of a noise reduction method for an earphone according to an embodiment of the present invention. The earphone noise reduction method provided by the embodiment of the invention is applied to an earphone, and the earphone comprises a main microphone, an auxiliary microphone and a bone conduction microphone.
As shown in fig. 1, the method for reducing noise of a headphone according to an embodiment of the present invention includes:
step 101: ambient noise is picked up by the secondary microphone.
An auxiliary microphone is arranged on the earphone, and the earphone acquires environmental noise through the auxiliary microphone. Wherein the auxiliary microphone is a non-bone conduction microphone.
In the embodiments of the present invention, the ambient noise mainly refers to sounds other than the human voice of the user using the headset.
Step 102: and processing the environmental noise to obtain an environmental noise value.
Wherein the ambient noise value represents a magnitude of the ambient noise.
And after the earphone acquires the environmental noise, processing the environmental noise to obtain an environmental noise value. According to the environmental noise value, the noise of the environment where the earphone is located can be determined.
Step 103: when the ambient noise value is greater than the first ambient noise threshold and less than the second ambient noise threshold, a first human voice signal is acquired through the bone conduction microphone, and a first audio signal is acquired through the primary microphone.
Wherein the first audio signal comprises the second human voice signal and the environment sound signal.
The first ambient noise threshold and the second ambient noise threshold are preset audio values representing different magnitudes of ambient noise.
When the ambient noise value is greater than the first ambient noise threshold and less than the second ambient noise threshold, it indicates that there is a certain noise in the environment. At this time, if the earphone emits sound waves opposite in phase to the noise to perform active noise reduction, the noise reduction effect may be not good due to large ambient noise, and for this reason, a bone conduction microphone may be used to participate in noise reduction. The earphone acquires a first human voice signal through the bone conduction microphone and acquires a first audio signal through the main microphone, wherein the main microphone is a non-bone conduction microphone, and the first audio signal acquired by the main microphone comprises a second human voice signal and an environment sound signal. The ambient sound signal includes ambient noise, and the first and second human voice signals are sound signals generated by a user using the headset.
Step 104: and superposing the first human voice signal and the second human voice signal to obtain a target human voice signal.
After the earphone acquires the first human voice signal and the first audio signal, the sound signals generated by the user using the earphone are carried with the same voice content because of the first human voice signal and the second human voice signal, so that the earphone can superpose the first human voice signal and the second human voice signal in the first audio signal, and the obtained target human voice signal is the enhanced human voice signal. Accordingly, the specific gravity of the ambient noise is weakened, and thus, the noise reduction effect is improved.
In an embodiment of the invention, the target person sound signal may be used for uplink transmission in the headset, for example, to be sent to a communication device for communication.
In summary, the noise reduction method for the earphone according to the embodiment of the present invention is applied to an earphone, where the earphone includes a main microphone, an auxiliary microphone, and a bone conduction microphone. When the ambient noise value is greater than the first ambient noise threshold value and less than the second ambient noise threshold value, certain ambient noise is indicated, and for this reason, a first human voice signal is acquired through the bone conduction microphone, and a first audio signal is acquired through the main microphone, wherein the first audio signal comprises a second human voice signal and an ambient sound signal. And then, superposing the first human voice signal and the second human voice signal to obtain a target human voice signal. In such a way, the human voice acquired by the bone conduction microphone is utilized, so that the human voice signal is enhanced, the proportion of environmental noise is weakened, and the noise reduction effect is improved.
Fig. 2 is a flowchart of a noise reduction method for an earphone according to an embodiment of the present invention, and fig. 3 is a schematic structural diagram of an earphone according to an embodiment of the present invention. The method for reducing noise of the earphone of the embodiment shown in fig. 2 can be implemented based on the method for reducing noise of the earphone of the embodiment shown in fig. 1. The method for reducing noise of the earphone of the embodiment shown in fig. 2 can be applied to the earphone shown in fig. 3.
Referring to fig. 2, the noise reduction method for an earphone according to the embodiment of the present invention is applied to an earphone, where the earphone includes a main microphone, an auxiliary microphone, and a bone conduction microphone.
Specifically, optionally, as shown in fig. 3, the headset of the embodiment of the present invention is a bluetooth headset. The main microphone 301 is located at the bottom of the headset, so as to conveniently acquire the call voice of the user. The auxiliary microphone 302 is located on the side of the headset away from the speaker hole of the headset to facilitate the capture of ambient noise. The bone conduction microphone 303 is located on the side of the headset near the speaker hole of the headset to facilitate solid state sound transmission with the user.
After the user wears the headset, the main microphone 301 at the bottom of the headset can pick up the user call voice and the ambient sound. The secondary microphone 302 is located outside the ear so that ambient sounds can be picked up. The bone conduction microphone 303 is located inside the ear, near the facial bone, and can conduct voice through the bone.
The main microphone, the auxiliary microphone and the bone conduction microphone may be implemented in various ways, and optionally, the main microphone and the auxiliary microphone are silicon microphones and belong to common microphones.
The amplitude of the audio picked up by the main microphone and the auxiliary microphone is larger than that of the audio picked up by the bone conduction microphone. The main microphone and the auxiliary microphone pick up wider audio frequency bandwidth than the bone conduction microphone.
In some specific examples, the bone conduction microphone conducts solid state sound transmission with the user, so that the bone conduction microphone picks up only human voice without ambient noise. The bone conduction microphone has the characteristics that the audio amplitude is small, the frequency width of the picked audio is narrow and is only 2.4Khz, and the human voice recovery effect is common sometimes.
In some specific examples, the silicon microphone can synchronously pick up human voice and environmental sound, the amplitude of audio picked up by the silicon microphone is large, the bandwidth is wide and can reach 8k, and the human voice recovery effect is good.
The following describes in detail a noise reduction method for a headphone according to an embodiment of the present invention, where the noise reduction method for a headphone according to an embodiment of the present invention is applicable to the headphone.
Referring to fig. 2, the method for reducing noise of a headphone according to an embodiment of the present invention includes:
step 201: ambient noise is picked up by the secondary microphone.
Be provided with on the earphone and assist the microphone, because of assisting the microphone and being located the earphone and keep away from one side in the speaker hole of earphone, the user is wearing the back to the earphone, assists the microphone and is located the ear outside to, the earphone accessible is assisted the microphone and is acquireed ambient noise. Wherein the ambient noise mainly refers to sounds other than the human voice of the user using the headset.
Step 202: and processing the environmental noise to obtain an environmental noise value.
Wherein the ambient noise value represents a magnitude of the ambient noise.
And after the earphone acquires the environmental noise, processing the environmental noise to obtain an environmental noise value.
Specifically, the earphone picks up a time domain signal of external environmental noise through the auxiliary microphone, transforms the time domain signal of the environmental noise into a frequency domain signal through an internal Fast Fourier Transform (FFT) algorithm, collects amplitude conditions of frequency points (for example, 50Hz, 500Hz, 1kHz, 2kHz, and 4kHz) of the frequency domain signal, and obtains an environmental noise value based on an amplitude ratio of the frequency points, wherein the environmental noise value comprehensively reflects the magnitude of the external environmental noise.
Step 203: when the ambient noise value is greater than the first ambient noise threshold and less than the second ambient noise threshold, a first human voice signal is acquired through the bone conduction microphone, and a first audio signal is acquired through the primary microphone.
Wherein the first audio signal comprises the second human voice signal and the environment sound signal. The first ambient noise threshold and the second ambient noise threshold are preset audio values representing different magnitudes of ambient noise. In particular, the first and second ambient noise thresholds may be identified based on a ratio of the speech band component and other band components in the scene.
Since the bone conduction microphone and the user perform solid state sound transmission, the audio signal picked up by the bone conduction microphone is a first human sound signal, which is a signal of the voice uttered by the user. After the user wears the earphone, the main microphone positioned at the bottom of the earphone can pick up the conversation voice and the environmental sound of the user. Thus, the first audio signal acquired by the main microphone comprises the second human voice signal and the ambient sound signal. Because the bone conduction microphone and the main microphone are arranged on the same earphone, the first human voice signal and the second human voice signal are voice signals sent by the same user, and the environment sound signal comprises environment noise.
When the ambient noise value is greater than the first ambient noise threshold and less than the second ambient noise threshold, it indicates that there is a certain noise in the environment, and at this time, the ambient noise is not suitable for active noise reduction by emitting sound waves opposite to the noise through the earphone, and for this reason, a bone conduction microphone may be used to pick up speech to participate in noise reduction.
Optionally, the first vocal signal is a low frequency vocal signal and the second vocal signal is a high frequency vocal signal based on characteristics of the bone conduction microphone and the silicon microphone.
Step 204: and comparing the first voice signal with the second voice signal, and determining the environment sound signal from the first audio signal.
Because of first people's voice signal and the signal of the pronunciation that the same user sent are for the second people's voice signal to compare first people's voice signal and second people's voice signal, determine the environment tone signal from first audio signal, this second people's voice signal and the environment tone signal that has realized separating first audio signal.
Step 205: and weakening the environment sound signal in the first audio signal to obtain a processed audio signal.
After determining the ambient sound signal from the first audio signal, the ambient sound signal in the first audio signal is attenuated, so that the resulting processed audio signal reduces the ambient noise.
Step 206: and superposing the first human voice signal and the processed audio signal to obtain a target human voice signal.
The earphone can superpose the first human voice signal and process the audio signal to obtain a target human voice signal. The processing audio signal comprises the second voice signal, and the environmental noise is weakened, so that the target voice signal has a clearer voice effect.
For example, in one particular example, when the ambient noise value is greater than the first ambient noise threshold and less than the second ambient noise threshold, the first human voice signal is acquired through the bone conduction microphone and the first audio signal is acquired through the primary microphone. Due to bandwidth limitations, the first vocal signal is mainly low frequency components below 2 kHz. The speech spectrum of the first vocal signal is a pure vocal part. The first audio signal comprises a second human voice signal and an environment sound signal, namely, a human voice part and an environment part exist in a voice frequency spectrum of the first audio signal, the first audio signal and the first human voice signal are compared and processed, the human voice part and the environment part of the first audio signal are separated, the environment sound signal in the first audio signal is weakened, and the processed audio signal is obtained. After the voice frequency spectrum of the first human voice signal and the voice frequency spectrum of the processed audio signal are superposed, the first human voice signal of the low-frequency component is used, and the high-frequency component of voice is supplemented through the second human voice signal in the processed audio signal, so that the voice acquired by the earphone is clear, the noise reduction effect is improved, and the conversation effect is optimized.
It should be understood that the steps 204, 205 and 206 are one of specific implementations of the step of superimposing the first vocal sound signal and the second vocal sound signal to obtain the target vocal sound signal.
Optionally, when the ambient noise value is less than or equal to the first ambient noise threshold, it indicates that the external ambient noise is small, and at this time, the headset acquires the first audio signal through the main microphone. And the earphone emits sound waves in anti-phase with the ambient noise to counteract the ambient noise. In step 201, the earphone acquires the ambient noise through the auxiliary microphone, and after the ambient noise is processed, the earphone emits sound waves in anti-phase with the ambient noise, so that the noise can be eliminated by using the cancellation principle. At this time, the first audio signal acquired by the main microphone is subjected to noise reduction processing.
Alternatively, when the ambient noise value is greater than or equal to the second ambient noise threshold, it indicates that the external ambient noise is large, so that the earphone acquires the first human voice signal through the bone conduction microphone. By using the bone conduction microphone alone to pick up speech, ambient noise can be greatly reduced.
Therefore, the earphone noise reduction method provided by the embodiment of the invention compares the first environmental noise threshold value with the second environmental noise threshold value by using the environmental noise value, determines three different scenes, and uses different noise reduction schemes in the different scenes, so that a better noise reduction effect can be realized on the premise of ensuring proper conversation tone quality. Even if the noise of the external environment is large, for example, the wind noise is large, the noise reduction method of the earphone can still achieve a good noise reduction effect.
It should be understood that the method for reducing noise of a headset according to the embodiment of the present invention can be applied to headsets requiring uplink noise reduction.
In summary, the noise reduction method for the earphone according to the embodiment of the present invention is applied to an earphone, where the earphone includes a main microphone, an auxiliary microphone, and a bone conduction microphone. When the ambient noise value is greater than the first ambient noise threshold value and less than the second ambient noise threshold value, certain ambient noise is indicated, and for this reason, a first human voice signal is acquired through the bone conduction microphone, and a first audio signal is acquired through the main microphone, wherein the first audio signal comprises a second human voice signal and an ambient sound signal. And then, superposing the first human voice signal and the second human voice signal to obtain a target human voice signal. In such a way, the human voice acquired by the bone conduction microphone is utilized, so that the human voice signal is enhanced, the proportion of environmental noise is weakened, and the noise reduction effect is improved.
Fig. 4 is a schematic structural diagram of a noise reduction device for an earphone according to an embodiment of the present invention. The headphone noise reduction apparatus shown in fig. 4 may be used to perform the headphone noise reduction methods of the embodiments shown in fig. 1 and 2, and the headphone noise reduction apparatus shown in fig. 4 may be integrated on a headphone, for example, the headphone shown in fig. 3.
Referring to fig. 4, the noise reduction apparatus for an earphone according to the embodiment of the present invention is applied to an earphone, where the earphone includes a main microphone, an auxiliary microphone, and a bone conduction microphone.
The noise reduction device of the earphone comprises:
a first obtaining unit 401, configured to obtain ambient noise through an auxiliary microphone;
a processing unit 402, configured to process the environmental noise to obtain an environmental noise value;
a second obtaining unit 403, configured to obtain a first human voice signal through the bone conduction microphone and obtain a first audio signal through the main microphone when the ambient noise value is greater than the first ambient noise threshold and less than the second ambient noise threshold, where the first audio signal includes the second human voice signal and the ambient sound signal;
and a superimposing unit 404, configured to superimpose the first vocal signal and the second vocal signal to obtain a target vocal signal.
Optionally, the superimposing unit 404 comprises a determining module 405, a muting module 406, and a superimposing module 407;
a determining module 405, configured to compare the first vocal signal with the second vocal signal, and determine an environmental sound signal from the first audio signal;
a muting module 406, configured to mute the ambient sound signal in the first audio signal to obtain a processed audio signal;
and the superposition module 407 is configured to superpose the first human voice signal and the processed audio signal to obtain a target human voice signal.
Optionally, the first vocal signal is a low-frequency vocal signal;
the second human voice signal is a high-frequency human voice signal.
Optionally, the headphone noise reduction apparatus further comprises a transmitting unit 408;
a second obtaining unit 403, further configured to obtain a first audio signal through the main microphone when the ambient noise value is less than or equal to the first ambient noise threshold;
the transmitting unit 408 is also used to emit sound waves in anti-phase with the ambient noise to cancel the ambient noise.
Optionally, the second obtaining unit 403 is further configured to obtain the first human voice signal through the bone conduction microphone when the ambient noise value is greater than or equal to the second ambient noise threshold.
Optionally, the headset is a bluetooth headset;
the main microphone is positioned at the bottom of the earphone;
the auxiliary microphone is positioned on one side of the earphone, which is far away from the loudspeaker hole of the earphone;
the bone conduction microphone is located on the side of the earphone near the speaker hole of the earphone.
Optionally, the primary and secondary microphones are silicon microphones;
the audio amplitude values picked up by the main microphone and the auxiliary microphone are larger than the audio amplitude values picked up by the bone conduction microphones;
the main microphone and the auxiliary microphone pick up wider audio frequency bandwidth than the bone conduction microphone.
In summary, the noise reduction device for an earphone according to the embodiment of the present invention is applied to an earphone, where the earphone includes a main microphone, an auxiliary microphone, and a bone conduction microphone. In the noise reduction device for the earphone according to the embodiment of the present invention, the first obtaining unit 401 obtains the ambient noise through the auxiliary microphone, and the processing unit 402 processes the ambient noise to obtain the ambient noise value. When the ambient noise value is greater than the first ambient noise threshold and less than the second ambient noise threshold, the second obtaining unit 403 obtains the first human voice signal through the bone conduction microphone, and obtains the first audio signal through the main microphone, where the first audio signal includes the second human voice signal and the ambient sound signal. The superimposing unit 404 superimposes the first human voice signal and the second human voice signal to obtain a target human voice signal. In such a way, the human voice acquired by the bone conduction microphone is utilized, so that the human voice signal is enhanced, the proportion of environmental noise is weakened, and the noise reduction effect is improved.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.