Active noise reduction method and active noise reduction earphone

By updating the filter operating coefficients in real time within the active noise-canceling headphones and determining the path transfer function based on data from microphones inside and outside the ear, the impact of different wearing methods and ear canal structures on the noise cancellation effect is resolved, thereby improving the noise cancellation stability and user experience of the headphones.

CN115396774BActive Publication Date: 2025-11-25SHENZHEN GOODIX TECH CO LTD

Patent Information

Application Number
CN202211153118.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-21
Publication Date
2025-11-25
Estimated Expiration
2042-09-21

AI Technical Summary

Technical Problem

Different wearing methods and ear canal structures have a significant impact on active noise-canceling headphones, leading to unstable noise cancellation effects and affecting user experience.

Method used

By collecting data using in-ear and out-of-ear microphones while audio data is played through the speaker, the primary and secondary path transfer functions are determined, and the operating coefficients of the filter are updated in real time to adapt to changes in the wearing environment and ear canal position.

Benefits of technology

It enables real-time adjustment of active noise-canceling headphones under different wearing environments and positions, improving noise cancellation effect and user experience, simplifying headphone structure and eliminating the need for additional audio signal interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115396774B_ABST
    Figure CN115396774B_ABST
Patent Text Reader

Abstract

An active noise reduction method and an active noise reduction earphone can improve the noise reduction effect of the active noise reduction earphone. The active noise reduction earphone comprises an in-ear microphone, an out-ear microphone, a loudspeaker and a filter. The method comprises: in the case that the loudspeaker plays audio data, determining a first primary path transfer function according to first out-ear data collected by the out-ear microphone and first in-ear data collected by the in-ear microphone; determining audio data received by the in-ear microphone according to the first in-ear data, the first out-ear data and the first primary path transfer function; determining a first secondary path transfer function according to the audio data played by the loudspeaker and the audio data received by the in-ear microphone; and updating a working coefficient of the filter to a first working coefficient according to the first primary path transfer function and / or the first secondary path transfer function.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of multimedia, and more particularly, to an active noise reduction method and an active noise reduction earphone. BACKGROUND

[0002] When a user wears an earphone to listen to music or make a voice call, the intelligibility of the music or voice signal heard by the user is affected by the ambient noise in the outside world. When the ambient noise is relatively serious, the user may even not be able to clearly hear the audio information in the earphone, and the ambient noise greatly reduces the use experience of the earphone wearer. An active noise reduction earphone attempts to emit an audio signal with a similar amplitude and opposite phase to the ambient noise through a loudspeaker in the earphone, so as to achieve the purpose of canceling the ambient noise and reducing the noise heard by the earphone wearer.

[0003] However, the noise reduction effect of the earphone is greatly affected by different wearing manners and ear canal structures. Different users have different ear canal structures, and different wearing manners will form different relative positions between the earphone and the human ear, and the gaps formed thereby have different effects on noise and echo in the ear. Even if the same user uses the same earphone, the position of the earphone in the human ear is not completely consistent each time the user wears the earphone, which also affects the wearing effect of the user. Therefore, how to improve the noise reduction effect of the earphone so as to avoid the influence of ambient noise on the user wearing the earphone in different wearing environments is a problem to be solved at present. SUMMARY

[0004] The embodiments of the present application provide an active noise reduction method and an active noise reduction earphone, which can improve the effect of active noise reduction.

[0005] In a first aspect, an active noise reduction method is provided, which is used for an active noise reduction earphone including an in-ear microphone, an out-ear microphone, a loudspeaker and a filter. The method includes: in a case where the loudspeaker plays audio data, determining a first primary path transfer function according to first out-ear data collected by the out-ear microphone and first in-ear data collected by the in-ear microphone; determining audio data received by the in-ear microphone according to the first in-ear data, the first out-ear data and the first primary path transfer function; determining a first secondary path transfer function according to the audio data played by the loudspeaker and the audio data received by the in-ear microphone; and updating a working coefficient of the filter to a first working coefficient according to the first primary path transfer function and / or the first secondary path transfer function.

[0006] In the technical solution of the embodiment of the application, based on the audio data normally played by the loudspeaker, the first primary path transfer function and the first secondary path transfer function can be determined; and according to the first primary path transfer function and / or the first secondary path transfer function, the working coefficient of the filter is updated to the first working coefficient. The method can be applied to any stage of normal audio data playing by the active noise reduction earphone through the loudspeaker, and can be executed multiple times to realize real-time updating of the working coefficient of the filter in the use process of the active noise reduction earphone. In this way, even if the environment changes or the position of the active noise reduction earphone and the ear canal changes in the use process of the active noise reduction earphone by the user, the working coefficient of the filter can be updated in real time through the method, and then the noise reduction effect of the active noise reduction earphone is adjusted, so that the user has a good use experience. In addition, the method determines the working coefficient of the filter according to the audio data played by the loudspeaker, without adding additional or specific audio signals, for example, without adding audio signals outside the hearing range of the user, which can simplify the active noise reduction earphone, avoid the influence of additional audio signals on the user, ensure the noise reduction effect of the active noise reduction earphone, and ensure the use experience of the user.

[0007] In a possible implementation, the updating of the working coefficient of the filter to the first working coefficient according to the first primary path transfer function and / or the first secondary path transfer function comprises: determining the first working coefficient corresponding to the first primary path transfer function according to the correspondence between different primary path transfer functions and different working coefficients of the filter, and updating the working coefficient of the filter to the first working coefficient; and / or determining the first working coefficient corresponding to the first secondary path transfer function according to the correspondence between different secondary path transfer functions and different working coefficients of the filter, and updating the working coefficient of the filter to the first working coefficient.

[0008] In a possible implementation, the filter is an adaptive filter.

[0009] In a possible implementation, the method further comprises: determining an updating step length of the filter according to a detection result of a wearing environment of the active noise reduction earphone.

[0010] In a possible implementation, the detection result of the wearing environment of the active noise reduction earphone comprises at least one of the following: a spontaneous sound detection result of an earphone user, an environmental wind noise detection result, and an earphone howling detection result.

[0011] In a possible implementation, the step of determining the update step of the filter according to the detection result of the wearing environment of the active noise reduction earphone includes: if the detection result of the wearing environment of the active noise reduction earphone is greater than or equal to a preset value, reducing the update step of the filter; and / or if the detection result of the wearing environment of the active noise reduction earphone is less than the preset value, increasing the update step of the filter.

[0012] In a possible implementation, the step of determining the audio data received by the in-ear microphone according to the first in-ear data, the first out-ear data, and the first primary path transfer function includes: determining first in-ear passive noise data according to the first out-ear data and the first primary path transfer function; and determining the audio data received by the in-ear microphone according to the first in-ear data and the first in-ear passive noise data.

[0013] In a possible implementation, the step of determining the audio data received by the in-ear microphone according to the first in-ear data and the first in-ear passive noise data includes: determining the difference between the first in-ear data and the first in-ear passive noise data as the audio data received by the in-ear microphone.

[0014] In a possible implementation, the method further includes: in the case that the loudspeaker plays audio data, collecting the first in-ear data by the in-ear microphone while collecting the first out-ear data by the out-ear microphone.

