Filtering method, filter apparatus, chip, and earphone
Through the combination of hardware and software transparency filters, the noise floor problem in headphone transparency mode is solved, the transparency effect and sound clarity are improved, and sound distortion is reduced.
Patent Information
- Application Number
- PCT/CN2023/089150
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2024-10-24
AI Technical Summary
It is difficult for headphones to effectively reduce the noise floor in transparent mode, resulting in limited transparent bandwidth and affecting the user's listening experience.
A combination method of hardware transmission filter and software transmission filter is used to process the sound signal collected by the external microphone. The hardware transmission filter gains the mid- and low-frequency signals, and the software transmission filter performs noise reduction on the sound signal. The high-frequency signal is gained, and a compensation signal is generated by combining the two to reduce the noise floor.
It improves the transparency effect of the earphones, reduces the noise floor in the compensation signal, reduces the sound distortion heard by the wearer, and enhances the clear perception of environmental sounds.
Smart Images

Figure CN2023089150_24102024_PF_FP_ABST
Abstract
Description
Filtering method, filtering device, chip and earphone Technical Field
[0001] Embodiments of the present application relate to the field of audio processing, and more specifically, to a filtering method, a filtering device, a chip, and headphones. Background Art
[0002] Headphones, especially in-ear headphones, block most ambient sound when worn normally. Generally, headphone wearers want to be able to clearly hear the surrounding sounds in certain scenarios, so headphones need to have a transparency mode. The transparency mode of headphones can use a transparency filter to boost the sound outside the headphones, thereby restoring the external sound inside the ear. The transparency effect of headphones directly affects the user's auditory experience, so how to improve the transparency effect of headphones has become a problem that needs to be solved.
[0003] Summary of the Invention
[0004] The embodiments of the present application provide a filtering method, a filtering device, a chip, and headphones, which can improve the transparency effect of the headphones.
[0005] In a first aspect, a filtering method is provided for headphones with a transparent mode, the headphones including an external-ear microphone, wherein a sound signal collected by the external-ear microphone includes a signal in a first frequency band and a signal in a second frequency band, wherein at least part of the first frequency band is lower than at least part of the second frequency band. The method comprises: processing the sound signal based on a first transparent filter to obtain a first filtered signal of the sound signal, wherein the first transparent filter is a hardware transparent filter, and a gain of the first transparent filter for the signal in the first frequency band of the sound signal is greater than a gain of the first transparent filter for the signal in the second frequency band of the sound signal; performing noise reduction processing on the sound signal, and processing the noise-reduced sound signal based on a second transparent filter to obtain a second filtered signal of the sound signal, wherein the second transparent filter is a software transparent filter, and a gain of the second transparent filter for the signal in the second frequency band of the sound signal after the noise reduction is greater than a gain of the second transparent filter for the signal in the first frequency band of the sound signal after the noise reduction; and determining a compensation signal for the headphones based on the first filtered signal and the second filtered signal.
[0006] The software transparent filter includes, for example, an FIR filter or an IIR filter, and the hardware transparent filter includes, for example, an FIR filter or an IIR filter.
[0007] In one implementation, performing noise reduction processing on the sound signal includes: obtaining a pre-estimated noise floor signal; and determining the sound signal after noise reduction based on the noise floor signal and the sound signal.
[0008] In one implementation, the headset further includes a speaker and an in-ear microphone, and the method further includes: determining a secondary transfer function based on an audio signal output by the speaker and an in-ear signal collected by the in-ear microphone; and determining the first transparent filter based on an external ear signal collected by the external ear microphone when the headset is worn and a signal received in the ear when the headset is not worn.
[0009] In one implementation, the method further includes: determining the energy values of multiple frequency bands of the sound signal; and adjusting the energy values of the multiple frequency bands of the compensation signal according to the energy values of the multiple frequency bands of the sound signal, so that the energy values of the multiple frequency bands of the compensation signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0010] In one implementation, the energy values of the multiple frequency bands of the compensation signal are adjusted separately according to the energy values of the multiple frequency bands of the sound signal, including: determining the adjustment amount corresponding to each frequency band according to the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band; and adjusting the energy value of each frequency band of the compensation signal according to the adjustment amount corresponding to each frequency band.
[0011] In one implementation, determining the adjustment amount corresponding to each frequency band based on the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band includes: determining the adjustment amount corresponding to each frequency band based on the difference between the energy value of each frequency band and the energy threshold corresponding to each frequency band.
[0012] In one implementation, the multiple frequency bands are frequency bands whose energy values exceed corresponding energy thresholds among N frequency bands of the sound signal, where N is a positive integer.
[0013] In one implementation, the method further includes: determining the energy values of multiple frequency bands of the sound signal; the first transparent filter is also used to adjust the energy values of the multiple frequency bands of the sound signal so that the energy values of the multiple frequency bands of the first filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands; the second transparent filter is also used to adjust the energy values of the multiple frequency bands of the sound signal after noise reduction so that the energy values of the multiple frequency bands of the second filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0014] In one implementation, the first transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band according to the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band, and adjust the energy value of each frequency band of the sound signal according to the adjustment amount corresponding to each frequency band; the second transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band according to the energy value of each frequency band in the multiple frequency bands of the sound signal after noise reduction and the energy threshold corresponding to each frequency band, and adjust the energy value of each frequency band of the sound signal after noise reduction according to the adjustment amount corresponding to each frequency band.
[0015] In one implementation, the first transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band based on the difference between the energy value of each frequency band of the sound signal and the energy threshold corresponding to each frequency band; the second transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band based on the difference between the energy value of each frequency band of the sound signal after noise reduction and the energy threshold corresponding to each frequency band.
[0016] In one implementation, the multiple frequency bands are frequency bands whose energy values exceed corresponding energy thresholds among N frequency bands of the sound signal, where N is a positive integer.
[0017] In one implementation, the first frequency band is less than or equal to a preset first frequency threshold, the second frequency band is greater than or equal to a preset second frequency threshold, and the first frequency threshold and the second frequency threshold are between 2 kHz and 3 kHz.
[0018] In a second aspect, a filtering device is provided, which is applied to headphones with a transparent mode, the headphones including an external ear microphone, the sound signal collected by the external ear microphone including a signal in a first frequency band and a signal in a second frequency band, at least part of the frequency band in the first frequency band being lower than at least part of the frequency band in the second frequency band, the filtering device including: a first transparent filter for processing the sound signal to obtain a first filtered signal of the sound signal, the first transparent filter being a hardware transparent filter, the gain of the first transparent filter for the signal in the first frequency band in the sound signal being greater than the gain of the first transparent filter for the signal in the second frequency band in the sound signal; a processing module for performing background noise reduction processing on the sound signal; a second transparent filter for processing the sound signal after background noise reduction to obtain a second filtered signal of the sound signal, the second transparent filter being a software transparent filter, the gain of the second transparent filter for the signal in the second frequency band in the sound signal after background noise reduction being greater than the gain of the second transparent filter for the signal in the first frequency band in the sound signal after background noise reduction;
[0019] The processing module is further configured to determine a compensation signal for the earphone according to the first filtered signal and the second filtered signal.
[0020] The software transparent filter includes, for example, an FIR filter or an IIR filter, and the hardware transparent filter includes, for example, an FIR filter or an IIR filter.
[0021] In one implementation, the processing module is specifically configured to: obtain a pre-estimated background noise signal; and determine the sound signal after background noise reduction according to the background noise signal and the sound signal.
[0022] In one implementation, the earphones further include a speaker and an in-ear microphone, and the processing module is further used to: determine a secondary transfer function based on the audio signal output by the speaker and the in-ear signal collected by the in-ear microphone; and determine the first transparent filter based on the out-of-ear signal collected by the out-of-ear microphone when the earphones are worn and the signal received in the ear when the earphones are not worn.
[0023] In one implementation, the processing module is also used to: determine the energy values of multiple frequency bands of the sound signal; and adjust the energy values of the multiple frequency bands of the compensation signal according to the energy values of the multiple frequency bands of the sound signal, so that the energy values of the multiple frequency bands of the compensation signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0024] In one implementation, the processing module is specifically used to: determine the adjustment amount corresponding to each frequency band based on the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band; and adjust the energy value of each frequency band of the compensation signal based on the adjustment amount corresponding to each frequency band.
[0025] In one implementation, the processing module is specifically configured to determine the adjustment amount corresponding to each frequency band according to a difference between the energy value of each frequency band and an energy threshold corresponding to each frequency band.
[0026] In one implementation, the multiple frequency bands are frequency bands whose energy values exceed corresponding energy thresholds among N frequency bands of the sound signal, where N is a positive integer.
[0027] In one implementation, the first transparent filter is further used to adjust the energy values of the multiple frequency bands of the sound signal so that the energy values of the multiple frequency bands of the first filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands; the second transparent filter is further used to adjust the energy values of the multiple frequency bands of the sound signal after noise reduction so that the energy values of the multiple frequency bands of the second filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0028] In one implementation, the first transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band according to the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band, and adjust the energy value of each frequency band of the sound signal according to the adjustment amount corresponding to each frequency band; the second transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band according to the energy value of each frequency band in the multiple frequency bands of the sound signal after noise reduction and the energy threshold corresponding to each frequency band, and adjust the energy value of each frequency band of the sound signal after noise reduction according to the adjustment amount corresponding to each frequency band.
[0029] In one implementation, the first transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band based on the difference between the energy value of each frequency band of the sound signal and the energy threshold corresponding to each frequency band; the second transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band based on the difference between the energy value of each frequency band of the sound signal after noise reduction and the energy threshold corresponding to each frequency band.
[0030] In one implementation, the multiple frequency bands are frequency bands whose energy values exceed corresponding energy thresholds among N frequency bands of the sound signal, where N is a positive integer.
[0031] In one implementation, the first frequency band is less than or equal to a preset first frequency threshold, the second frequency band is greater than or equal to a preset second frequency threshold, and the first frequency threshold and the second frequency threshold are between 2 kHz and 3 kHz.
[0032] In a third aspect, a chip is provided, comprising a processor and a memory, wherein the memory stores computer instructions, and the processor calls the computer instructions to enable the device to implement the filtering method described in the first aspect or any implementation of the first aspect.
[0033] In a fourth aspect, an earphone is provided with a transparency mode, the earphone comprising: a speaker; an external microphone; an internal microphone; and the filtering device described in the second aspect or any implementation of the second aspect, or the chip described in the third aspect.
[0034] In a fifth aspect, a filtering method is provided, which is applied to headphones with a transparent mode, wherein the headphones include an external microphone, and the method includes: determining the energy values of multiple frequency bands of the sound signal collected by the external microphone; and adjusting the energy values of the multiple frequency bands of the sound signal so that the energy values of the multiple frequency bands are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0035] In one implementation, the adjusting the energy values of the multiple frequency bands of the sound signal so that the energy values of the multiple frequency bands are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands includes: processing the sound signal based on a transparent filter to obtain a filtered signal; wherein, the adjusting the energy values of the multiple frequency bands of the sound signal so that the energy values of the multiple frequency bands are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands includes: adjusting the energy values of the multiple frequency bands of the filtered signal so that the energy values of the multiple frequency bands of the filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0036] In one implementation, the adjusting the energy values of the multiple frequency bands of the filtered signal so that the energy values of the multiple frequency bands of the filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands includes: based on the transparent filter or another filter other than the transparent filter, adjusting the energy values of the multiple frequency bands of the filtered signal so that the energy values of the multiple frequency bands of the filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0037] In one implementation, the adjusting the energy values of the multiple frequency bands of the filtered signal includes: determining the adjustment amount corresponding to each frequency band based on the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band, and adjusting the energy value of each frequency band of the sound signal based on the adjustment amount corresponding to each frequency band.
[0038] In one implementation, determining the adjustment amount corresponding to each frequency band based on the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band includes: determining the adjustment amount corresponding to each frequency band based on the difference between the energy value of each frequency band of the sound signal and the energy threshold corresponding to each frequency band.
[0039] In one implementation, the multiple frequency bands are frequency bands whose energy values exceed corresponding energy thresholds among N frequency bands of the sound signal, where N is a positive integer.
[0040] In one implementation, the first frequency band is less than a preset first frequency threshold, the second frequency band is greater than or equal to a preset second frequency threshold, and the first frequency threshold and the second frequency threshold are between 2 kHz and 3 kHz.
[0041] In a sixth aspect, a filtering device is provided for use with headphones with a transparency mode, the headphones including an external microphone for collecting sound signals. The filtering device comprises: a processing module for determining energy values of multiple frequency bands of the sound signal; and a filter module for adjusting the energy values of the multiple frequency bands of the sound signal so that the energy values of the multiple frequency bands are less than or equal to energy thresholds corresponding to the multiple frequency bands.
[0042] In one implementation, the filter module includes a transparent filter, which is used to: process the sound signal to obtain a filtered signal; wherein the transparent filter is also used to: adjust the energy values of the multiple frequency bands of the filtered signal so that the energy values of the multiple frequency bands of the filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands; or, the filter module also includes another filter other than the transparent filter, and the other filter is used to: receive the filtered signal and adjust the energy values of the multiple frequency bands of the filtered signal so that the energy values of the multiple frequency bands of the filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0043] In one implementation, the transparent filter or the other filter is specifically used to: determine the adjustment amount corresponding to each frequency band according to the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band, and adjust the energy value of each frequency band of the compensation signal according to the adjustment amount corresponding to each frequency band.
[0044] In one implementation, the transparent filter or the another filter is specifically configured to determine the adjustment amount corresponding to each frequency band according to a difference between an energy value of each frequency band and an energy threshold corresponding to each frequency band.
[0045] In one implementation, the multiple frequency bands are frequency bands whose energy values exceed corresponding energy thresholds among N frequency bands of the sound signal, where N is a positive integer.
[0046] In the seventh aspect, a chip is provided, comprising a processor and a memory, wherein the memory stores computer instructions, and the processor calls the computer instructions to enable the device to implement the filtering method described in the fifth aspect or any implementation method of the fifth aspect.
[0047] In an eighth aspect, an earphone is provided with a transparency mode, the earphone comprising: a speaker; an external microphone; an internal microphone; and the filtering device described in the sixth aspect or any implementation of the sixth aspect, or the chip described in the seventh aspect.
[0048] Based on the above technical solution, a first transparent filter and a second transparent filter are used to process the sound signal collected by the external microphone, respectively. The first transparent filter is a hardware transparent filter, and the second transparent filter is a software transparent filter. Typically, headphones have strong passive isolation for high-frequency signals, requiring a higher gain to be added to the high-frequency signal to boost it, resulting in the noise floor being mainly concentrated in the high-frequency part. Therefore, the hardware transparent filter's gain for the mid- and low-frequency signals in the sound signal is greater than its gain for the high-frequency signal, resulting in the first filtered signal being dominated by the mid- and low-frequency signals. In addition, the sound signal is subjected to noise reduction processing, and the software transparent filter's gain for the high-frequency signal in the noise-reduced sound signal is greater than its gain for the mid- and low-frequency signals. In this way, the second filtered signal is dominated by the high-frequency signal after noise reduction, which can be used to compensate for the high-frequency signal in the first filtered signal. Combining the first and second filtered signals can produce the headphone compensation signal. Since the high-frequency signal in the second filtered signal is the signal that has undergone noise reduction processing, the problem of large noise floor in the compensation signal is solved. Moreover, since the sound ultimately heard by the human ear is the superposition of the sound processed by the transparent filter and the sound leaked to the human ear, when the wearer speaks to himself, the frequency of the human voice is concentrated in the medium and low frequencies. The software transparent filter mainly processes the high-frequency signals and suppresses the medium and low-frequency signals. This can greatly reduce the processing delay of the software transparent filter on the sound signal, reduce the time difference between the processed sound and the sound leaked to the human ear, and reduce the sound distortion heard by the wearer. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] FIG1 is a schematic flow chart of a filtering method according to an embodiment of the present application.
[0050] FIG2 is a schematic diagram of an earphone according to an embodiment of the present application.
[0051] FIG3 is a schematic diagram of a possible implementation of the method shown in FIG1 .
[0052] FIG4 is a schematic diagram of a first transparent filter in an earphone.
[0053] FIG5 is a schematic diagram of another possible implementation of the method shown in FIG1 .
[0054] FIG6 is a schematic diagram of another possible implementation of the method shown in FIG1 .
[0055] FIG7 is a schematic diagram of another possible implementation of the method shown in FIG1 .
[0056] FIG8 is a schematic diagram of a possible specific implementation of the method shown in FIG1 .
[0057] FIG9 is a schematic flowchart of a filtering method according to another embodiment of the present application.
[0058] FIG10 is a schematic block diagram of a filtering device according to an embodiment of the present application.
[0059] FIG11 is a schematic block diagram of a filtering device according to another embodiment of the present application. DETAILED DESCRIPTION
[0060] The technical solution in this application will be described below with reference to the accompanying drawings.
[0061] The transparent mode of the headphones can use the Hear Through (HT) filter to lift the sound outside the headphones, thereby restoring the external sound inside the ear. However, this will also amplify the background noise of the internal circuit of the headphones, causing the playback sound of the headphones to carry a large background noise. In a quiet environment, such as an office, the microphone needs to transmit very little sound. At this time, a large part of the input signal is the background noise of the circuit. The input signal is amplified by the HT filter, making the sound of the background noise particularly obvious. Reducing the background noise of the circuit itself through a hardware circuit requires a higher cost and is also difficult to eliminate the background noise.
[0062] Noise floor is also a significant factor limiting the bandwidth of transparency. Considering this issue, the current market's headphones typically have a transparency bandwidth of approximately 2kHz-3.5kHz, ensuring transparency within this frequency range. If this noise floor issue can be addressed, a wider bandwidth can be achieved when designing HT filters. This can also be applied to hearing aids and other devices to address the noise floor issue, minimizing damage to the human ear.
[0063] Typically, software transparency can be used to remove the circuit noise mixed in the input signal, reducing the noise floor to below the human ear's audible threshold. While using software transparency alone can address the noise floor issue to a certain extent, software transparency has a greater latency than hardware transparency, which can cause the wearer of the headphones to hear their own voice distorted when speaking. This is due to the time difference between the compensated human voice emitted by the headphone speakers and the human voice transmitted by bone conduction.
[0064] To this end, an embodiment of the present application provides a filtering method applied to headphones with a transparency mode, which processes the collected sound signals by combining software transparency and hardware transparency, thereby solving the above-mentioned background noise problem and sound distortion problem to a certain extent and improving the transparency effect of the headphones.
[0065] FIG1 is a schematic flow chart of a filtering method according to an embodiment of the present application. The method 100 shown in FIG1 is applied to headphones with a transparent mode, for example, the headphones 10 shown in FIG2 can be applied. The headphones described in the embodiment of the present application should be understood in a broad sense, and include not only headphones in the traditional sense shown in FIG2 , but also other types of sound players such as auxiliary or hearing aid devices. As shown in FIG2 , the headphones 10 include a speaker 11, an external ear microphone 12, and an internal ear microphone 13. The external ear microphone 12 can be called a feedforward (FF) microphone or a reference microphone, which is used to collect sound signals transmitted from outside the ear, or external ear data. The internal ear microphone 13 can be called a feedback (FB) microphone, which is used to collect sound signals inside the ear, or internal ear data. In the transparent mode, the sound signal collected by the external ear microphone 12 is processed by the transparent filter and outputs a compensation signal, and the residual signal leaking from the outside of the headphones 10 into the human ear is superimposed, so that the human ear can hear the complete sound of the external environment. When the user wears the earphones 10 to talk to other people, he or she can switch the earphones 10 to the transparent mode without taking off the earphones 10, so as to achieve a clear conversation with the other party.
[0066] The method 100 shown in Figure 1 can be executed by a filtering device in the headset 10, for example, by a chip in the headset 10, such as an audio codec (codec) chip or a Bluetooth audio system chip (System on a Chip, SOC). The sound signal collected by the external ear microphone 12 includes a signal in a first frequency band and a signal in a second frequency band. Among them, at least part of the frequency band in the first frequency band is lower than at least part of the frequency band in the second frequency band. Here, the first frequency band can be regarded as a medium and low frequency signal, and the second frequency band can be regarded as a high frequency signal. Optionally, the first frequency band is less than or equal to a preset first frequency threshold, and the second frequency band is greater than or equal to a preset second frequency threshold. The first frequency threshold is, for example, between 2KHz and 3KHz, and the second frequency threshold is, for example, between 2KHz and 3KHz.
[0067] The first frequency threshold and the second frequency threshold may be equal, for example, both the first frequency threshold and the second frequency threshold are 2.5 kHz, or both the first frequency threshold and the second frequency threshold are 2.8 kHz. The first frequency threshold and the second frequency threshold may also be unequal, for example, the first frequency threshold is greater than the second frequency threshold, for example, the first frequency threshold is 2.8 kHz and the second frequency threshold is 2.5 kHz; or for another example, the first frequency threshold is less than the second frequency threshold, for example, the first frequency threshold is 2.5 kHz and the second frequency threshold is 2.8 kHz.
[0068] As shown in FIG1 , method 100 includes some or all of the following steps.
[0069] In step 110 , the sound signal collected by the external ear microphone 12 is processed based on a first transparent filter to obtain a first filtered signal of the sound signal.
[0070] The first transparent filter is a hardware transparent filter, also known as a hardware transparent module, which can amplify the gain of signals in a specific frequency band. For example, the hardware transparent filter is a hardware filter circuit. In the embodiment of the present application, the first transparent filter is used to suppress signals in the second frequency band of the collected sound signal, that is, to transparently transmit the signals in the first frequency band, so that the first filtered signal is mainly composed of signals in the first frequency band. In other words, the gain of the first transparent filter on the signals in the first frequency band of the sound signal is greater than the gain of the first transparent filter on the signals in the second frequency band of the sound signal.
[0071] The gain of the first transparent filter for signals in the first frequency band can be greater than 1, equal to 1, or less than 1. A gain greater than 1 indicates that the signals in the first frequency band are amplified, a gain less than 1 indicates that the signals in the first frequency band are attenuated, and a gain equal to 1 indicates that the signals in the first frequency band are not amplified or attenuated. Similarly, the gain of the first transparent filter for signals in the second frequency band can be greater than 1, equal to 1, or less than 1. A gain greater than 1 indicates that the signals in the second frequency band are amplified, a gain less than 1 indicates that the signals in the second frequency band are attenuated, and a gain equal to 1 indicates that the signals in the second frequency band are not amplified or attenuated. For example, the gain of the first transparent filter for signals in the first frequency band and the gain for signals in the second frequency band can both be greater than 1 or less than 1; or the gain of the first transparent filter for signals in the first frequency band can be greater than 1 and the gain for signals in the second frequency band can be less than or equal to 1; or the gain of the first transparent filter for signals in the first frequency band can be greater than or equal to 1 and the gain for signals in the second frequency band can be less than 1.
[0072] In step 120 , the sound signal collected by the external ear microphone 12 is subjected to noise reduction processing, and the sound signal after noise reduction is processed based on a second transparent filter to obtain a second filtered signal of the sound signal.
[0073] The second transparent filter is a software transparent filter, also known as a software transparent module. The software transparent filter is a digital filter designed in the program, which can amplify the gain of the signal in a specific frequency band through a filtering algorithm. For example, the software transparent filter can include a finite impulse response (FIR) filter or an infinite impulse response (IIR) filter to perform software filtering on the sound signal after eliminating the background noise; for another example, the hardware transparent filter can include a finite impulse response (FIR) filter or an infinite impulse response (IIR) filter to perform hardware filtering on the sound signal collected by the external microphone 12. In the embodiment of the present application, the second transparent filter is used to suppress the signal in the first frequency band of the collected sound signal, that is, to perform transparency on the signal in the second frequency band, and the second filtered signal obtained is mainly composed of the signal in the second frequency band. In other words, the gain of the second transparent filter on the signal in the second frequency band of the sound signal is greater than the gain of the second transparent filter on the signal in the first frequency band of the sound signal.
[0074] The gain of the second transparent filter for signals in the first frequency band can be greater than 1, equal to 1, or less than 1. A gain greater than 1 indicates that the signals in the first frequency band are amplified, a gain less than 1 indicates that the signals in the first frequency band are attenuated, and a gain equal to 1 indicates that the signals in the first frequency band are not amplified or attenuated. Similarly, the gain of the second transparent filter for signals in the second frequency band can be greater than 1, equal to 1, or less than 1. A gain greater than 1 indicates that the signals in the second frequency band are amplified, a gain less than 1 indicates that the signals in the second frequency band are attenuated, and a gain equal to 1 indicates that the signals in the second frequency band are not amplified or attenuated. For example, the gain of the second transparent filter for signals in the first frequency band and the gain for signals in the second frequency band can both be greater than 1 or less than 1; alternatively, the gain of the second transparent filter for signals in the first frequency band can be less than or equal to 1, and the gain for signals in the second frequency band can be greater than 1; alternatively, the gain of the second transparent filter for signals in the first frequency band can be less than 1, and the gain for signals in the second frequency band can be greater than 1.
[0075] In step 130 , a compensation signal of the earphone 10 is determined according to the first filtered signal output by the first transparent filter and the second filtered signal output by the second transparent filter.
[0076] The compensation signal is used to compensate for the signal attenuated by the passive isolation and is output by the loudspeaker 11 . The compensation signal is superimposed on the residual signal leaked to the human ear to form the sound finally heard by the human ear.
[0077] In the embodiment of the present application, a first transparent filter and a second transparent filter are used to process the sound signal collected by the external microphone 12, respectively. The first transparent filter is a hardware transparent filter, and the second transparent filter is a software transparent filter. Typically, the headphones 10 have strong passive isolation for high-frequency signals, requiring a higher gain to be added to the high-frequency signal to boost it, resulting in the noise floor being primarily concentrated in the high-frequency portion. Therefore, the hardware transparent filter's gain for the mid- and low-frequency signals in the sound signal is greater than its gain for the high-frequency signal, resulting in the first filtered signal being primarily composed of mid- and low-frequency signals. Furthermore, the sound signal is subjected to noise reduction processing, and the software transparent filter's gain for the high-frequency signal in the noise-reduced sound signal is greater than its gain for the mid- and low-frequency signal. Thus, the second filtered signal is primarily composed of the high-frequency signal after noise reduction, which can be used to compensate for the high-frequency signal in the first filtered signal. Combining the first and second filtered signals yields a compensation signal for the headphones. Since the high-frequency signal in the second filtered signal is a signal that has undergone noise reduction processing, the problem of a high noise floor in the compensation signal is resolved. Moreover, since the sound ultimately heard by the human ear is the superposition of the sound processed by the transparent filter and the sound leaked to the human ear, when the wearer speaks to himself, the frequency of the human voice is concentrated in the medium and low frequencies. The software transparent filter mainly processes the high-frequency signals and suppresses the medium and low-frequency signals. This can greatly reduce the processing delay of the software transparent filter on the sound signal, reduce the time difference between the processed sound and the sound leaked to the human ear, and reduce the sound distortion heard by the wearer.
[0078] It is understood that the background noise signal is typically background noise introduced by various circuits disposed between the external ear microphone 12 and the transparent filter, such as an analog-to-digital converter (ADC) circuit. Typically, the earphones 10 provide strong passive isolation for high-frequency signals. Whether using a hardware transparent filter or a software transparent filter, a higher gain must be added to the high-frequency signal to boost it, resulting in the background noise being primarily concentrated in the high-frequency portion. Because the sound signal collected by the external ear microphone 12 is subjected to background noise reduction processing in step 120, the background noise carried in the high-frequency signal of the second filtered signal output by the second transparent filter is significantly reduced.
[0079] In the embodiment of the present application, the sound signal collected by the external ear microphone 12 refers to the sound signal received from the external ear microphone 12 by the first transparent filter and the second transparent filter, that is, the sound signal carrying background noise.
[0080] In one implementation, in step 120, the sound signal is subjected to noise reduction processing, including: obtaining a pre-estimated noise floor signal; and determining the sound signal after noise reduction based on the noise floor signal and the sound signal collected by the external ear microphone 12. The noise floor signal can be obtained, for example, through experimental testing or other methods. By using the pre-estimated noise floor signal to offset the portion of the noise floor signal carried in the sound signal, the actual signal outside the external ear microphone 12 can be obtained. For example, the noise floor signal has an opposite sign to that of the sound signal, and by adding the noise floor signal to the sound signal, the noise floor signal can be removed from the sound signal.
[0081] For example, as shown in Figure 3, during the hardware transparency phase, the sound signal collected by the external ear microphone 12 passes through a first transparency filter, suppressing high-frequency signals and outputting a first filtered signal dominated by mid- and low-frequency signals. During the software transparency phase, the noise floor estimation module outputs a pre-estimated noise floor signal with a negative sign. Adding the noise floor signal to the sound signal eliminates the portion of the noise floor signal carried in the sound signal, resulting in a noise-reduced sound signal. The noise-reduced sound signal then passes through a second transparency filter, suppressing mid- and low-frequency signals and outputting a second filtered signal dominated by high-frequency signals. Combining the first and second filtered signals yields a compensation signal output by the speaker 11.
[0082] The background noise signal can be a fixed value; alternatively, the background noise signal can be estimated in real time based on the sound signal currently collected by the external microphone 12. For example, the characteristics of the background noise signal are collected and counted, and a reference value of the background noise signal is preset. The reference value can be obtained, for example, by performing frequency domain expansion on the background noise signal of the circuit. The reference value is adjusted according to the sound signal currently collected by the external microphone 12 to obtain an estimated value of the background noise signal, thereby realizing real-time estimation of the background noise signal.
[0083] If only a hardware transparent filter is used, as mentioned above, since the background noise is mainly concentrated in the high-frequency part, when the sound signal is raised, the background noise will also be amplified; if only a software transparent filter is used, although the corresponding background noise can be estimated by software and the background noise can be filtered out before the speaker 11 outputs the compensation signal, software transparency has a greater delay than hardware transparency. Since the sound ultimately heard by the human ear is the superposition of the compensated sound processed by the transparent filter and the residual sound leaked to the human ear, the residual sound is physically transmitted and its delay can be ignored. If there is a large delay between the compensated sound input to the human ear and the residual sound leaked to the human ear, the wearer will hear the sound of his or her own speech distorted when speaking to himself or herself.
[0084] The embodiment of the present application adopts a combination of hardware transparency and software transparency. Since the background noise is mainly concentrated in the high-frequency part, the hardware transparency filter is used to suppress the high-frequency signals in the sound signal and to make the mid- and low-frequency signals transparent, thereby avoiding the introduction of background noise of more high-frequency signals; the background noise in the sound signal is estimated (noise floor), and the software transparency filter is used to suppress the mid- and low-frequency signals in the sound signal after the background noise is reduced and to make the high-frequency signals transparent, thereby avoiding the software transparency filter spending more time on processing the mid- and low-frequency signals where the human voice is concentrated, reducing the time difference between the compensation sound and the residual sound, or the time delay between the compensation sound and the residual sound, and reducing the sound distortion heard by the wearer.
[0085] Optionally, DSP hardware can be used for acceleration in the second transparent filter, and most of the code implementation can be written in assembly language to complete background noise filtering and transparent filtering in fewer instruction cycles, thereby achieving ultra-low latency.
[0086] Combining the first filtered signal (primarily mid- and low-frequency signals) from the hardware transparent filter with the second filtered signal (primarily high-frequency signals) from the software transparent filter restores the signal across the entire frequency band. In this way, the hardware and software transparent filters complement each other, reducing the noise floor in the compensation signal and minimizing the time difference between the compensation signal and the residual signal.
[0087] In one implementation, method 100 further includes determining a secondary transfer function based on the audio signal output by speaker 11 and the in-ear signal captured by in-ear microphone 13; and determining a first transparent filter based on the external ear signal when the earphone 10 is worn and the signal received in the ear when the earphone 10 is not worn. It should be understood that the signal received in the ear when the earphone 10 is not worn refers to the signal captured by the human ear when the earphone 10 is not worn. For example, when the earphone 10 is not worn, an additional microphone may be used to capture the signal in the human ear. When determining the secondary transfer function, the in-ear signal captured by in-ear microphone 13 is typically the signal captured by in-ear microphone 13 when the earphone 10 is worn.
[0088] The design of the first transparent filter is described in detail with reference to FIG4 . As an example, as shown in FIG4 , the path from the speaker 11 to the in-ear microphone 13 is a physical path, and its modeling is called the secondary transfer function, denoted as SP. This secondary transfer function represents the transfer function from the speaker 11 to the in-ear microphone 13, also known as the secondary path transfer function. The purpose of transparency is to allow the wearer of the earphone 10 to hear external sounds that are not passively isolated by the earphone 10. To achieve this goal, it is necessary to compensate for the signal attenuated by the passive isolation and output the compensation signal through the speaker 11. As shown in FIG4 , it is generally desired that the signal at the in-ear microphone 13 and the signal at the external ear microphone 12 are consistent. Therefore, it is desired that the signal played by the speaker 11 when the earphone 10 is worn, after passing through the secondary transmission path and being superimposed with the residual signal in the ear, is the same as the signal received in the ear when the earphone 10 is not worn. Here, the path between the external ear microphone 12 and the speaker 11 is denoted as HT. Specifically, for the same sound source, the signal collected in the ear when not wearing headphones 10 is denoted as D, the residual signal collected by in-ear microphone 13 when wearing headphones 10 is denoted as E, and the signal collected by external microphone 12 is denoted as FF. The difference in the position of in-ear microphone 13 and the position of signal collection when not wearing headphones 10 is ignored. The optimization target of the first transparent filter is FF*HT*SP+E=D, which can be used to obtain the corresponding first transparent filter. Furthermore, the first transparent filter needs to be designed to suppress high-frequency signals, thereby concentrating the frequency band amplified by the hardware on the mid- and low-frequency ranges.
[0089] When the earphones 10 are in Transparency mode, while it is desirable to maintain a clear perception of ambient sound, there are often loud noises in the environment, such as firecrackers and construction noises. Reproducing these sounds can cause sensory discomfort to the wearer, and excessively high volume may exceed the limits of the audio system's expression, leading to clipping. Imagine a wearer using the earphones for voice navigation through a construction site. They are faced with a dilemma: to clearly hear the ambient sounds, they need to enable Transparency mode. Enabling Transparency mode will reproduce all ambient sounds, but louder external sounds can cause ear discomfort. Disabling Transparency mode isolates the earphones, effectively reducing the amount of external noise reaching the eardrum, but this makes it difficult to hear ambient sounds.
[0090] To this end, the present application also provides an environment-adaptive transparency solution that can reduce the transparency of high-volume frequency bands in the environment, while the sound details of other frequency bands can be restored in the ear to the greatest extent, which is especially important for headphones with good passive isolation effects.
[0091] In one implementation, method 100 also includes: obtaining energy values of multiple frequency bands of the sound signal collected by the external ear microphone 12; and adjusting the energy values of multiple frequency bands of the compensation signal according to the energy values of the multiple frequency bands of the sound signal, so that the energy values of the multiple frequency bands of the compensation signal are less than or equal to the energy thresholds corresponding to the multiple frequency bands.
[0092] In this embodiment, the sound signal collected by the external microphone 12 is divided into multiple frequency bands, or multiple frequency bands, and the energy value of each frequency band is counted. According to the energy value of each frequency band in the sound signal, the energy value of each frequency band in the above-mentioned compensation signal is adjusted respectively, so that the energy values of the multiple frequency bands of the compensation signal are less than or equal to their respective corresponding energy thresholds, thereby avoiding the external sound signal being too high to cause sensory discomfort to the wearer, and realizing adaptive processing of environmental sounds.
[0093] The multiple frequency bands are, for example, frequency bands whose energy values exceed corresponding energy thresholds among the N frequency bands of the sound signal, where N is a positive integer. Frequency bands whose energy values do not exceed their corresponding energy thresholds may not be adjusted.
[0094] Here, the energy value may be, for example, an energy peak value or an energy mean value. The following description uses the energy peak value as an example. The energy thresholds corresponding to different frequency bands can be determined, for example, through experimental testing or responsivity curves. The energy thresholds corresponding to any two of the N frequency bands may be equal or unequal.
[0095] Optionally, the energy values of multiple frequency bands of the compensation signal are adjusted separately according to the energy values of multiple frequency bands of the sound signal, including: determining the adjustment amount corresponding to each frequency band according to the energy value of each frequency band of the sound signal and the energy threshold corresponding to each frequency band; and adjusting the energy value of each frequency band of the compensation signal according to the adjustment amount corresponding to each frequency band.
[0096] For example, the adjustment amount corresponding to each frequency band can be determined based on the difference between the energy value of each frequency band in the multiple frequency bands and the energy threshold corresponding to each frequency band. The larger the difference, the larger the adjustment amount; the smaller the difference, the smaller the adjustment amount.
[0097] For example, as shown in FIG5 , after the first transparent filter outputs a first filtered signal and the second transparent filter outputs a second filtered signal, the first filtered signal and the second filtered signal are combined to obtain a corresponding compensation signal, and the compensation signal can also be subjected to the above-mentioned adaptive processing. Specifically, the time domain signal collected by the external ear microphone 12 can be expanded in the frequency domain, and the sampled effective frequency band can be divided into N frequency bands using, for example, an octave method. The energy peaks of each of the N frequency bands are counted, and energy adjustment is performed on multiple frequency bands whose energy peaks exceed corresponding energy thresholds. During the process of energy peak detection and adjustment amount estimation (environment adaptive energy detection and suppression estimate), the adjustment amount corresponding to each frequency band can be calculated based on the difference between the energy peak of each frequency band in the multiple frequency bands and its corresponding energy threshold. The energy value of the frequency band is then adjusted based on the adjustment amount so that the energy value of the frequency band is suppressed below the corresponding energy threshold. This process is also called subband suppression. In actual applications, the external ear microphone 12 collects sound signals in real time, and the energy value of each frequency band in the compensation signal can be adjusted in real time based on the energy value of each frequency band in the real-time collected sound signal.
[0098] For example, N frequency bands correspond to N energy thresholds respectively. Assuming that the energy peaks of M frequency bands among the N frequency bands of the sound signal exceed their corresponding energy thresholds, the energy values of the M frequency bands are adjusted according to the difference between the energy peaks of these M frequency bands of the sound signal and their corresponding energy thresholds. For example, the adjustment amount of the i-th frequency band among the M frequency bands can be equal to the difference between the energy peak of the i-th frequency band and the energy threshold corresponding to the i-th frequency band, where i ranges from 1 to M, and the energy value of the i-th frequency band is adjusted according to the adjustment amount of the i-th frequency band.
[0099] In this embodiment of the present application, the two software components, software transparency processing and adaptive processing of ambient sound, can also be combined into a single software component for serial implementation. For example, as shown in FIG6 , the energy peak detection and adjustment amount estimation processes can be completed before the second transparency filter performs software transparency on the sound signal.
[0100] In another implementation, method 100 also includes: obtaining energy values of multiple frequency bands of the sound signal collected by the external ear microphone 12; the first transparent filter is also used to adjust the energy values of multiple frequency bands of the sound signal so that the energy values of the multiple frequency bands of the first filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands; the second transparent filter is also used to adjust the energy values of multiple frequency bands of the sound signal after background noise reduction so that the energy values of the multiple frequency bands of the second filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0101] In this embodiment, as shown in FIG7 , the first transparent filter can suppress high-frequency signals in the sound signal while adjusting the energy values of each frequency band in the sound signal, so that the output first filtered signal is primarily composed of mid- and low-frequency signals, and the energy of each frequency band in the first filtered signal is less than or equal to its corresponding energy threshold. Similarly, the second transparent filter can suppress mid- and low-frequency signals in the noise-reduced sound signal while adjusting the energy values of each frequency band in the noise-reduced sound signal, so that the output second filtered signal is primarily composed of high-frequency signals, and the energy of each frequency band in the second filtered signal is less than or equal to its corresponding energy threshold.
[0102] Optionally, the first transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band according to the energy value of each frequency band of the sound signal and the energy threshold corresponding to each frequency band, and adjust the energy value of each frequency band of the sound signal according to the adjustment amount corresponding to each frequency band; the second transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band according to the energy value of each frequency band of the sound signal after noise reduction and the energy threshold corresponding to each frequency band, and adjust the energy value of each frequency band of the sound signal after noise reduction according to the adjustment amount corresponding to each frequency band.
[0103] For example, the first transparent filter can specifically determine the adjustment amount corresponding to each frequency band based on the difference between the energy value of each frequency band of the sound signal and the energy threshold corresponding to each frequency band; the second transparent filter can determine the adjustment amount corresponding to each frequency band based on the difference between the energy value of each frequency band of the sound signal after noise reduction and the energy threshold corresponding to each frequency band.
[0104] For the above-mentioned adaptive processing of environmental sounds, for example, as shown in Figure 5 or Figure 6, after the first filtered signal and the second filtered signal are obtained respectively through the first transparent filter and the second transparent filter, other filters can be used to adjust the energy value of the frequency band that needs to be suppressed in the merged first filtered signal and the second filtered signal.
[0105] Unlike Figures 5 and 6, energy band suppression can also be achieved within the first transparent filter and the second transparent filter. For example, as shown in Figure 7, the suppression of the energy values of each frequency band can be directly achieved in the design of the first transparent filter and the second transparent filter. In other words, the first transparent filter and the second transparent filter can not only achieve transparency of the sound signal, but also suppress the energy values of each frequency band according to the corresponding adjustment amount. In this way, the first filtered signal output by the first transparent filter includes the low- and medium-frequency signals after energy band suppression, and the second filtered signal output by the second transparent filter includes the high-frequency signal after energy band suppression. The suppression of the energy values of the corresponding frequency bands is achieved simultaneously in the first transparent filter and the second transparent filter, without the need to set up additional hardware circuits, making the entire system structure more compact and reducing costs.
[0106] FIG8 shows a flowchart of a specific implementation of method 100. As shown in FIG8 , the transparent stage of the ambient sound can include hardware transparency and software transparency. In the hardware transparency part, a first transparent filter, i.e., a hardware transparent filter, is used to filter the sound signal collected by the external ear microphone 12, and outputs a first filtered signal mainly composed of medium and low frequency signals. Here, since the background noise in the medium and low frequency signals is very small, it can be ignored. In the software transparency part, the background noise signal is first estimated by software, and the background noise signal is removed from the sound signal collected by the external ear microphone 12. Then, a software transparent filter is used to filter the sound signal after the background noise is removed, and a second filtered signal mainly composed of high frequency signals is output. The background noise signal in the second filtered signal has been basically eliminated. By superimposing the first filtered signal and the second filtered signal, a relatively clean compensation signal can be obtained.
[0107] As shown in Figure 8, in the adaptive processing stage of ambient sound, the energy peak of each frequency band is estimated, and the frequency bands that need energy adjustment are determined. The adjustment amount g is determined based on the difference between the statistical value of the energy peak of each of these frequency bands and the corresponding energy threshold, that is, the statistical value minus the energy threshold. When the difference is greater than or equal to 0, that is, the statistical value - energy threshold ≥ 0, the adjustment amount is output. The energy peak of each frequency band can be counted in real time and the corresponding adjustment amount calculated until the difference gradually returns to 0. Among them, the energy of each frequency band in the compensation signal is adjusted according to the adjustment amount g. For example, the gain corresponding to each frequency band can be adjusted according to the corresponding adjustment amount. Finally, the microphone outputs the compensation signal after the adaptive processing stage.
[0108] The above-mentioned solution for adaptive processing of ambient sound can be implemented in combination with the aforementioned transparent solution combining software and hardware, or it can be implemented separately.
[0109] For example, as shown in FIG9 , an embodiment of the present application further provides a filtering method 200. Method 200 can be performed by a filtering device within earphone 10 , for example, by a chip within earphone 10 , such as a codec chip or a Bluetooth audio system-on-chip (SoC). Earphone 10 includes an external microphone 12 for collecting sound signals. As shown in FIG1 , method 200 includes some or all of the following steps.
[0110] In step 210 , energy values of multiple frequency bands of the sound signal are determined.
[0111] In step 220 , the energy values of the multiple frequency bands of the sound signal are adjusted so that the energy values of the multiple frequency bands are less than or equal to energy thresholds corresponding to the multiple frequency bands.
[0112] The multiple frequency bands may be, for example, frequency bands whose energy values exceed corresponding energy thresholds among the N frequency bands of the sound signal, where N is a positive integer.
[0113] In one implementation, the energy values of the multiple frequency bands of the sound signal are adjusted so that the energy values of the multiple frequency bands are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands, including: processing the sound signal based on a transparent filter to obtain a filtered signal; wherein, the energy values of the multiple frequency bands of the sound signal are adjusted so that the energy values of the multiple frequency bands are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands, including: adjusting the energy values of the multiple frequency bands of the filtered signal so that the energy values of the multiple frequency bands of the filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0114] In one implementation, the energy values of the multiple frequency bands of the filtered signal are adjusted so that the energy values of the multiple frequency bands of the filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands, including: based on the transparent filter or another filter other than the transparent filter, the energy values of the multiple frequency bands of the filtered signal are adjusted so that the energy values of the multiple frequency bands of the filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0115] In one implementation, the energy values of the multiple frequency bands of the filtered signal are adjusted, including: determining an adjustment amount corresponding to each frequency band based on the energy value of each frequency band in the multiple frequency bands of the sound signal and an energy threshold corresponding to each frequency band, and adjusting the energy value of each frequency band of the sound signal based on the adjustment amount corresponding to each frequency band.
[0116] In one implementation, the adjustment amount corresponding to each frequency band is determined based on the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band, including: determining the adjustment amount corresponding to each frequency band based on the difference between the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band.
[0117] It should be understood that the specific details of method 200 can be referred to the description of the adaptive processing of ambient sound in the aforementioned method 100. For the sake of brevity, they are not repeated here.
[0118] The present application also provides a filtering device 300, which is applied to headphones 10 with a transparent mode. The headphones 10 include an external ear microphone 12. The sound signals collected by the external ear microphone 12 include signals in a first frequency band and signals in a second frequency band. At least part of the first frequency band is lower than at least part of the second frequency band. For example, the first frequency band is less than or equal to a preset first frequency threshold, and the second frequency band is greater than or equal to a preset second frequency threshold. The first frequency threshold and the second frequency threshold can be, for example, between 2 kHz and 3 kHz.
[0119] As shown in FIG. 10 , the apparatus 300 includes a first transparent filter 310 , a processing module 320 , and a second transparent filter 330 .
[0120] Among them, the first transparent filter 310 is used to process the sound signal to obtain a first filtered signal of the sound signal. The first transparent filter is a hardware transparent filter. The gain of the first transparent filter on the signal in the first frequency band of the sound signal is greater than the gain of the first transparent filter on the signal in the second frequency band of the sound signal; the processing module 320 is used to perform noise reduction processing on the sound signal; the second transparent filter 330 is used to process the sound signal after noise reduction to obtain a second filtered signal of the sound signal. The second transparent filter is a software transparent filter. The gain of the second transparent filter on the signal in the second frequency band of the sound signal after noise reduction is greater than the gain of the second transparent filter on the signal in the first frequency band of the sound signal after noise reduction.
[0121] The software transparent filter may be, for example, an FIR filter or an IIR filter, and the hardware transparent filter includes, for example, an FIR filter or an IIR filter.
[0122] In one implementation, the processing module 320 is specifically configured to: obtain a pre-estimated background noise signal; and determine a sound signal after background noise reduction according to the background noise signal and the sound signal.
[0123] In one implementation, the earphone 10 also includes a speaker 11 and an in-ear microphone 13, and the processing module 320 is further used to: determine the secondary transfer function based on the audio signal output by the speaker 11 and the in-ear signal collected by the in-ear microphone 13; determine the first transparent filter 310 based on the external ear signal collected by the external ear microphone 12 when the earphone 10 is worn and the signal received in the ear when the earphone 10 is not worn.
[0124] In one implementation, the processing module 320 is further used to: determine the energy values of the multiple frequency bands of the sound signal; and adjust the energy values of the multiple frequency bands of the compensation signal according to the energy values of the multiple frequency bands of the sound signal so that the energy values of the multiple frequency bands of the compensation signal are less than or equal to the energy thresholds corresponding to the multiple frequency bands.
[0125] In one implementation, the processing module 320 is specifically used to: determine the adjustment amount corresponding to each frequency band based on the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band; and adjust the energy value of each frequency band of the compensation signal based on the adjustment amount corresponding to each frequency band.
[0126] In one implementation, the processing module 320 is specifically configured to determine an adjustment amount corresponding to each frequency band according to a difference between an energy value of each frequency band and an energy threshold corresponding to each frequency band.
[0127] In one implementation, the multiple frequency bands are frequency bands whose energy values exceed corresponding energy thresholds among N frequency bands of the sound signal, where N is a positive integer.
[0128] In one implementation, the first transparent filter 310 is further used to adjust the energy values of the multiple frequency bands of the sound signal so that the energy values of the multiple frequency bands of the first filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands; the first transparent filter 310 is further used to adjust the energy values of the multiple frequency bands of the sound signal after noise reduction so that the energy values of the multiple frequency bands of the second filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0129] In one implementation, the first transparent filter 310 is specifically used to determine the adjustment amount corresponding to each frequency band based on the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band, and adjust the energy value of each frequency band of the sound signal based on the adjustment amount corresponding to each frequency band; the second transparent filter 330 is specifically used to determine the adjustment amount corresponding to each frequency band based on the energy value of each frequency band in the multiple frequency bands of the sound signal after noise reduction and the energy threshold corresponding to each frequency band, and adjust the energy value of each frequency band of the sound signal after noise reduction based on the adjustment amount corresponding to each frequency band.
[0130] In one implementation, the first transparent filter 310 is specifically used to determine the adjustment amount corresponding to each frequency band based on the difference between the energy value of each frequency band of the sound signal and the energy threshold corresponding to each frequency band; the second transparent filter 330 is specifically used to determine the adjustment amount corresponding to each frequency band based on the difference between the energy value of each frequency band of the sound signal after noise reduction and the energy threshold corresponding to each frequency band.
[0131] In one implementation, the multiple frequency bands are frequency bands whose energy values exceed corresponding energy thresholds among N frequency bands of the sound signal, where N is a positive integer.
[0132] It should be understood that the specific details of the filtering device 300 can be referred to the above description of the filtering method 100, and for the sake of brevity, they are not repeated here.
[0133] The present application also provides a filtering device 400 , which is applied to an earphone 10 with a transparent mode, the earphone 10 including an external ear microphone 12 for collecting sound signals. As shown in FIG11 , the filtering device 400 includes a processing module 410 and a filter module 420 .
[0134] Among them, the processing module 410 is used to obtain the energy values of multiple frequency bands of the sound signal; the filter module 420 is used to adjust the energy values of multiple frequency bands of the sound signal so that the energy values of the multiple frequency bands are less than or equal to the energy thresholds corresponding to the multiple frequency bands.
[0135] The multiple frequency bands may be, for example, frequency bands whose energy values exceed corresponding energy thresholds among the N frequency bands of the sound signal, where N is a positive integer.
[0136] In one implementation, the filter module 420 includes a transparent filter, which is used to: process the sound signal to obtain a filtered signal; wherein the transparent filter is also used to: adjust the energy values of the multiple frequency bands of the filtered signal so that the energy values of the multiple frequency bands of the filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands; or, the filter module also includes another filter other than the transparent filter, which is used to: receive the filtered signal and adjust the energy values of the multiple frequency bands of the filtered signal so that the energy values of the multiple frequency bands of the filtered signal are less than or equal to the energy thresholds corresponding to each of the multiple frequency bands.
[0137] In one implementation, the transparent filter or the other filter is specifically used to: determine the adjustment amount corresponding to each frequency band based on the energy value of each frequency band in the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band, and adjust the energy value of each frequency band of the compensation signal based on the adjustment amount corresponding to each frequency band.
[0138] In one implementation, the transparent filter or the other filter is specifically configured to determine an adjustment amount corresponding to each frequency band according to a difference between an energy value of each frequency band and an energy threshold corresponding to each frequency band.
[0139] It should be understood that the specific details of the filtering device 400 can be referred to the aforementioned description of the filtering method 200, and for the sake of brevity, they are not repeated here.
[0140] The present application also provides a chip including a processor and a memory, wherein the memory stores computer instructions, and the processor invokes the computer instructions to cause a device to implement the apparatus according to the first aspect or any implementation of the first aspect. The chip may be, for example, a codec chip in the headset 10 or a Bluetooth audio system-on-chip (SOC).
[0141] The present application also provides an earphone 10 with a transparent mode, and the earphone 10 includes: a speaker 11; an external microphone 12; an internal microphone 13; and a filtering device in any of the above embodiments, or a chip in any of the above embodiments.
[0142] It should be noted that, under the premise of no conflict, the various embodiments and / or technical features in each embodiment described in this application can be arbitrarily combined with each other, and the technical solution obtained after the combination should also fall within the scope of protection of this application.
[0143] The systems, devices, and methods disclosed in the embodiments of the present application may be implemented in other ways. For example, some features of the method embodiments described above may be ignored or not performed. The device embodiments described above are merely schematic, and the division of units is merely a logical function division. In actual implementation, there may be other division methods, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the coupling may include electrical, mechanical, or other forms of connection.
[0144] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and equipment and the technical effects produced can refer to the corresponding processes and technical effects in the aforementioned method embodiments, and will not be repeated here.
[0145] It should be understood that the specific examples in the embodiments of the present application are only to help those skilled in the art to better understand the embodiments of the present application, rather than to limit the scope of the embodiments of the present application. Those skilled in the art can make various improvements and modifications based on the above embodiments, and these improvements or modifications all fall within the scope of protection of the present application.
[0146] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A filtering method, It is characterized in that Applied to headphones with a transparent mode, the headphones include an external ear microphone, the sound signals collected by the external ear microphone include signals in a first frequency band and signals in a second frequency band, at least part of the first frequency band is lower than at least part of the second frequency band, the method includes: Processing the sound signal based on a first transparent filter to obtain a first filtered signal of the sound signal, wherein the first transparent filter is a hardware transparent filter, and a gain of the first transparent filter for the signal in the first frequency band of the sound signal is greater than a gain of the first transparent filter for the signal in the second frequency band of the sound signal; Performing noise reduction processing on the sound signal, and processing the sound signal after the noise reduction based on a second transparent filter to obtain a second filtered signal of the sound signal, wherein the second transparent filter is a software transparent filter, and the gain of the second transparent filter for the signal in the second frequency band in the sound signal after the noise reduction is greater than the gain of the second transparent filter for the signal in the first frequency band in the sound signal after the noise reduction; A compensation signal of the earphone is determined according to the first filtered signal and the second filtered signal.
2. The filtering method according to claim 1, It is characterized in that The performing noise reduction processing on the sound signal comprises: Obtaining a pre-estimated background noise signal; The sound signal after the background noise is reduced is determined according to the background noise signal and the sound signal.
3. The filtering method according to claim 1 or 2, It is characterized in that The headset further includes a speaker and an in-ear microphone, and the method further includes: Determine a secondary transfer function according to the audio signal output by the speaker and the in-ear signal collected by the in-ear microphone; The first transparent filter is determined according to an external ear signal collected by the external ear microphone when the earphone is worn and a signal received in the ear when the earphone is not worn.
4. The filtering method according to any one of claims 1 to 3, It is characterized in that The method further comprises: determining energy values of a plurality of frequency bands of the sound signal; According to the energy values of the multiple frequency bands of the sound signal, the energy values of the multiple frequency bands of the compensation signal are adjusted respectively so that the energy values of the multiple frequency bands of the compensation signal are less than Or equal to the energy threshold corresponding to each of the multiple frequency bands.
5. The filtering method according to claim 4, It is characterized in that The step of adjusting the energy values of the multiple frequency bands of the compensation signal respectively according to the energy values of the multiple frequency bands of the sound signal comprises: Determine an adjustment amount corresponding to each frequency band according to an energy value of each frequency band of the sound signal and an energy threshold corresponding to each frequency band; The energy value of each frequency band of the compensation signal is adjusted according to the adjustment amount corresponding to each frequency band.
6. The filtering method according to claim 5, It is characterized in that The determining, according to the energy value of each frequency band of the plurality of frequency bands of the sound signal and the energy threshold corresponding to each frequency band, the adjustment amount corresponding to each frequency band comprises: The adjustment amount corresponding to each frequency band is determined according to the difference between the energy value of each frequency band and the energy threshold corresponding to each frequency band.
7. The filtering method according to any one of claims 1 to 3, It is characterized in that The method further comprises: determining energy values of a plurality of frequency bands of the sound signal; The first transparent filter is further used to adjust the energy values of the multiple frequency bands of the sound signal so that the energy values of the multiple frequency bands of the first filtered signal are less than or equal to the energy thresholds corresponding to the multiple frequency bands respectively; The second transparent filter is further used to adjust the energy values of the multiple frequency bands of the sound signal after background noise reduction so that the energy values of the multiple frequency bands of the second filtered signal are less than or equal to energy thresholds corresponding to the multiple frequency bands respectively.
8. The filtering method according to claim 7, It is characterized in that The first transparent filter is specifically used to determine, according to the energy value of each frequency band of the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band, an adjustment amount corresponding to each frequency band, and adjust the energy value of each frequency band of the sound signal according to the adjustment amount corresponding to each frequency band; The second transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band according to the energy value of each frequency band in the multiple frequency bands of the sound signal after background noise reduction and the energy threshold corresponding to each frequency band, and adjust the energy value of each frequency band of the sound signal after background noise reduction according to the adjustment amount corresponding to each frequency band.
9. The filtering method according to claim 8, It is characterized in that The first transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band according to the difference between the energy value of each frequency band of the sound signal and the energy threshold corresponding to each frequency band; The second transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band according to the difference between the energy value of each frequency band of the sound signal after background noise reduction and the energy threshold corresponding to each frequency band.
10. The filtering method according to any one of claims 4 to 9, It is characterized in that The multiple frequency bands are frequency bands whose energy values exceed corresponding energy thresholds among the N frequency bands of the sound signal, where N is a positive integer.
11. The filtering method according to any one of claims 1 to 10, It is characterized in that The first frequency band is less than or equal to a preset first frequency threshold, the second frequency band is greater than or equal to a preset second frequency threshold, and the first frequency threshold and the second frequency threshold are between 2 KHz and 3 KHz.
12. A filtering device, It is characterized in that Applicable to headphones with a transparent mode, the headphones comprising an external ear microphone, the sound signals collected by the external ear microphone comprising signals in a first frequency band and signals in a second frequency band, at least part of the first frequency band is lower than at least part of the second frequency band, the filtering device comprising: a first transparent filter, used to process the sound signal to obtain a first filtered signal of the sound signal, wherein the first transparent filter is a hardware transparent filter, and a gain of the first transparent filter for the signal in the first frequency band of the sound signal is greater than a gain of the first transparent filter for the signal in the second frequency band of the sound signal; A processing module, used for performing noise reduction processing on the sound signal; a second transparent filter, used for processing the sound signal after background noise reduction to obtain a second filtered signal of the sound signal, wherein the second transparent filter is a software transparent filter, and a gain of the second transparent filter for the signal of the second frequency band in the sound signal after background noise reduction is greater than a gain of the second transparent filter for the signal of the first frequency band in the sound signal after background noise reduction; The processing module is further configured to determine a compensation signal of the earphone according to the first filtered signal and the second filtered signal.
13. The filter device according to claim 12, It is characterized in that The processing module is specifically used for: Obtaining a pre-estimated background noise signal; The sound signal after the background noise is reduced is determined according to the background noise signal and the sound signal.
14. The filter device according to claim 12 or 13, It is characterized in that The earphone further comprises a speaker and an in-ear microphone, and the processing module is further used for: Determine a secondary transfer function according to the audio signal output by the speaker and the in-ear signal collected by the in-ear microphone; The first transparent filter is determined according to an external ear signal collected by the external ear microphone when the earphone is worn and a signal received in the ear when the earphone is not worn.
15. The filter device according to any one of claims 12 to 14, It is characterized in that The processing module is also used for: determining energy values of a plurality of frequency bands of the sound signal; According to the energy values of the multiple frequency bands of the sound signal, the energy values of the multiple frequency bands of the compensation signal are adjusted respectively so that the energy values of the multiple frequency bands of the compensation signal are less than or equal to the energy thresholds corresponding to the multiple frequency bands respectively.
16. The filter device according to claim 15, It is characterized in that The processing module is specifically used for: Determine an adjustment amount corresponding to each frequency band according to an energy value of each frequency band of the sound signal and an energy threshold corresponding to each frequency band; The energy value of each frequency band of the compensation signal is adjusted according to the adjustment amount corresponding to each frequency band.
17. The filter device according to claim 16, It is characterized in that The processing module is specifically used for: The adjustment amount corresponding to each frequency band is determined according to the difference between the energy value of each frequency band and the energy threshold corresponding to each frequency band.
18. The filter device according to any one of claims 12 to 14, It is characterized in that The first transparent filter is further used to adjust the energy values of the multiple frequency bands of the sound signal so that the energy values of the multiple frequency bands of the first filtered signal are less than or equal to energy thresholds corresponding to the multiple frequency bands respectively; The first transparent filter is further used to adjust the energy values of the multiple frequency bands of the sound signal after the background noise is reduced so that the energy values of the multiple frequency bands of the second filtered signal are less than Or equal to the energy threshold corresponding to each of the multiple frequency bands.
19. The filter device according to claim 18, It is characterized in that The first transparent filter is specifically used to determine, according to the energy value of each frequency band of the multiple frequency bands of the sound signal and the energy threshold corresponding to each frequency band, an adjustment amount corresponding to each frequency band, and adjust the energy value of each frequency band of the sound signal according to the adjustment amount corresponding to each frequency band; The second transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band according to the energy value of each frequency band in the multiple frequency bands of the sound signal after background noise reduction and the energy threshold corresponding to each frequency band, and adjust the energy value of each frequency band of the sound signal after background noise reduction according to the adjustment amount corresponding to each frequency band.
20. The filter device according to claim 19, It is characterized in that The first transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band according to the difference between the energy value of each frequency band of the sound signal and the energy threshold corresponding to each frequency band; The second transparent filter is specifically used to determine the adjustment amount corresponding to each frequency band according to the difference between the energy value of each frequency band of the sound signal after background noise reduction and the energy threshold corresponding to each frequency band.
21. The filter device according to any one of claims 15 to 20, It is characterized in that The multiple frequency bands are frequency bands whose energy values exceed corresponding energy thresholds among the N frequency bands of the sound signal, where N is a positive integer.
22. The filter device according to any one of claims 12 to 21, It is characterized in that The first frequency band is less than or equal to a preset first frequency threshold, the second frequency band is greater than or equal to a preset second frequency threshold, and the first frequency threshold and the second frequency threshold are between 2 KHz and 3 KHz.
23. A chip, It is characterized in that The chip comprises a processor and a memory, wherein the memory stores computer instructions, and the processor calls the computer instructions to enable the chip to implement the filtering method according to any one of claims 1 to 11.
24. A headset, It is characterized in that With a transparency mode, the headphones include: speaker; External ear microphone; In-ear microphone; and, The filtering device according to any one of claims 12 to 22, or the chip according to claim 23.
Citation Information
Patent Citations
Transparent mode adjusting device and method of wireless earphone and wireless earphone
CN111885460A
Washler suppression method and device, earphone and storage medium
CN113473304A
Noise reduction processing method and device, equipment, earphone and storage medium
CN113938785A
Audio processing method and device, equipment and storage medium
CN114554353A
Noise elimination method and device, electronic equipment, earphone and storage medium
CN115802224A
