Headphone noise reduction method, headphone device and computer-readable storage medium
The wind noise signal in the Bluetooth headset is estimated and processed through the adaptive filter, which solves the problem of wind noise affecting call quality and achieves efficient wind noise suppression and call quality improvement in active noise reduction mode.
Patent Information
- Application Number
- CN202210480103.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-05
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-05-05
AI Technical Summary
When existing Bluetooth headsets make calls in wind noise scenarios, the wind noise signal in the feedback microphone affects the call quality, resulting in low call quality for the user.
An adaptive filter is used to estimate wind noise on the signal in the feedforward microphone, and the signal in the feedback microphone is denoised based on the estimated signal to reduce the impact of wind noise and improve call quality.
In the active noise reduction mode, it effectively suppresses wind noise, improves the call quality and noise reduction effect of the headset device, and optimizes the call effect.
Smart Images

Figure CN114866899B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of earphone technology, and in particular to an earphone noise reduction method, an earphone device, and a computer-readable storage medium. Background Art
[0002] Existing Bluetooth headsets usually have three microphones, of which the feedback microphone is placed inside the ear, and the pickup holes of the feedforward microphone and the call microphone are located on the outer surface of the headset. Therefore, when making a call in a scene with wind noise, the pickup holes located on the outside are easily blown directly by the wind, forming turbulence and destroying the voice signal. Therefore, in the scene of wind noise, the feedback microphone signal is usually selected as the output.
[0003] However, in the prior art, when the ANC (Active Noise Cancellation) mode of the headset is turned on, the feedback microphone collects the signal played in the speaker, and the signal played in the speaker includes the signal containing wind noise collected by the feedforward microphone after being processed by the active noise reduction filter. Therefore, the wind noise signal will have an adverse effect on the voice signal output from the feedback microphone, resulting in lower call quality when the user uses it. Summary of the invention
[0004] In view of this, the purpose of the embodiments of the present application is to provide a headphone noise reduction method, a headphone device and a computer-readable storage medium to improve the problem of low call quality of Bluetooth headsets existing in the prior art.
[0005] In order to solve the above problems, in a first aspect, the present application provides a headphone noise reduction method, the method comprising:
[0006] Calculating the first signal in the feedforward microphone according to the adaptive filter to obtain an estimated signal of wind noise;
[0007] Wind noise reduction is performed on the second signal in the feedback microphone according to the estimated signal to obtain a target signal for output.
[0008] In the above implementation process, the first signal in the feedforward microphone is used as a reference signal to calculate in an adaptive filter to obtain an estimated signal of the wind noise collected in the feedback microphone. The second signal can be used as an input signal for filtering by the adaptive filter, and the second signal is filtered according to the obtained estimated signal, thereby performing noise reduction processing on the second signal in the feedback microphone, reducing the influence of wind noise in the feedback microphone, and using the target signal output after wind noise reduction for calls, thereby improving the call quality of the headphone device. The wind noise in the call scene can be effectively suppressed while actively reducing noise, reducing the damage to the voice signal, and optimizing the noise reduction effect and call effect in the headphone device.
[0009] Optionally, the method further comprises:
[0010] A target filter coefficient of the adaptive filter is determined according to the determined wind noise index.
[0011] In the above implementation process, when there is wind noise in the scene of the user's call, considering the influence of the adaptive filter coefficient on the adaptive filtering effect, the target filter coefficient used in the next frame filtering can be determined according to the determined wind noise flag. The adaptive filtering effect of the adaptive filter can be changed correspondingly according to the change of wind noise, effectively improving the filtering effect, thereby improving the accuracy of the estimated signal obtained by filtering.
[0012] Optionally, determining a target filter coefficient of the adaptive filter according to the determined wind noise flag includes:
[0013] determining parameter data according to the wind noise indicator;
[0014] The target filter coefficient is calculated according to the parameter data and the initial filter coefficient of the adaptive filter of the current frame, and the calculation method is:
[0015] w(k,t+1)=w(k,t)+Δw(k,t);
[0016] Among them, k is the frequency, t indicates the time is the current frame, t+1 indicates the time is the next frame of the current frame, w(k,t) is the initial filter coefficient corresponding to the adaptive filter of the current frame, Δw(k,t) is the parameter data, and w(k,t+1) is the target filter coefficient corresponding to the adaptive filter of the next frame.
[0017] In the above implementation process, the filter coefficient of the adaptive filter can be continuously calculated during the wind noise period, and the parameter data of the updated part of the adaptive filter can be determined according to the wind noise flag, so as to update the initial filter coefficient based on the initial filter coefficient corresponding to the adaptive filter of the current frame in combination with the parameter data to obtain the target filter coefficient corresponding to the next frame filtering. There is a correlation between the initial filter coefficient and the target filter coefficient. When the adaptive filter coefficient is iteratively updated, it is calculated based on the current filter coefficient and the parameter data that has changed, which effectively improves the accuracy and real-time performance of the target filter coefficient, thereby improving the adaptive filtering effect of the adaptive filter.
[0018] Optionally, before determining parameter data according to the wind noise indicator, the method further includes:
[0019] determining the first signal in the feedforward microphone and the third signal in the talk microphone;
[0020] determining a cross-correlation coefficient based on the first signal and the third signal;
[0021] The wind noise signature is determined based on the cross-correlation coefficient.
[0022] In the above implementation process, since the feedforward microphone and the call microphone in the earphone device are both arranged on the outside of the earphone, the pickup holes of the two microphones will be blown by the wind, generating turbulence and causing wind noise. The wind noise correlation between the first signal and the third signal is poor, but the voice signal has a strong correlation. By determining the first signal in the feedforward microphone and the third signal in the call microphone, the wind noise situation can be judged according to the mutual correlation coefficient between the two to determine the wind noise mark, thereby improving the accuracy and correlation of the wind noise mark.
[0023] Optionally, calculating the first signal in the feedforward microphone according to the adaptive filter to obtain the estimated signal of wind noise includes:
[0024] Acquire a first time domain signal collected by the feedforward microphone;
[0025] Converting the first time domain signal to obtain the first signal, wherein the first signal is a frequency domain signal;
[0026] The first signal is input into the adaptive filter for calculation to obtain the estimated signal.
[0027] In the above implementation process, since the initial signal collected in the feedforward microphone is a time domain signal, in order to improve the effect of adaptive filtering, the first time domain signal can be converted into a first signal in the frequency domain. The first signal is used as a reference signal and is calculated in an adaptive filter to obtain an estimated signal of the wind noise signal collected by the feedback microphone. The wind noise signal collected in the feedback microphone can be estimated quickly and accurately, thereby improving the accuracy and real-time performance of the estimated signal.
[0028] Optionally, the inputting the first signal into the adaptive filter for calculation to obtain the estimated signal includes:
[0029] The input first signal and the initial filter coefficient corresponding to the adaptive filter are calculated to obtain the estimated signal, and the calculation method is:
[0030]
[0031] Among them, X f (k, t) is the first signal, w * (k, t) is the conjugate of the initial filter coefficients, is the estimated signal.
[0032] In the above implementation process, the first signal is used as the reference signal of the adaptive filter, and the corresponding calculation method is adopted, that is, the first signal in the frequency domain is multiplied by the initial filter coefficient in the current frame frequency domain, so that the corresponding estimated signal can be obtained. Since the wind noise signal in the second signal is the signal collected by the feedback microphone after the wind noise in the first signal is played through the speaker, the wind noise signals in the first signal and the second signal are strongly correlated, and the estimated signal can be determined by adaptive filtering to suppress the wind noise signal collected during the call.
[0033] Optionally, reducing wind noise on a second signal in the feedback microphone according to the estimated signal to obtain a target signal for output includes:
[0034] Acquire a second time domain signal collected by the feedback microphone from the speaker;
[0035] Converting the second time domain signal to obtain the second signal, wherein the second signal is a frequency domain signal;
[0036] The target signal is obtained by calculation according to the second signal and the estimated signal, and the calculation method is:
[0037]
[0038] Wherein, D(k,t) is the second signal, is the estimated signal, and E(k,t) is the output target signal.
[0039] In the above implementation process, the initial signal collected by the feedback microphone from the speaker is also a time domain signal. In order to facilitate unified processing during filtering, the second time domain signal can also be converted into a second signal in the frequency domain. The second signal is used as the input signal for filtering by the adaptive filter, and the second signal is filtered according to the estimated signal determined by the adaptive filtering, thereby reducing the wind noise in the second signal. The above filtering calculation method is used to remove the wind noise signal collected from the speaker playback in the second signal, so that the target signal is used as the voice signal output to the remote end for communication. The wind noise reduction process can be performed quickly and accurately, and the voice quality of the target signal is effectively improved, thereby optimizing the call effect of the headphone device and improving the call quality when the headphone device communicates with the remote end.
[0040] Optionally, before calculating the first signal in the feedforward microphone according to the adaptive filter to obtain the wind noise estimation signal, the method further includes:
[0041] Activate active noise cancellation mode on your headphones.
[0042] In the above implementation process, before filtering, the active noise reduction mode of the headphone device can be started. While reducing the ambient noise, the signal collected in the feedback microphone is used as the signal output by the headphone device. When the sound signal collected by the feedforward microphone is processed by the active noise reduction filter, played through the speaker and collected by the feedback microphone, the wind noise signal in the sound signal collected by the feedback microphone is suppressed by adaptive filtering to perform wind noise reduction processing, thereby effectively suppressing various types of noise in the output signal and improving the call quality of the headphone device.
[0043] In a second aspect, the present application further provides a headphone device, the headphone device comprising: a feedforward microphone, a feedback microphone and an adaptive filter;
[0044] The feedforward microphone is used to obtain a first signal;
[0045] The feedback microphone is used to obtain a second signal;
[0046] The adaptive filter is used to calculate the first signal in the feedforward microphone to obtain an estimated signal of wind noise;
[0047] The adaptive filter is further used to reduce wind noise of the second signal in the feedback microphone according to the estimated signal to obtain a target signal for output.
[0048] In the above implementation process, the adaptive filter uses the first signal as the reference signal for calculation and processing, and uses the second signal as the input signal, and filters the second signal according to the acquired estimated signal, thereby performing noise reduction processing on the second signal in the feedback microphone, reducing the impact of wind noise in the feedback microphone, and using the target signal output after wind noise reduction for calls, thereby improving the call quality of the headphone device. It is possible to effectively suppress wind noise in the call scene while actively reducing noise, reduce the damage to the voice signal, and optimize the noise reduction effect and call effect in the headphone device.
[0049] In a third aspect, the present application further provides a computer-readable storage medium, in which computer program instructions are stored. When the computer program instructions are read and executed by a processor, the steps in any implementation of the above-mentioned headphone noise reduction method are executed.
[0050] In summary, the present application provides a headphone noise reduction method, a headphone device, and a computer-readable storage medium, which can effectively suppress wind noise in the scene by adaptive filtering while actively reducing noise, thereby optimizing the noise reduction effect and call effect in the headphone device, and improving the call quality when the user uses the headphone device to make a call. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 A schematic diagram of a flow chart of a headphone noise reduction method provided in an embodiment of the present application;
[0053] Figure 2 A schematic diagram of a flow chart of another headphone noise reduction method provided in an embodiment of the present application;
[0054] Figure 3 A schematic diagram of a flow chart of another headphone noise reduction method provided in an embodiment of the present application;
[0055] Figure 4 A detailed flowchart of step S100 provided in an embodiment of the present application;
[0056] Figure 5 A detailed flowchart of step S200 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments of the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.
[0058] Existing Bluetooth headsets, such as TWS (True Wireless Stereo) Bluetooth headsets, usually have three microphones, a feedforward microphone, a call microphone, and a feedback microphone. The feedforward microphone and the call microphone are located outside the headset, and the feedback microphone is located inside the ear when in use. When making a call in a windy scene, since the pickup holes of the feedforward microphone and the call microphone are located on the outer surface of the headset, they are easily directly blown by the wind, forming turbulence, and the turbulence formed will destroy the voice signals collected by the feedforward microphone and the call microphone during the call.
[0059] Therefore, in the prior art, in the scenario with wind noise, the sound signal in the feedback microphone is usually selected as the output signal. However, in order to optimize the call effect of the headset, the prior art usually adopts ANC (Active Noise Cancellation) mode, such as Hybrid ANC (Hybrid Active Noise Cancellation) mode, which may include noise reduction mode and transparency mode. The noise reduction mode is a mode that achieves the purpose of noise reduction by actively canceling the ambient sound, and the transparency mode is a mode that collects the ambient sound and plays it through the speaker to avoid the ambient sound being shielded by the headset, so that the ambient sound can be heard. When the active noise reduction mode is turned on in the wind noise scenario, the feedforward microphone will collect the sound signal with wind noise, which will be passed to the speaker for playback after being processed by the active noise reduction filter, and the signal collected in the feedback microphone includes the sound signal with wind noise played in the speaker, which is sent to the remote end for calling, causing the voice signal output by the feedback microphone to be adversely affected by the wind noise, thereby reducing the user's call quality.
[0060] In the prior art, in order to reduce the wind noise in the sound signal collected by the feedback microphone, the wind noise is usually suppressed based on the cross-correlation between the feedforward microphone and the feedback microphone. However, the correlation between the feedforward microphone and the feedback microphone in the wind noise scene is very poor, which will cause serious damage to the voice signal, resulting in poor wind noise suppression effect. Alternatively, in the prior art, the active noise reduction mode of the headset is turned off in the wind noise scene, and the voice signal in the feedback microphone is directly used as the output signal. However, this situation will lose the active noise reduction effect on the ambient noise suppression, especially in the application scenario where the wind noise is intermittent, and the active noise reduction mode will be between the on and off state. As a result, the call effect of the headset in the wind noise scene is currently poor, and it is unable to provide users with higher call quality.
[0061] In order to solve the above problems, the present application embodiment provides a headphone noise reduction method, see Figure 1 , Figure 1 A schematic flow chart of a headphone noise reduction method provided in an embodiment of the present application, the method may include steps S100-S200.
[0062] Step S100: calculating a first signal in a feedforward microphone according to an adaptive filter to obtain an estimated signal of wind noise.
[0063] Among them, the first signal in the feedforward microphone may include multiple signals such as voice signals, wind noise signals and environmental noise signals in the frequency domain. Since the active noise reduction filter generates reverse noise when the headphone device turns on the active noise reduction mode, only when it is played through the speaker can the noise in the ear be offset to form a noise reduction effect. Therefore, the first signal will be played through the speaker in the headphone device, and will be collected by the feedback microphone after playing. Therefore, the wind noise collected in the feedforward microphone is strongly correlated with the wind noise collected in the feedback microphone. The first signal can be used as a reference signal and input into the adaptive filter for calculation to obtain the estimated signal of the wind noise with strong correlation in the corresponding feedforward microphone and feedback microphone.
[0064] Step S200: reducing wind noise on a second signal in the feedback microphone according to the estimated signal to obtain a target signal for output.
[0065] Among them, the second signal in the feedback microphone may include a speaker playback signal in the frequency domain obtained from the speaker, an ambient sound signal, a voice signal and other comprehensive signals collected in the ear. The speaker playback signal includes a remote call signal corresponding to the user wearing the headphone device and a first signal played after passing through an active noise reduction filter. When the headphone device turns on the active noise reduction mode, the wind noise signal in the first signal and the wind noise signal in the second signal have a strong correlation. Therefore, the second signal can be used as an input signal for filtering by an adaptive filter, and the second signal can be filtered according to the determined estimation signal, so as to remove the wind noise in the second signal, and obtain a target signal after wind noise reduction processing, and send the target signal as an output voice signal to the remote end of the call.
[0066] It is worth noting that the headphone noise reduction method provided in the embodiment of the present application can be applied to a headphone device with active noise reduction mode turned on. Before filtering, the active noise reduction mode of the headphone device can be started, or it can be applied to other modes in which the output signal includes the sound signal collected from the sound signal of the feedforward microphone played by the feedback microphone from the speaker. While reducing the ambient noise, when the sound signal collected by the feedforward microphone is processed by the active noise reduction filter, played through the speaker and collected by the feedback microphone, the wind noise signal in the sound signal collected by the feedback microphone is suppressed by adaptive filtering to perform wind noise reduction processing. While effectively suppressing the ambient noise in the near-end ear, the call quality of the headphone device is improved.
[0067] exist Figure 1 In the illustrated embodiment, while actively reducing noise, wind noise in a call scenario can be effectively suppressed through adaptive filtering, thereby reducing damage to voice signals and optimizing the noise reduction effect and call effect in the headphone device.
[0068] Optionally, see Figure 2 , Figure 2 A flowchart of another headphone noise reduction method provided in an embodiment of the present application, wherein the method can also determine a target filter coefficient of an adaptive filter according to a determined wind noise flag, and can include steps S310-S320.
[0069] Step S310: determining parameter data according to the wind noise flag.
[0070] The wind noise flag is flag information such as the size or intensity of wind noise determined according to the current wind noise scene. Wind noise refers to the noise signal caused by turbulence formed by wind blowing through the sound pickup hole. Due to the change of wind noise in the wind noise environment, considering the influence of the adaptive filter coefficient on the adaptive filtering effect, the parameter data of the adaptive filter can be determined according to the determined wind noise flag, effectively improving the accuracy of adaptive filtering.
[0071] Optionally, the parameter data may be determined by:
[0072]
[0073] Where k is the frequency point, flag(k,t) is the wind noise flag when the frequency point is k, μ is the update step size of the adaptive filter, E(k,t) is the calculated error signal, that is, the output target signal, X f (k, t) is the first signal, and Δw(k, t) is the parameter data of the updating part of the adaptive filter.
[0074] Optionally, when the wind noise flag flag(k, t) is 0, it means that the current wind noise has not changed, so the corresponding parameter data Δw(k, t) is also 0.
[0075] In order to judge the change of wind noise in the wind noise scene, a wind noise mark that can represent mark information such as the size, state or intensity of the wind noise can be obtained.
[0076] Step S320: Calculate the target filter coefficient according to the parameter data and the initial filter coefficient of the adaptive filter.
[0077] Among them, the initial filter coefficient is the filter coefficient corresponding to the adaptive filter of the current frame, and the target filter coefficient is the filter coefficient corresponding to the adaptive filter of the next frame. According to the wind noise flag in the wind noise scene, and the filter parameters such as the adaptive filter update step size in the adaptive filter, some filter parameters to be updated in the adaptive filter can be determined as parameter data generated according to the wind noise, so as to determine the filter coefficient used by the adaptive filter when filtering in the next frame.
[0078] Optionally, the filter coefficient of the adaptive filter may be continuously iteratively updated during the wind noise period, and the target filter coefficient of the next frame may be calculated according to the parameter data of the adaptive filter update part and the initial filter coefficient of the adaptive filter of the current frame. The calculation method may be:
[0079] w(k,t+1)=w(k,t)+Δw(k,t);
[0080] Among them, k is the frequency point, t indicates the time is the current frame, t+1 indicates the time is the next frame of the current frame, w(k,t) is the initial filter coefficient corresponding to the current frame adaptive filter, Δw(k,t) is the parameter data, and w(k,t+1) is the target filter coefficient corresponding to the next frame adaptive filter.
[0081] Optionally, when the parameter data Δw(k, t) is 0, the wind noise does not change, w(k, t+1)=w(k, t), the updated target filter coefficient is equal to the initial filter coefficient, and the adaptive filter of the next frame is the adaptive filter for filtering the current frame.
[0082] Optionally, since there is a correlation between the initial filter coefficient and the target filter coefficient, when the adaptive filter coefficient is iteratively updated, it is calculated based on the current filter coefficient and the parameter data of the adaptive filter update part, which effectively improves the accuracy and real-time performance of the target filter coefficient, thereby improving the adaptive filtering effect of the adaptive filter.
[0083] exist Figure 2 In the illustrated embodiment, the corresponding filtering coefficient can be determined according to the specific situation of the wind noise during the wind noise period, so that the adaptive filtering effect of the adaptive filter can change accordingly according to the change of the wind noise, thereby effectively improving the filtering effect and thus improving the accuracy of the estimated signal obtained by filtering.
[0084] Optionally, see Figure 3 , Figure 3 This is a flow chart of another headphone noise reduction method provided in an embodiment of the present application. Before step S310, the method may further include steps S410-S430.
[0085] Step S410, determining the first signal in the feedforward microphone and the third signal in the call microphone.
[0086] Among them, since the pickup holes of the feedforward microphone and the call microphone in the headphone device are both arranged on the outer surface of the headphone device, the wind noise collected by the feedforward microphone and the call microphone is caused by the turbulence generated by the wind blowing through the pickup holes of the microphone. The correlation between the sound signals about wind noise collected by the feedforward microphone and the call microphone is poor, but the sound signals of the collected voice have a strong correlation, and the first signal and the corresponding third signal can be obtained.
[0087] Optionally, the acoustic signal collected by the call microphone and the acoustic signal collected by the feedforward microphone are both time domain signals. In order to enable unified processing, the time domain signals can also be converted into frequency domain signals through discrete Fourier transform and other methods to improve the effect of adaptive filtering.
[0088] Optionally, the conversion method can be:
[0089]
[0090]
[0091] Where k is the frequency point, x t (n, t) is the third time domain signal collected from the call microphone, X t (k, t) is the third signal in the frequency domain obtained by conversion, x f (n, t) is the first time domain signal collected by the feedforward microphone, X f (k, t) is the first signal in the frequency domain obtained by conversion.
[0092] Step S420: determining a mutual correlation coefficient based on the first signal and the third signal.
[0093] In order to judge the size, state or intensity of wind noise in the wind noise scene, the correlation coefficient may be calculated based on the strong correlation between the first signal and the voice signal in the third signal. The calculation method may include:
[0094]
[0095] Where k is the frequency, X f (k, t) is the first signal, X t (k,t) is the third signal, is the conjugate third signal, and h(k,t) is the cross-correlation coefficient.
[0096] Step S430: determining the wind noise indicator based on the cross-correlation coefficient.
[0097] Optionally, the determined wind noise indicator may be:
[0098]
[0099] Among them, flag(k, t) can represent the wind noise flag of the wind noise state when the frequency point is k, and α is the set cross-correlation threshold of the wind noise state.
[0100] exist Figure 3 In the illustrated embodiment, the wind noise marker can be accurately determined based on the strong correlation between the speech signals in the call microphone and the feedforward microphone.
[0101] Optionally, see Figure 4 , Figure 4 A detailed flowchart diagram of step S100 provided in an embodiment of the present application, step S100 may also include steps S110-S130.
[0102] Step S110, obtaining a first time domain signal collected by the feedforward microphone.
[0103] Among them, the initial sound signal collected by the feedforward microphone can be obtained, and the initial sound signal is a signal in the time domain.
[0104] Step S120: convert the first time domain signal to obtain the first signal.
[0105] The first signal is a frequency domain signal, and the first time domain signal can be converted into a frequency domain signal by discrete Fourier transform or other methods to improve the effect of adaptive filtering.
[0106] Optionally, the conversion method can also be:
[0107]
[0108] Where k is the frequency point, x f (n, t) is the first time domain signal collected by the feedforward microphone, X f (k, t) is the first signal in the frequency domain obtained by conversion.
[0109] Step S130: input the first signal into the adaptive filter for calculation to obtain the estimated signal.
[0110] The first signal is used as a reference signal of the adaptive filter, and the first signal and the initial filter coefficient corresponding to the adaptive filter are input for calculation to obtain an estimated signal of wind noise. The calculation method may be:
[0111]
[0112] Among them, X f (k, t) is the first signal, w * (k, t) is the conjugate initial filter coefficient, To estimate the signal.
[0113] Optionally, since the estimated signal is the noise signal collected by the feedback microphone after the wind noise in the first signal is played through the speaker, the first signal is strongly correlated with the wind noise signal in the second signal, and the estimated signal can be determined by adaptive filtering to suppress the wind noise in the second signal and transmit it to the remote end for conversation. The first signal in the feedforward microphone can be convolved in the time domain with the initial filter coefficient in the adaptive filter, that is, multiplied in the frequency domain, to obtain the corresponding estimated signal.
[0114] exist Figure 4 In the illustrated embodiment, the estimation signal collected by the feedback microphone can be determined quickly and accurately, thereby improving the accuracy and real-time performance of the estimation signal.
[0115] Optionally, see Figure 5 , Figure 5 A detailed flow chart of step S200 is provided for an embodiment of the present application. Step S200 may also include steps S210-S230.
[0116] Step S210: acquiring a second time domain signal collected by the feedback microphone from the speaker.
[0117] Among them, the initial sound signal collected by the feedback microphone from the loudspeaker can be obtained, and the initial sound signal is also a signal in the time domain.
[0118] Step S220: convert the second time domain signal to obtain the second signal.
[0119] The second signal is a frequency domain signal. To facilitate unified processing during filtering, the second time domain signal may be converted into a frequency domain signal by discrete Fourier transform or the like to improve the effect of adaptive filtering.
[0120] Optionally, the conversion method can be:
[0121]
[0122] Wherein, k is the frequency point, d(n,t) is the second time domain signal collected in the feedback microphone, and D(k,t) is the second signal in the frequency domain obtained by conversion.
[0123] Step S230: Calculate the target signal according to the second signal and the estimated signal.
[0124] The target signal may be calculated as follows:
[0125]
[0126] Where D(k,t) is the second signal, is the estimated signal, E(k,t) is the calculated error signal, and is the output target signal.
[0127] The above calculation method is adopted, the second signal is used as the input signal when the adaptive filter is filtered, the second signal is filtered according to the acquired estimation signal, the wind noise signal collected from the speaker in the second signal is removed, and the second signal is subjected to noise reduction processing, and the target signal is used as the voice signal output to the remote end for the call. The target signal is the signal after the wind noise reduction processing, which suppresses the wind noise while causing less damage to the voice signal, thereby improving the voice signal quality during the call.
[0128] exist Figure 5 In the illustrated embodiment, wind noise reduction processing can be performed quickly and accurately, effectively improving the voice quality of the target signal, thereby optimizing the call effect of the earphone device and improving the call quality when the earphone device calls with the far end.
[0129] It is worth noting that an embodiment of the present application further provides a headphone device, which is a Bluetooth headphone of various types, and the headphone device may include a feedforward microphone, a feedback microphone and an adaptive filter.
[0130] Among them, the feedforward microphone is used to obtain the first signal, the feedback microphone is used to obtain the second signal, the adaptive filter is used to calculate the first signal in the feedforward microphone to obtain an estimated signal of wind noise, and is also used to reduce the wind noise of the second signal in the feedback microphone according to the estimated signal to obtain a target signal for output.
[0131] Optionally, the headphone device may also include a call microphone and a speaker. The speaker, adaptive filter and feedback microphone are arranged inside the headphone device, the feedforward microphone and the call microphone are arranged on the outer surface of the headphone device, and the feedback microphone is located on the side of the headphone device that contacts the ear when in use. The feedforward microphone is used to collect first signals such as voice signals and ambient noise; the call microphone is used to collect third signals during calls; the speaker is used to play far-end signals during calls and reverse noise signals after active noise reduction processing; the feedback microphone is used to collect signals played by the speaker in the ear, second signals such as voice signals and ambient sounds. Other components and structures in the headphone device can be set according to actual conditions.
[0132] The above-mentioned feedforward microphone, call microphone, feedback microphone speaker and other components are directly or indirectly electrically connected to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
[0133] It is worth noting that the headphone device may also include a processor and a memory, and the memory stores program instructions. When the processor reads and runs the program instructions, it controls the above-mentioned feedforward microphone, feedback microphone and adaptive filter to execute the steps of any one of the headphone noise reduction methods provided in the embodiments of the present application.
[0134] Among them, the memory can be, but is not limited to, random access memory (Random Access Memory, referred to as RAM), read only memory (Read Only Memory, referred to as ROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, referred to as EEPROM), etc.
[0135] The above-mentioned processor may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed.
[0136] Optionally, the headset device can also be wirelessly connected to electronic devices of various users via Bluetooth or the Internet, so as to realize functions such as calls based on the connection and the communication connection between the electronic device of the user wearing the headset device and the electronic device of the remote user. For example, the electronic device can be a server, a personal computer (PC), a tablet computer, a smart phone, a personal digital assistant (PDA), and other electronic devices with logical computing functions.
[0137] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer program instructions. When the computer program instructions are read and executed by a processor, the steps of any one of the headphone noise reduction methods provided in the present embodiment are executed.
[0138] In summary, the embodiments of the present application provide a headphone noise reduction method, a headphone device, and a computer-readable storage medium, which can effectively suppress wind noise in the scene by adaptive filtering while actively reducing noise, thereby optimizing the noise reduction effect and call effect in the headphone device, and improving the call quality when the user uses the headphone device to make a call.
[0139] In several embodiments provided in the present application, it should be understood that the disclosed device can also be implemented in other ways. The embodiments described above are merely schematic, for example, the block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices according to the multiple embodiments of the present application. In this regard, each box in the block diagram can represent a part of a module, a program segment or a code, and the part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram, and the combination of the block diagrams, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0140] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0141] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Therefore, this embodiment also provides a computer program instruction stored in a readable storage medium, and when the computer program instruction is read and executed by a processor, the steps in any method described in the block data storage method are executed. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0142] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0143] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
[0144] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
Claims
1. A method for reducing noise in headphones, characterized in that: The method comprises: Calculating the first signal in the feedforward microphone according to the adaptive filter to obtain an estimated signal of wind noise; Performing wind noise reduction on a second signal in the feedback microphone according to the estimated signal to obtain a target signal for output; The method further includes: determining the first signal in the feedforward microphone and the third signal in the call microphone; determining a cross-correlation coefficient based on the first signal and the third signal; determining a wind noise flag based on the cross-correlation coefficient; wherein the wind noise flag is flag information of the size / intensity of wind noise determined according to the current wind noise scene; Determine parameter data according to the wind noise flag; calculate the target filter coefficient used by the adaptive filter for filtering the next frame according to the parameter data and the initial filter coefficient of the adaptive filter in the current frame, and the calculation method is: ; in, is the frequency point, Indicates that the time is the current frame, Indicates that the time is the next frame of the current frame. is the initial filter coefficient corresponding to the adaptive filter of the current frame, is the parameter data, The target filter coefficient corresponding to the adaptive filter of the next frame; The parameter data is determined in the following manner: ; in, is the frequency point, The frequency is Wind noise indicator, is the update step size of the adaptive filter, is the target signal, is the first signal, The parameter data of the adaptive filter update part; when the wind noise flag When it is 0, it indicates that the current wind noise has not changed, and the corresponding parameter data is 0.
2. The method according to claim 1, characterized in that: The step of calculating the first signal in the feedforward microphone according to the adaptive filter to obtain an estimated signal of wind noise includes: Acquire a first time domain signal collected by the feedforward microphone; Converting the first time domain signal to obtain the first signal, wherein the first signal is a frequency domain signal; The first signal is input into the adaptive filter for calculation to obtain the estimated signal.
3. The method according to claim 2, characterized in that The step of inputting the first signal into the adaptive filter for calculation to obtain the estimated signal comprises: The input first signal and the initial filter coefficient corresponding to the adaptive filter are calculated to obtain the estimated signal, and the calculation method is: ; in, is the first signal, is the conjugate of the initial filter coefficients, is the estimated signal.
4. The method according to claim 1, characterized in that: The step of reducing wind noise on the second signal in the feedback microphone according to the estimated signal to obtain a target signal for output includes: Acquire a second time domain signal collected by the feedback microphone from the speaker; Converting the second time domain signal to obtain the second signal, wherein the second signal is a frequency domain signal; The target signal is obtained by calculation according to the second signal and the estimated signal, and the calculation method is: ; in, is the second signal, is the estimated signal, is the target signal to be output.
5. The method according to any one of claims 1 to 4, characterized in that: Before calculating the first signal in the feedforward microphone according to the adaptive filter to obtain the wind noise estimation signal, the method further includes: Activate active noise cancellation mode on your headphones.
6. A headphone device, characterized in that: The earphone device comprises: a feedforward microphone, a feedback microphone, a call microphone and an adaptive filter; The feedforward microphone is used to obtain a first signal; The feedback microphone is used to obtain a second signal; The call microphone is used to obtain a third signal; The adaptive filter is used to calculate the first signal in the feedforward microphone to obtain an estimated signal of wind noise; The adaptive filter is further used to reduce wind noise of the second signal in the feedback microphone according to the estimated signal to obtain a target signal for output; The adaptive filter is further used to determine a mutual correlation coefficient based on the first signal and the third signal; determine a wind noise flag based on the mutual correlation coefficient; wherein the wind noise flag is flag information of the size / intensity of wind noise determined according to the current wind noise scene; The adaptive filter is further used to determine parameter data according to the wind noise flag; and calculate the target filter coefficient used by the adaptive filter for filtering the next frame according to the parameter data and the initial filter coefficient of the adaptive filter in the current frame, in the following manner: ; in, is the frequency point, Indicates that the time is the current frame, Indicates that the time is the next frame of the current frame. is the initial filter coefficient corresponding to the adaptive filter of the current frame, is the parameter data, The target filter coefficient corresponding to the adaptive filter of the next frame; The parameter data is determined in the following manner: ; in, is the frequency point, The frequency is Wind noise indicator, is the update step size of the adaptive filter, is the target signal, is the first signal, The parameter data of the adaptive filter update part; when the wind noise flag When it is 0, it indicates that the current wind noise has not changed, and the corresponding parameter data is 0.
7. A computer-readable storage medium, characterized in that: The readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the steps in the method according to any one of claims 1 to 5 are executed.