[0015] In a possible implementation, the method further includes: in the case that the loudspeaker plays prompt tone data, determining a second primary path transfer function according to second out-ear data collected by the out-ear microphone and second in-ear data collected by the in-ear microphone, the prompt tone data played by the loudspeaker being used to prompt to turn on a noise reduction function; determining prompt tone data received by the in-ear microphone according to the second in-ear data, the second out-ear data, and the second primary path transfer function; determining a second secondary path transfer function according to the prompt tone data played by the loudspeaker and the prompt tone data received by the in-ear microphone; and updating the working coefficient of the filter to a second working coefficient according to the second primary path transfer function and / or the second secondary path transfer function.

[0016] In a possible implementation, the updating the operating coefficient of the filter to the second operating coefficient according to the second primary path transfer function and / or the second secondary path transfer function comprises: determining the second operating coefficient corresponding to the second primary path transfer function according to a correspondence between different primary path transfer functions and different operating coefficients of the filter, and updating the operating coefficient of the filter to the second operating coefficient; and / or determining the second operating coefficient corresponding to the second secondary path transfer function according to a correspondence between different secondary path transfer functions and different operating coefficients of the filter, and updating the operating coefficient of the filter to the second operating coefficient.

[0017] In a possible implementation, the updating the operating coefficient of the filter to the second operating coefficient comprises: updating the operating coefficient of the filter from the first operating coefficient to the second operating coefficient.

[0018] In a possible implementation, the updating the operating coefficient of the filter to the first operating coefficient comprises: updating the operating coefficient of the filter from the second operating coefficient to the first operating coefficient.

[0019] In a possible implementation, the filter comprises at least one of: a feedforward (FF) filter, a feedback (FB) filter, and a secondary path (SP) filter.

[0020] In a possible implementation, the determining the first primary path transfer function according to the first extra-aural data collected by the extra-aural microphone and the first intra-aural data collected by the intra-aural microphone comprises: determining the first primary path transfer function according to the first extra-aural data and the first intra-aural data by an adaptive filtering algorithm.

[0021] In a possible implementation, the determining the first secondary path transfer function according to the audio data played by the loudspeaker and the audio data received by the intra-aural microphone comprises: determining the first secondary path transfer function according to the audio data played by the loudspeaker and the audio data received by the intra-aural microphone by an adaptive filtering algorithm.

[0022] In a second aspect, an active noise reduction earphone is provided, which comprises: an in-ear microphone, an out-ear microphone, a speaker, a filter and a processor, wherein the processor is configured to: in a case where the speaker plays audio data, determine a first primary path transfer function according to first out-ear data collected by the out-ear microphone and first in-ear data collected by the in-ear microphone; determine audio data received by the in-ear microphone according to the first in-ear data, the first out-ear data and the first primary path transfer function; determine a first secondary path transfer function according to the audio data played by the speaker and the audio data received by the in-ear microphone; and update a working coefficient of the filter to a first working coefficient according to the first primary path transfer function and / or the first secondary path transfer function.

[0023] The processor can be configured to perform the method in the first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0024] Figure 1 is a schematic block diagram of an active noise reduction earphone according to an embodiment of the present application.

[0025] Figure 2 is a schematic flow chart of an active noise reduction method according to an embodiment of the present application.

[0026] Figure 3 is a schematic flow chart of an active noise reduction method according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] The technical solutions in the embodiments of the present application will be described below with reference to the drawings.

[0028] It should be understood that the embodiments of the present application can be applied to an active noise reduction (ANC) earphone. Specifically, the ANC earphone emits an audio signal with a similar amplitude but opposite phase to the ambient environmental noise through a speaker, so that the noise heard by the user wearing the earphone is reduced. Currently, the common earphone forms on the market include: in-ear, semi-in-ear, over-ear (also known as ear muff), ear clip, semi-open, etc., among which the in-ear and semi-in-ear earphones with ANC function generally have a rubber sleeve to better fit the earphone with the human ear, thereby playing a physical isolation role on the environmental noise. Although the earphone with a rubber sleeve can obtain a better physical isolation effect, the stimulation of the rubber sleeve to the ear canal will affect the comfort of the user wearing it. For example, the semi-open earphone generally does not have a rubber sleeve and is more comfortable to wear, which is suitable for long-term wearing. However, due to the lack of a rubber sleeve, the noise isolation effect is not as good as that of an earphone with a rubber sleeve, which may affect the user experience in a noisy environment.

[0029] This application provides a noise reduction method and an ANC headphone with ANC functionality. For example, the ANC headphone can be an in-ear, semi-in-ear, or on-ear headphone with ear tips, or it can be a semi-open headphone without ear tips; however, this application does not limit the scope of the application.

[0030] Figure 1 A schematic block diagram of an ANC headset 100 according to an embodiment of this application is shown. Figure 1 As shown, the ANC headset 100 may include an in-ear microphone 120, an out-of-ear microphone 110, a speaker 130, a filter 140, and a processor 150. Figure 2 A schematic flowchart of a noise reduction method 200 for ANC headphones according to an embodiment of this application is shown. Optionally, as Figure 2 As shown, this method 200 can be applied to ANC headphones, for example, it can be applied to... Figure 1 The ANC headset 100 shown can be executed by the processor 150 of the ANC headset 100. For ease of explanation, the following description uses the processor 150 executing method 200 as an example.

[0031] like Figure 2 As shown, the method 200 includes: S210, when the speaker 130 plays audio data, determining a first primary path transfer function based on the first external ear data collected by the external ear microphone 110 and the first internal ear data collected by the internal ear microphone 120; S220, determining the audio data received by the internal ear microphone 120 based on the first internal ear data, the first external ear data, and the first primary path transfer function; S230, determining a first secondary path transfer function based on the audio data played by the speaker 130 and the audio data received by the internal ear microphone 120; S240, updating the operating coefficients of the filter 140 to the first operating coefficients based on the first primary path transfer function and / or the first secondary path transfer function.

[0032] It should be understood that the audio data played by the speaker 130 of the embodiment of the present application can refer to: the audio data selected by the user wearing the ANC earphone 100 and played by the speaker 130, and / or the audio data of the anti-noise signal for eliminating noise interference, which is played by the speaker 130 in the case that the ANC function of the ANC earphone 100 is turned on. Specifically, the audio data selected by the user wearing the ANC earphone 100 and played by the speaker 130 refers to the audio data that the user wearing the ANC earphone 100 wants to hear, which can include, for example, audio content such as music, voice calls or recordings selected by the user for playing. In addition, since the wearing environment of the ANC earphone 100 can have various noise interference, for example, the user wearing the ANC earphone 100 attempts to listen to audio in a noisy environment, there is noise interference of the noisy environmental sound that interferes with the listening experience; for another example, the specific relationship between the ANC earphone 100 and the physiology of the ear of the user wearing the ANC earphone 100 can also generate another part of the noise interference that can be heard by the user wearing the ANC earphone 100 but hinders the earphone from providing the required audio to the user wearing the ANC earphone in the best way. If the ANC function of the ANC earphone 100 is turned on, the ANC earphone 100 needs to play the anti-noise signal to offset the above noise interference, so as to realize the ANC function of the ANC earphone 100. That is, the audio data of the anti-noise signal played by the speaker 130 is used to offset various noise interference.

[0033] Optionally, the audio data played by the speaker 130 can include multiple cases for different scenarios. For example, if the user wearing the ANC earphone 100 is currently playing any audio data, and there is noise interference in the wearing environment, the audio data played by the speaker 130 includes both the audio data selected by the user wearing the ANC earphone 100 and played by the speaker 130, and the audio data of the anti-noise signal for eliminating noise interference played by the speaker 130. For another example, if the user wearing the ANC earphone 100 does not currently select to play any audio data, for example, the user wearing the ANC earphone 100 can use the ANC earphone 100 as earplugs, the audio data played by the speaker 130 can include the audio data of the anti-noise signal for eliminating noise interference played by the speaker 130, but does not include the audio data selected by the user wearing the ANC earphone 100 for playing, and the embodiment of the present application is not limited thereto.

[0034] Therefore, the method 200 for noise reduction of the ANC earphone 100 can determine the first primary path transfer function and the first secondary path transfer function according to the first out-ear data collected by the out-ear microphone 110 and the first in-ear data collected by the in-ear microphone 120 in the case that the loudspeaker 130 normally plays audio data, and then update the working coefficient of the filter 140 to the first working coefficient according to the first primary path transfer function and / or the first secondary path transfer function. The method 200 can be applied to any stage of the ANC earphone 100 normally playing audio data through the loudspeaker 130, and can be executed multiple times to realize real-time updating of the working coefficient of the filter 140 in the use process of the ANC earphone 100. In this way, even if the environment where the user wears changes or the position of the ANC earphone 100 and the ear canal changes in the use process of the ANC earphone 100, the working coefficient of the filter 140 can be updated in real time through the method 200, and then the noise reduction effect of the ANC earphone 100 is adjusted, so that the user wearing has a good use experience. In addition, the method 200 determines the working coefficient of the filter 140 according to the audio data played by the loudspeaker 130, without the need to increase additional or special audio signals, for example, without the need to increase audio signals outside the hearing range of the user wearing, which can simplify the ANC earphone 100, avoid the influence of additional audio signals on the user wearing, ensure the noise reduction effect of the ANC earphone 100, and ensure the use experience of the user wearing.

[0035] It should be understood that the out-ear microphone 110 of the embodiments of the present application can also be referred to as a reference microphone. The out-ear microphone 110 is usually located at the shell of the ANC earphone 100 to collect data outside the ear of the user wearing. Specifically, the out-ear microphone 110 is mainly used to collect out-ear audio data, for example, the out-ear microphone 110 can collect noise generated by the surrounding environment where the user wearing is located, and can also collect audio components of audio data played by the loudspeaker 130 and leaked to the surrounding environment.

[0036] Optionally, the method 200 can further include: collecting, by the out-ear microphone 110, first out-ear data in the case that the loudspeaker 130 plays audio data, wherein the first out-ear data can include noise generated by the surrounding environment where the user wearing is located, and can also include audio components of audio data played by the loudspeaker 130 and leaked to the surrounding environment collected by the out-ear microphone 110.

[0037] It should be understood that the in-ear microphone 120 of the embodiments of the present application can also be referred to as an error mic, which is usually located inside the ANC earphone 100 close to the ear canal for collecting data inside the ear. Specifically, the in-ear microphone 120 is mainly used to collect in-ear data, for example, the in-ear microphone 120 can collect audio data played by the loudspeaker 130, in addition, it can also collect noise data, which is in-ear passive noise data, for example, the in-ear passive noise data can include an audio echo signal that can be generated when the loudspeaker 130 plays audio data, and an in-ear residual signal after the air cancellation of a noise signal and an anti-noise signal.

[0038] Optionally, the method 200 can further include: collecting, by the in-ear microphone 120, first in-ear data in a case where the loudspeaker 130 plays audio data, wherein the first in-ear data can include audio data played by the loudspeaker 130 received by the in-ear microphone 120, and can also include noise data in the ear.

[0039] In the embodiments of the present application, in S210, the first primary path transfer function can be determined according to the first out-ear data collected by the out-ear microphone 110 and the first in-ear data collected by the in-ear microphone 120. Specifically, the method for determining the first primary path transfer function in the embodiments of the present application can be flexibly set according to actual application. For example, S210 in the method 200 can specifically include: determining the first primary path transfer function by an adaptive filtering algorithm according to the first out-ear data and the first in-ear data. Wherein, the adaptive filtering algorithm can be selected according to actual application, for example, the least mean square (LMS) algorithm or the recursive least squares (RLS) algorithm can be used, and the embodiments of the present application are not limited thereto.

[0040] Optionally, the method 200 can include: collecting, by the in-ear microphone 120, the first in-ear data at the same time as collecting, by the out-ear microphone 110, the first out-ear data in a case where the loudspeaker 130 plays audio data. Collecting the first out-ear data and the first in-ear data at the same time can improve the accuracy of the determined first primary path transfer function.

[0041] In the embodiment of the present application, in S220, the audio data received by the in-ear microphone 120 is determined according to the first in-ear data, the first out-ear data and the first primary path transfer function, wherein the audio data received by the in-ear microphone 120 represents part of the first in-ear data received by the in-ear microphone 120, which is the audio data received by the in-ear microphone 120 after the audio data is played by the loudspeaker 130.

[0042] Optionally, S220 can specifically include: determining first in-ear passive noise data according to the first out-ear data and the first primary path transfer function; determining the audio data received by the in-ear microphone 120 according to the first in-ear data and the first in-ear passive noise data. Specifically, since the first out-ear data collected by the out-ear microphone 110 mainly includes environmental noise outside the ear, the first in-ear passive noise data representing noise signals or noise data that may exist in the ear can be estimated and determined based on the first out-ear data and the first primary path transfer function. In this way, since the first in-ear data collected by the in-ear microphone 120 includes the first in-ear passive noise data and the audio data received by the in-ear microphone 120, the audio data received by the in-ear microphone 120 can be determined based on the determined first in-ear passive noise data and the first in-ear data.

[0043] For example, determining the audio data received by the in-ear microphone 120 according to the first in-ear data and the first in-ear passive noise data can specifically include: determining the difference between the first in-ear data and the first in-ear passive noise data as the audio data received by the in-ear microphone 120, i.e., the first in-ear data minus the determined first in-ear passive noise data, to obtain the audio data received by the in-ear microphone 120.

[0044] In this way, in S230, the first secondary path transfer function is determined according to the audio data played by the loudspeaker 130 and the audio data received by the in-ear microphone 120, wherein the first secondary path transfer function represents the transfer function from the loudspeaker 130 to the in-ear microphone 120. Specifically, the method for determining the first secondary path transfer function in the embodiment of the present application can be flexibly set according to actual application. For example, S230 in the method 200 can specifically include: determining the first secondary path transfer function according to the audio data played by the loudspeaker 130 and the audio data received by the in-ear microphone 120 by using an adaptive filtering algorithm. The adaptive filtering algorithm can be selected according to actual application, for example, LMS algorithm or RLS algorithm can be used; and the algorithm for determining the first primary path transfer function can be the same as or different from the algorithm for determining the first secondary path transfer function, which is not limited in the embodiment of the present application.

[0045] In the embodiment of the present application, in S240, the working coefficient of the filter 140 is updated to a first working coefficient according to the first primary path transfer function and / or the first secondary path transfer function. Specifically, the working coefficient of the filter 140 can be determined in any manner according to the determined first primary path transfer function and / or the first secondary path transfer function based on actual application. Wherein, the filter 140 in the embodiment of the present application can include any one or more filters in the ANC earphone 100, for example, the filter 140 includes at least one of a feed-forward (FF) filter, a feed-backward (FB) filter and a secondary path (SP) filter.

[0046] Optionally, the FF filter of the embodiment of the present application can be used to filter the data collected by the out-ear microphone 110, for example, the FF filter can be used to filter the first out-ear data; the FB filter can be used to filter the data collected by the in-ear microphone 120, for example, the FB filter can be used to filter the first in-ear data; and the SP filter can be used to filter the audio data played by the loudspeaker 130.

[0047] Optionally, as an embodiment, the first working coefficient can be determined according to a preset corresponding relationship. Specifically, the S240 can specifically include: determining the first working coefficient corresponding to the first primary path transfer function according to the corresponding relationship between different primary path transfer functions and different working coefficients of the filter 140, and updating the working coefficient of the filter 140 to the first working coefficient; and / or determining the first working coefficient corresponding to the first secondary path transfer function according to the corresponding relationship between different secondary path transfer functions and different working coefficients of the filter 140, and updating the working coefficient of the filter 140 to the first working coefficient.

[0048] In the embodiments of the present application, the first working coefficient corresponding to the first primary path transfer function can be determined according to a preset correspondence between different primary path transfer functions and different working coefficients of the filter 140, and the working coefficient of the filter 140 is updated to the first working coefficient. Alternatively, the first working coefficient corresponding to the first secondary path transfer function can be determined according to a preset correspondence between different secondary path transfer functions and different working coefficients of the filter 140, and the working coefficient of the filter 140 is updated to the first working coefficient. In addition, the above methods can also be combined for use. For example, the third working coefficient corresponding to the first primary path transfer function can be determined according to a preset correspondence between different primary path transfer functions and different working coefficients of the filter 140, and the fourth working coefficient corresponding to the first secondary path transfer function can be determined according to a preset correspondence between different secondary path transfer functions and different working coefficients of the filter 140. Then, the first working coefficient is determined based on a certain preset rule according to the third working coefficient and the fourth working coefficient. For another example, the preset correspondence can include both the primary path transfer function and the secondary path transfer function, that is, the first working coefficient corresponding to the first primary path transfer function and the second secondary path transfer function is determined according to a preset correspondence between different working coefficients of the filter 140 and different primary path transfer functions and secondary path transfer functions, and the working coefficient of the filter 140 is updated to the first working coefficient.

[0049] Alternatively, for different filters in the ANC earphone 100, the corresponding working coefficients can be determined according to the same or different correspondences described above. For example, for the FF filter, the first working coefficient of the FF filter can be determined according to a correspondence between different working coefficients of the FF filter and different primary path transfer functions and secondary path transfer functions. For another example, for the FB filter, the working coefficient of the FB filter can be determined and updated to the first working coefficient according to a preset correspondence between different secondary path transfer functions and different working coefficients of the FB filter. For another example, for the SP filter, the working coefficient of the SP filter can be determined and updated to the first working coefficient according to a preset correspondence between different secondary path transfer functions and different working coefficients of the SP filter, but the embodiments of the present application are not limited thereto.

[0050] Optionally, as another embodiment, the working coefficient of the filter 140 can be calculated in real time by using an adaptive filter. Specifically, the filter 140 of the embodiment of the present application is an adaptive filter, that is, any filter 140 of the embodiment of the present application can use an adaptive filter, for example, a Finite Impulse Response (FIR) filter or an Infinite Impulse Response (IIR) filter. In this way, the adaptive filter can update the working coefficient in real time according to the different primary path transfer functions and / or different secondary path transfer functions determined at different times, for example, the currently used working coefficient can be updated to the first working coefficient according to the first primary path transfer function and / or the first secondary path transfer function currently determined.

[0051] It should be understood that the different ways of determining the working coefficient of the filter 140 in S240 of the embodiment of the present application can be used alone or in combination with each other; and S210 to S240 in the above method 200 of the embodiment of the present application can be executed once or multiple times during the use of the ANC function of the ANC earphone 100, and the embodiment of the present application is not limited thereto.

[0052] For example, during the use of the ANC function of the ANC earphone 100, the ANC earphone 100 can repeatedly execute S210 to S240 in the above method 200 multiple times to update the working coefficient of the filter 140 in real time, that is, the ANC earphone 100 can determine the primary path transfer function and the secondary path transfer function in real time to determine and update the working coefficient of the corresponding filter 140. Among them, S210 to S240 in the above method 200 can correspond to the update of the filter 140 at any time or at any time.

[0053] Specifically, if the ANC earphone 100 repeatedly executes S210 to S240 in the above method 200 multiple times during the use of the ANC function of the ANC earphone 100, for any execution process, the first primary path transfer function and the first secondary path transfer function are determined, and the corresponding first working coefficient is determined, and the current working coefficient of the filter 140 is updated to the first working coefficient; for the next execution process, the primary path transfer function and the secondary path transfer function can be determined again, and the corresponding new working coefficient is determined, and the current first working coefficient of the filter 140 is updated to the new working coefficient, and so on.

[0054] If the ANC function of the ANC earphone 100 is turned on and used, the ANC earphone 100 repeatedly performs S210 to S240 in the method 200 described above. The update manner of S240 in the multiple execution processes of the method 200 can be the same or different. For example, the ANC earphone 100 can use the corresponding relationship to determine the working coefficient of the filter 140 in the multiple execution processes. For another example, the ANC earphone 100 can use the adaptive filter to determine and update the working coefficient in real time in the multiple execution processes. For another example, the ANC earphone 100 can first use the corresponding relationship to determine the working coefficient of the filter 140, and then use the adaptive filter to determine and update the working coefficient in the multiple execution processes. The embodiments of the present application are not limited thereto.

[0055] In addition, the working coefficient of different filters 140 in the ANC earphone 100 can be determined by the same or different manner. For example, in order to facilitate the setting and simplify the calculation process, the working coefficient of different filters 140 in the ANC earphone 100 can be updated based on the corresponding relationship, or the adaptive filter can be used to update the working coefficient. The embodiments of the present application are not limited thereto.

[0056] It should be understood that, considering that there can be different application scenarios in the use process of the ANC earphone 100, the method 200 of the embodiments of the present application can further include determining the update step of the filter 140 according to the detection result of the wearing environment of the ANC earphone 100. That is, in the process of updating the working coefficient of the filter 140 of the ANC earphone 100, the update step of the filter 140 can be adjusted in real time through the detection result of the wearing environment, so as to improve the working efficiency of the filter 140 of the ANC earphone 100, and make the noise reduction effect of the ANC earphone 100 more stable.

[0057] Optionally, the detection of the wearing environment of the ANC earphone 100 can be flexibly set according to actual application. For example, the detection result of the wearing environment of the ANC earphone 100 includes at least one of the following: a self-sound detection result of the wearing user, an environmental wind noise detection result, and an earphone howling detection result. Specifically, the self-sound detection of the wearing user can be used to detect whether the wearing user is speaking, for example, the ANC earphone 100 can include a self-sound detection module for performing self-sound detection of the wearing user, and correspondingly, the self-sound detection result of the wearing user can include the size of the detected speaking sound of the wearing user. The environmental wind noise detection can be used to detect the wind sound of the environment where the wearing user is currently located, for example, the ANC earphone 100 can include an environmental wind noise detection module for performing environmental wind noise detection, and correspondingly, the environmental wind noise detection result can include the size of the detected wind sound of the environment where the wearing user is currently located. The earphone howling detection can be used to detect the howling sound generated due to the interference between the ANC earphone 100 and other settings, for example, the ANC earphone 100 can include an earphone howling detection module for performing earphone howling detection, and correspondingly, the earphone howling detection result can include the size of the detected howling sound.

[0058] It should be understood that, according to the detection result of the wearing environment of the ANC earphone 100, determining the update step of the filter 140 can specifically include: if the detection result of the wearing environment of the ANC earphone 100 is greater than or equal to a preset value, reducing the update step of the filter 140; and / or, if the detection result of the wearing environment of the ANC earphone 100 is less than the preset value, increasing the update step of the filter 140. Specifically, taking the self-sound detection result of the wearing user as an example, if the wearing user is currently speaking, the speaking sound is likely to be mistakenly calculated as environmental noise by the ANC earphone 100, for example, the out-ear microphone 110 of the ANC earphone 100 can receive the speaking sound and calculate it as noise, thereby affecting the accuracy of the update of the working coefficient of the filter 140. However, in fact, the reason why the wearing user can hear his own speaking sound and hear the external environmental sound is different, the transmission paths of the two kinds of sound are different, and the speaking sound of the wearing user does not need to be calculated as external environmental noise. Therefore, based on the self-sound detection result of the wearing user, when the self-sound detection result of the wearing user exceeds the preset value, that is, when the speaking sound of the wearing user is large, the update step of the filter 140 can be reduced to avoid the speaking sound being detected as environmental noise to generate calculation error, so as to ensure the stability of the noise reduction effect of the ANC earphone 100; on the contrary, the update step of the filter 140 can also be increased when the self-sound detection result of the wearing user does not reach the preset value, that is, when the speaking sound of the wearing user is small or the wearing user does not speak, so as to improve the calculation accuracy.

[0059] Similarly, for the ambient wind noise detection result, if the ambient wind noise detection result exceeds the preset value, i.e., the external environment wind force where the user wearing the ANC earphone 100 is relatively large, the wind force can affect the calculation result of the filter 140 of the ANC earphone 100, and thus the update step of the filter 140 can be reduced to reduce or avoid the influence of the wind force on the calculation result; on the contrary, if the ambient wind noise detection result does not reach the preset value, i.e., the external environment wind force where the user wearing the ANC earphone 100 is relatively small, the influence on the calculation result of the filter 140 of the ANC earphone 100 is small, and thus the update step of the filter 140 can be increased.

[0060] Similarly, for the earphone howling detection result, if the earphone howling detection result exceeds the preset value, i.e., the interference between the ANC earphone 100 and other devices is relatively large, if the part of the interference is repeatedly calculated as noise and the operating coefficient of the filter 140 of the ANC earphone 100 is continuously updated, the howling sound can be increased, and thus the update step of the filter 140 can be reduced to reduce or avoid the influence of the howling sound on the calculation result; on the contrary, if the earphone howling detection result does not reach the preset value, i.e., the interference between the ANC earphone 100 and other devices is relatively small or there is no interference, the howling sound can be ignored, and thus the influence on the calculation result of the filter 140 of the ANC earphone 100 is small, and the update step of the filter 140 can be increased.

[0061] Therefore, based on the detection result of the environment where the ANC earphone 100 is worn, the update step can be flexibly adjusted in the update process of the filter 140, and thus the working efficiency of the filter 140 is improved, the stability of the noise reduction effect of the ANC earphone 100 is improved, and thus the experience of the user wearing the ANC earphone 100 is improved.

[0062] It should be understood that the operating coefficient of the filter 140 is determined based on the audio data played by the loudspeaker 130 for the noise reduction process of the ANC earphone 100. Considering that the loudspeaker 130 can also play other sounds in the use process of the ANC earphone 100, the operating coefficient of the filter 140 can also be determined based on the other sounds played by the loudspeaker 130. For example, when the user turns on the ANC function of the ANC earphone 100, the loudspeaker 130 of the ANC earphone 100 usually plays a prompt sound, which indicates that the ANC function is turned on, and thus the operating coefficient of the filter 140 can also be determined based on the prompt sound data played by the loudspeaker 130.

[0063] Optionally, Figure 3 A part of the schematic flowchart of the method 200 of the embodiment of the present application is shown, for example, the method 200 of the embodiment of the present application is shown. Figure 3 At least the following is omitted Figure 2The method 200 shown includes steps S210 to S240. As shown Figure 3 As shown, the method 200 of the embodiment of the application further includes: S250, in the case that the loudspeaker 130 plays prompt tone data, determining a second primary path transfer function according to second extra-ear data collected by the extra-ear microphone 110 and second intra-ear data collected by the intra-ear microphone 120, the prompt tone data played by the loudspeaker 130 being used to prompt the opening of the noise reduction function; S260, determining prompt tone data received by the intra-ear microphone 120 according to the second intra-ear data, the second extra-ear data and the second primary path transfer function; S270, determining a second secondary path transfer function according to the prompt tone data played by the loudspeaker 130 and the prompt tone data received by the intra-ear microphone 120; S280, updating the working coefficient of the filter 140 to a second working coefficient according to the second primary path transfer function and / or the second secondary path transfer function.

[0064] It should be understood that the prompt tone data played by the loudspeaker 130 of the embodiment of the application is used to prompt the ANC function of the ANC earphone 100 worn by the user to be opened. Optionally, the specific sound of the prompt tone can be flexibly set according to actual application, for example, the “prompt tone” can be “ding”, “ANC ON”, “noise reduction on”, “noise reduction on”, “in-ear” and the like. At the same time, the prompt tone tends to have a richer frequency spectrum, such as 300 Hz, 500 Hz, 1 KHz, 2 KHz and the like, and the embodiment of the application is not limited thereto.

[0065] Therefore, the method 200 for noise reduction of the ANC earphone 100 of the embodiment of the application can, in the case that the loudspeaker 130 plays prompt tone data, determine a second primary path transfer function and a second secondary path transfer function according to second extra-ear data collected by the extra-ear microphone 110 and second intra-ear data collected by the intra-ear microphone 120; and then update the working coefficient of the filter 140 to a second working coefficient according to the second primary path transfer function and / or the second secondary path transfer function. The method 200 determines the working coefficient of the filter 140 according to the prompt tone data played by the loudspeaker 130, which is quick and convenient, and can enable the user to obtain a better noise reduction experience in a shorter time, thereby improving the satisfaction of the user.

[0066] Optionally, the method 200 can further include: in the case that the loudspeaker 130 plays prompt tone data, collecting second extra-ear data by the extra-ear microphone 110, wherein the second extra-ear data can include noise generated by the surrounding environment in which the user wearing the ANC earphone 100 is located, and can also include an audio component of the prompt tone data played by the loudspeaker 130 leaking to the surrounding environment collected by the extra-ear microphone 110.

[0067] Optionally, the method 200 can further include: collecting, by the in-ear microphone 120, second in-ear data in the case that the speaker 130 plays prompt tone data, wherein the second in-ear data can include the prompt tone data received by the in-ear microphone 120, and can further include noise data in the ear.

[0068] Optionally, the method 200 can include: collecting, by the in-ear microphone 120, the second in-ear data while collecting, by the out-ear microphone 110, the second out-ear data in the case that the speaker 130 plays prompt tone data. Collecting the second in-ear data and the second out-ear data at the same time can improve the accuracy of the second primary path transfer function determined subsequently.

[0069] In the embodiment of the present application, in S250, the second primary path transfer function can be determined according to the second out-ear data collected by the out-ear microphone 110 and the second in-ear data collected by the in-ear microphone 120, wherein the second primary path transfer function in the embodiment of the present application represents the transfer function from the out-ear microphone 110 to the in-ear microphone 120. Specifically, the method for determining the second primary path transfer function in the embodiment of the present application can be flexibly set according to actual application, and can be the same as or different from the method for determining the first primary path transfer function. For example, S250 in the method 200 can specifically include: determining the second primary path transfer function by an adaptive filtering algorithm according to the second out-ear data and the second in-ear data. Wherein the adaptive filtering algorithm can be selected according to actual application, for example, LMS algorithm or RLS algorithm can be used, and the embodiment of the present application is not limited thereto.

[0070] In the embodiment of the present application, in S260, the prompt tone data received by the in-ear microphone 120 is determined according to the second in-ear data, the second out-ear data and the second primary path transfer function, wherein the prompt tone data received by the in-ear microphone 120 represents part of the first in-ear data received by the in-ear microphone 120, and the part of the data is the prompt tone data received by the in-ear microphone 120 after the speaker 130 plays the prompt tone data.

[0071] Optionally, the S260 can specifically include: determining second in-ear passive noise data according to the second out-ear data and the second primary path transfer function; and determining the prompt tone data received by the in-ear microphone 120 according to the second in-ear data and the second in-ear passive noise data. Specifically, since the second out-ear data collected by the out-ear microphone 110 mainly includes the environmental noise outside the ear, the second in-ear passive noise data can be estimated and determined based on the second out-ear data and the second primary path transfer function, where the second in-ear passive noise data represents the noise signal or noise data that can exist in the ear. In this way, since the second in-ear data collected by the in-ear microphone 120 includes the second in-ear passive noise data and the prompt tone data received by the in-ear microphone 120, the prompt tone data received by the in-ear microphone 120 can be determined based on the determined second in-ear passive noise data and the second in-ear data.

[0072] For example, the determination of the prompt tone data received by the in-ear microphone 120 according to the second in-ear data and the second in-ear passive noise data can specifically include: determining the difference between the second in-ear data and the second in-ear passive noise data as the prompt tone data received by the in-ear microphone 120, i.e., the second in-ear data minus the determined second in-ear passive noise data, to obtain the prompt tone data received by the in-ear microphone 120.

[0073] In this way, in the S270, the second secondary path transfer function is determined according to the prompt tone data played by the loudspeaker 130 and the prompt tone data received by the in-ear microphone 120, where the second secondary path transfer function represents the transfer function from the loudspeaker 130 to the in-ear microphone 120. Specifically, the method for determining the second secondary path transfer function in the embodiments of the present application can be flexibly set according to actual applications. For example, the S270 in the method 200 can specifically include: determining the second secondary path transfer function according to the prompt tone data played by the loudspeaker 130 and the prompt tone data received by the in-ear microphone 120 by using an adaptive filtering algorithm. The adaptive filtering algorithm can be selected according to actual applications, for example, the LMS algorithm or the RLS algorithm can be used; and the algorithm for determining the second primary path transfer function can be the same as or different from the algorithm for determining the second secondary path transfer function, and the algorithm for determining the second secondary path transfer function can be the same as or different from the algorithm for determining the first secondary path transfer function, and the embodiments of the present application are not limited thereto.

[0074] In the embodiments of the present application, in S280, the working coefficient of the filter 140 is updated to a second working coefficient according to the second primary path transfer function and / or the second secondary path transfer function. Specifically, the working coefficient of the filter 140 can be determined in any manner according to the determined second primary path transfer function and / or the second secondary path transfer function based on actual application.

[0075] Alternatively, as an embodiment, the second working coefficient can be determined according to a preset correspondence. Specifically, the S280 can specifically include: determining the second working coefficient corresponding to the second primary path transfer function according to a correspondence between different primary path transfer functions and different working coefficients of the filter 140, and updating the working coefficient of the filter 140 to the second working coefficient; and / or determining the second working coefficient corresponding to the second secondary path transfer function according to a correspondence between different secondary path transfer functions and different working coefficients of the filter 140, and updating the working coefficient of the filter 140 to the second working coefficient.

[0076] It should be understood that the method of determining the second working coefficient according to the preset correspondence is similar to the method of determining the first working coefficient according to the preset correspondence, and for the sake of brevity, will not be repeated here. For example, the working coefficient corresponding to the second primary path transfer function can be determined as the second working coefficient according to a preset correspondence between different primary path transfer functions and different working coefficients of the filter 140. Alternatively, the working coefficient corresponding to the second secondary path transfer function can also be determined as the second working coefficient according to a preset correspondence between different secondary path transfer functions and different working coefficients of the filter 140. For another example, the preset correspondence can also include the primary path transfer function and the secondary path transfer function, that is, the working coefficient corresponding to the second primary path transfer function and the second secondary path transfer function can be determined as the second working coefficient according to a preset correspondence between different working coefficients of the filter 140 and different primary path transfer functions and secondary path transfer functions.

[0077] Optionally, for different filters in the ANC earphone 100, the corresponding working coefficients can be determined according to the same or different corresponding relationships described above. For example, for the FF filter, the second working coefficient of the FF filter can be determined according to the corresponding relationship between the different working coefficients of the FF filter and the different primary path transfer functions and secondary path transfer functions. For another example, for the FB filter, the working coefficient of the FB filter can be determined and updated to the second working coefficient according to the corresponding relationship between the different secondary path transfer functions and the different working coefficients of the FB filter. For another example, for the SP filter, the working coefficient of the SP filter can be determined and updated to the second working coefficient according to the corresponding relationship between the different secondary path transfer functions and the different working coefficients of the SP filter, but the embodiments of the present application are not limited thereto.

[0078] Optionally, as another embodiment, the working coefficients of the filters 140 can be calculated in real time by using adaptive filters. Specifically, the filters 140 in the embodiments of the present application are adaptive filters, that is, any one of the filters 140 in the embodiments of the present application can use an adaptive filter, for example, an FIR filter or an IIR filter. In this way, the adaptive filter can update the currently used working coefficient to the second working coefficient according to the determined second primary path transfer function and / or the second secondary path transfer function.

[0079] It should be understood that the steps S250 to S280 in the embodiments of the present application can be performed before and / or after the steps S210 to S240. For example, when the user wearing the ANC earphone 100 turns on the ANC function, the loudspeaker 130 will play prompt tone data, and therefore, the steps S250 to S280 of the method 200 in the embodiments of the present application can be performed based on the prompt tone data played by the loudspeaker 130; then, after the prompt tone is played, that is, after the ANC function is turned on, the loudspeaker 130 can also normally play audio data, that is, the steps S210 to S240 of the method 200 in the embodiments of the present application can also be performed based on the audio data played by the loudspeaker 130. At this time, since the ANC earphone 100 has determined the second working coefficient based on the prompt tone data played by the loudspeaker 130, and then has determined the first working coefficient based on the audio data played by the loudspeaker 130, correspondingly, the step S240 of updating the working coefficient of the filter 140 to the first working coefficient can specifically include updating the working coefficient of the filter 140 from the second working coefficient to the first working coefficient. Moreover, the ANC earphone 100 can also update the working coefficient of the filter 140 in real time based on different audio data played by the loudspeaker 130.

[0080] For another example, in the case that the user wearing the ANC earphone 100 turns on the ANC function, before the loudspeaker 130 plays the prompt tone data, the loudspeaker 130 can also normally play the audio data, that is, the steps S210 to S240 of the method 200 of the embodiments of the present application can be executed based on the audio data played by the loudspeaker 130; then, the loudspeaker 130 plays the prompt tone data, and the steps S250 to S280 of the method 200 of the embodiments of the present application are executed based on the prompt tone data played by the loudspeaker 130. At this time, since the ANC earphone 100 determines the first working coefficient based on the audio data played by the loudspeaker 130 first, and then determines the second working coefficient based on the prompt tone data played by the loudspeaker 130, correspondingly, the updating of the working coefficient of the filter 140 to the second working coefficient in S280 can specifically include: updating the working coefficient of the filter 140 from the first working coefficient to the second working coefficient. Moreover, after the loudspeaker 130 of the ANC earphone 100 plays the prompt tone data, the steps S210 to S240 of the method 200 can also be executed multiple times based on other audio data normally played by the loudspeaker 130, so as to update the working coefficient of the filter 140 in real time.

[0081] Therefore, the method 200 for noise reduction of the ANC earphone 100 can determine the second primary path transfer function and the second secondary path transfer function according to the second external ear data collected by the external ear microphone 110 and the second internal ear data collected by the internal ear microphone 120 when the loudspeaker 130 plays the prompt tone data, and then update the working coefficient of the filter 140 to the second working coefficient according to the second primary path transfer function and / or the second secondary path transfer function. In addition, the method 200 can determine the first primary path transfer function and the first secondary path transfer function according to the first external ear data collected by the external ear microphone 110 and the first internal ear data collected by the internal ear microphone 120 when the loudspeaker 130 normally plays the audio data, and then update the working coefficient of the filter 140 to the first working coefficient according to the first primary path transfer function and / or the first secondary path transfer function. The method 200 can be applied to any stage when the ANC earphone 100 plays the prompt tone data through the loudspeaker 130 and normally plays the audio data through the loudspeaker 130, and can be executed multiple times to realize real-time updating of the working coefficient of the filter 140 during use of the ANC earphone 100. In this way, even if the environment changes or the position of the ANC earphone 100 in the ear canal changes during use of the ANC earphone 100 by the user, the working coefficient of the filter 140 can be updated in real time through the method 200, and the noise reduction effect of the ANC earphone 100 can be adjusted, so that the user has a good use experience. In addition, the method 200 determines the working coefficient of the filter 140 according to the audio data played by the loudspeaker 130, without the need to increase additional or special audio signals, for example, without the need to increase audio signals outside the hearing range of the user, which can simplify the ANC earphone 100, avoid the influence of additional audio signals on the user, ensure the noise reduction effect of the ANC earphone 100, and ensure the use experience of the user.

[0082] It should be understood that the method 200 can be executed by a processor, for example, can be executed by a processor such as a CPU, a GPU, an ASIC, a DSP, a programmable logic controller, a field programmable gate array, or the like. Figure 1The processor 150 of the ANC earphone 100 shown performs. It should be understood that the processor of the embodiments of the present application can be an integrated circuit chip with signal processing capability. In the implementation process, each step of the method embodiments described above can be completed by integrated logic circuits of hardware in the processor or instructions in the form of software. The processor described above can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, and other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and combines the hardware to complete the steps of the above method.

[0083] The embodiments of the present application also provide a computer readable storage medium for storing a computer program. Optionally, the computer readable storage medium can be applied to the ANC earphone 100 in the embodiments of the present application, and the computer program makes the earphone execute the corresponding processes implemented by the ANC earphone 100 in each method of the embodiments of the present application. For brevity, details are not repeated here.

[0084] The embodiments of the present application also provide a computer program product comprising computer program instructions. Optionally, the computer program product can be applied to the ANC earphone 100 in the embodiments of the present application, and the computer program instructions make the earphone execute the corresponding processes implemented by the ANC earphone 100 in each method of the embodiments of the present application. For brevity, details are not repeated here.

[0085] The embodiments of the present application also provide a computer program. Optionally, the computer program can be applied to the ANC earphone 100 in the embodiments of the present application, and when the computer program runs in the earphone, the earphone executes the corresponding processes implemented by the ANC earphone 100 in each method of the embodiments of the present application. For brevity, details are not repeated here.

[0086] Those skilled in the art can clearly understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0087] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

[0088] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the above-described device embodiments are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.

[0089] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0090] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically independently, or two or more units can be integrated into one unit.

[0091] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the parts of the present application that essentially contribute to the prior art or the parts of the technical solutions can be embodied in the form of software products. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0092] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An active noise cancellation method for active noise-canceling headphones, characterized in that, The active noise-canceling headphones include an in-ear microphone, an out-of-ear microphone, a speaker, and a filter. The method is performed when the active noise-canceling function of the active noise-canceling headphones is enabled. Enabling the active noise-canceling function includes the speaker playing an anti-noise signal to eliminate noise interference. The method includes: Based on the first external ear data collected by the external ear microphone and the first internal ear data collected by the internal ear microphone, an adaptive filtering algorithm is used to determine a first primary path transfer function. The first primary path transfer function represents the transfer function from the external ear microphone to the internal ear microphone. The first internal ear data includes the anti-noise signal played by the speaker and the first internal ear passive noise data collected by the internal ear microphone. Based on the first external ear data and the first primary path transfer function, the first internal passive noise data is determined. The first internal passive noise data includes the noise signal and the residual signal in the ear after the anti-noise signal is canceled out in the air. The difference between the first in-ear data and the first in-ear passive noise data is determined as the audio data received by the in-ear microphone, and the audio data includes the anti-noise signal played by the speaker and collected by the in-ear microphone; The first-order path transfer function is determined based on the noise-resistant signal played by the speaker and the noise-resistant signal played by the speaker collected by the in-ear microphone. The first-order path transfer function represents the transfer function from the speaker to the in-ear microphone. The operating coefficients of the filter are updated to the first operating coefficients based on the first-stage path transfer function.

2. The method according to claim 1, characterized in that, When the active noise cancellation function of the active noise-canceling headphones is turned on, the speaker also plays audio data selected by the user.

3. The method according to claim 1, characterized in that, The step of updating the working coefficients of the filter to the first working coefficients according to the first-stage path transfer function includes: Based on the correspondence between different secondary path transfer functions and different operating coefficients of the filter, the first operating coefficient corresponding to the first primary path transfer function is determined, and the operating coefficients of the filter are updated to the first operating coefficient.

4. The method according to claim 1, characterized in that, The method further includes: The update step size of the filter is determined based on the detection results of the wearing environment of the active noise-canceling headphones.

5. The method according to claim 4, characterized in that, The detection results of the wearing environment of the active noise-canceling headphones include at least one of the following: the detection results of the user's spontaneous voice, the detection results of ambient wind noise, and the detection results of headphone feedback.

6. The method according to claim 4, characterized in that, The step of determining the update step size of the filter based on the detection results of the wearing environment of the active noise-canceling headphones includes: If the detection result of the wearing environment of the active noise-canceling headphones is greater than or equal to a preset value, then the update step size of the filter is reduced; and / or, If the detection result of the wearing environment of the active noise-canceling headphones is less than the preset value, the update step size of the filter is increased.

7. The method according to claim 1, characterized in that, The method further includes: When the speaker plays audio data, the first external ear data is collected through the external ear microphone, and the first internal ear data is collected through the internal ear microphone.

8. The method according to claim 1, characterized in that, The method further includes: When the speaker plays a prompt tone, a second primary path transfer function is determined based on the second external ear data collected by the external ear microphone and the second internal ear data collected by the internal ear microphone. The prompt tone played by the speaker is used to prompt the activation of the noise reduction function. Based on the second in-ear data, the second external-ear data, and the second primary path transfer function, the prompt tone data received by the in-ear microphone is determined; Based on the prompt tone data played by the speaker and the prompt tone data received by the in-ear microphone, the second-stage path transfer function is determined; and The operating coefficients of the filter are updated to the second operating coefficients based on the second primary path transfer function and / or the second secondary path transfer function.

9. The method according to claim 8, characterized in that, The step of updating the filter's operating coefficients to second operating coefficients based on the second primary path transfer function and / or the second secondary path transfer function includes: Based on the correspondence between different primary path transfer functions and different operating coefficients of the filter, determine the second operating coefficient corresponding to the second primary path transfer function, and update the operating coefficients of the filter to the second operating coefficient; and / or, Based on the correspondence between different secondary path transfer functions and different operating coefficients of the filter, the second operating coefficient corresponding to the second secondary path transfer function is determined, and the operating coefficients of the filter are updated to the second operating coefficient.

10. The method according to claim 8, characterized in that, The step of updating the working coefficients of the filter to the second working coefficients includes: The operating coefficients of the filter are updated from the first operating coefficients to the second operating coefficients.

11. The method according to claim 8, characterized in that, The step of updating the working coefficients of the filter to the first working coefficients includes: The operating coefficients of the filter are updated from the second operating coefficients to the first operating coefficients.

12. The method according to claim 1, characterized in that, The filter includes at least one of the following: a feedforward FF filter, a feedback FB filter, and a secondary path SP filter.

13. An active noise-canceling headphone, characterized in that, The active noise-canceling headphones include: an in-ear microphone, an out-of-ear microphone, a speaker, a filter, and a processor. The processor operates when the active noise-canceling function of the headphones is enabled. Enabling the active noise-canceling function includes the speaker playing an anti-noise signal to eliminate noise interference. The processor is used for: Based on the first external ear data collected by the external ear microphone and the first internal ear data collected by the internal ear microphone, an adaptive filtering algorithm is used to determine a first primary path transfer function. The first primary path transfer function represents the transfer function from the external ear microphone to the internal ear microphone. The first internal ear data includes the anti-noise signal played by the speaker and the first internal ear passive noise data collected by the internal ear microphone. Based on the first external ear data and the first primary path transfer function, the first internal passive noise data is determined. The first internal passive noise data includes the noise signal and the residual signal in the ear after the anti-noise signal is canceled out in the air. The difference between the first in-ear data and the first in-ear passive noise data is determined as the audio data received by the in-ear microphone, and the audio data includes the anti-noise signal played by the speaker and collected by the in-ear microphone; The first-order path transfer function is determined based on the noise-resistant signal played by the speaker and the noise-resistant signal played by the speaker collected by the in-ear microphone. The first-order path transfer function represents the transfer function from the speaker to the in-ear microphone. The operating coefficients of the filter are updated to the first operating coefficients based on the first-stage path transfer function.

14. The active noise-canceling headphones according to claim 13, characterized in that, When the active noise cancellation function of the active noise-canceling headphones is turned on, the speaker also plays audio data selected by the user.

15. The active noise-canceling headphones according to claim 13, characterized in that, The processor is used for: Based on the correspondence between different secondary path transfer functions and different operating coefficients of the filter, the first operating coefficient corresponding to the first primary path transfer function is determined, and the operating coefficients of the filter are updated to the first operating coefficient.

16. The active noise-canceling headphones according to claim 13, characterized in that, The processor is also used for: The update step size of the filter is determined based on the detection results of the wearing environment of the active noise-canceling headphones.

17. The active noise-canceling headphones according to claim 16, characterized in that, The detection results of the wearing environment of the active noise-canceling headphones include at least one of the following: the detection results of the user's spontaneous voice, the detection results of ambient wind noise, and the detection results of headphone feedback.

18. The active noise-canceling headphones according to claim 16, characterized in that, The processor is used for: If the detection result of the wearing environment of the active noise-canceling headphones is greater than or equal to a preset value, then the update step size of the filter is reduced; and / or, If the detection result of the wearing environment of the active noise-canceling headphones is less than the preset value, the update step size of the filter is increased.

19. The active noise-canceling headphones according to claim 13, characterized in that, The processor is used for: When the speaker plays audio data, the first external ear data is collected through the external ear microphone, and the first internal ear data is collected through the internal ear microphone.

20. The active noise-canceling headphones according to claim 13, characterized in that, The processor is also used for: When the speaker plays a prompt tone, a second primary path transfer function is determined based on the second external ear data collected by the external ear microphone and the second internal ear data collected by the internal ear microphone. The prompt tone played by the speaker is used to prompt the activation of the noise reduction function. Based on the second in-ear data, the second external-ear data, and the second primary path transfer function, the prompt tone data received by the in-ear microphone is determined; The second-level path transfer function is determined based on the prompt tone data played by the speaker and the prompt tone data received by the in-ear microphone; as well as The operating coefficients of the filter are updated to the second operating coefficients based on the second primary path transfer function and / or the second secondary path transfer function.

21. The active noise-canceling headphones according to claim 20, characterized in that, The processor is used for: Based on the correspondence between different primary path transfer functions and different operating coefficients of the filter, the second operating coefficient corresponding to the second primary path transfer function is determined, and the operating coefficients of the filter are updated to the second operating coefficient. And / or, Based on the correspondence between different secondary path transfer functions and different operating coefficients of the filter, the second operating coefficient corresponding to the second secondary path transfer function is determined, and the operating coefficients of the filter are updated to the second operating coefficient.

22. The active noise-canceling headphones according to claim 20, characterized in that, The processor is used for: The operating coefficients of the filter are updated from the first operating coefficients to the second operating coefficients.

23. The active noise-canceling headphones according to claim 20, characterized in that, The processor is used for: The operating coefficients of the filter are updated from the second operating coefficients to the first operating coefficients.

24. The active noise-canceling headphones according to claim 13, characterized in that, The filter includes at least one of the following: a feedforward FF filter, a feedback FB filter, and a secondary path SP filter.

Citation Information

Patent Citations

  • Earphone with active noise reduction function and noise reduction method thereof

    CN113630684A

  • Frequency-domain adaptive noise cancellation system

    US20180308465A1

Cited By

  • Active noise cancelling method and active noise cancelling earpiece

    WO2024060458A1