Method for quickly updating feedforward filter of noise reduction headphones and related components

By calculating the Fourier transform spectrum and transfer function of the noise signal received by the noise reduction headset, adjusting the feedforward filter to calculate the theoretical optimal filter, and filtering out the closest preferred filter from the built-in filter, solving the problem of long filter update time in the prior art, and achieving rapid update and efficient noise reduction effect.

CN114501218BActive Publication Date: 2025-04-15SHENZHEN SANSHENG ACOUSTIC TECH SERVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210133165.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-10
Publication Date
2025-04-15
Estimated Expiration
2042-02-10

AI Technical Summary

Technical Problem

The existing noise-reducing headphone filters have a long update time, so it is impossible to quickly obtain the built-in filter closest to the theoretical optimal filter, and the update process is greatly affected by environmental noise.

Method used

By obtaining the complex spectrum of the Fourier transform of the noise signals received by the feedforward microphone and the in-ear microphone, compute the transfer function, and adjust the gain coefficient or frequency domain response function of the feedforward filter according to the transfer function in different states, calculate the theoretical optimal filter, and filter out the closest preferred filter among the built-in filter.

Benefits of technology

It realizes rapid update of noise-reducing headphone feedforward filters, shortens update time, improves the speed of obtaining the optimal filter, and reduces the impact of environmental noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114501218B_ABST
    Figure CN114501218B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for quickly updating a feedforward filter of a noise reduction headset and its related components. The method includes: respectively obtaining a first electrical signal and a second electrical signal of the noise received by a feedforward microphone and an in-ear microphone and respectively calculating the complex spectrum of the Fourier transform to calculate a transfer function and obtain a first transfer function; adjusting the gain coefficient or frequency domain response function of the feedforward filter and recalculating the transfer function to obtain a second transfer function, and calculating a theoretical optimal filter; comparing a built-in filter with the theoretical optimal filter, taking the built-in filter closest to the theoretical optimal filter as a preferred filter and calculating the corresponding gain. The present invention obtains the transfer function in the corresponding state by changing the state of the feedforward filter, thereby calculating the theoretical optimal filter, screening out the preferred filter closest to the theoretical optimal filter from the built-in filter and calculating the gain, the whole process has a short update time, and the preferred filter is obtained quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of noise reduction headphones, and in particular to a method for quickly updating a feedforward filter of a noise reduction headphone and related components thereof. Background Art

[0002] In recent years, noise-canceling headphones have become more and more popular. Most noise-canceling headphones use fixed filters for filtering. However, due to different users, the requirements for filters will also vary, and fixed filters cannot meet personalized needs. For this situation, the method of built-in multiple sets of filters is currently mainly used. According to individual differences, LMS, gradient descent or traversal methods are used to select filters or gain searches. However, built-in multiple sets of filters will also lead to a long update time, and it is impossible to quickly obtain the built-in filter that is closest to the theoretical optimal filter. In addition, the update process is greatly affected by environmental noise, and the wearer of the headphones cannot have interference such as speaking and swallowing. Summary of the invention

[0003] The embodiment of the present invention provides a method for quickly updating a noise reduction headphone feedforward filter and related components thereof, aiming to solve the problem in the prior art that the noise reduction headphone filter update time is long and a built-in filter closest to a theoretical optimal filter cannot be quickly obtained.

[0004] In a first aspect, an embodiment of the present invention provides a method for quickly updating a noise reduction headphone feedforward filter, comprising:

[0005] Acquire a first electrical signal of noise received by the feedforward microphone and a second electrical signal of noise received by the in-ear microphone;

[0006] Calculating the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal respectively, and calculating the transfer function according to the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal to obtain a first transfer function;

[0007] Adjusting the gain coefficient or the frequency domain response function of the feedforward filter, and recalculating the transfer function to obtain a second transfer function, and calculating a theoretical optimal filter based on the states before and after the feedforward filter is adjusted and the first transfer function and the second transfer function;

[0008] The built-in filter is compared with the theoretical optimal filter, and the built-in filter closest to the theoretical optimal filter is taken as the preferred filter and the corresponding gain is calculated.

[0009] In a second aspect, an embodiment of the present invention provides a system for quickly updating a noise reduction headphone feedforward filter, comprising:

[0010] A noise electrical signal acquisition unit, used to acquire a first electrical signal of noise received by the feedforward microphone and a second electrical signal of noise received by the in-ear microphone;

[0011] a transfer function calculation unit, configured to calculate the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal respectively, and calculate the transfer function according to the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal to obtain a first transfer function;

[0012] A theoretical optimal filter acquisition unit, configured to adjust the gain coefficient or the frequency domain response function of the feedforward filter, recalculate the transfer function to obtain a second transfer function, and calculate the theoretical optimal filter based on the states before and after the feedforward filter is adjusted and the first transfer function and the second transfer function;

[0013] The preferred filter acquisition unit is used to compare the built-in filter with the theoretical optimal filter, and take the built-in filter closest to the theoretical optimal filter as the preferred filter and calculate the corresponding gain.

[0014] In a third aspect, an embodiment of the present invention further provides a wearable device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for quickly updating the noise reduction headphone feedforward filter described in the first aspect is implemented.

[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the method for quickly updating the noise reduction headphone feedforward filter described in the first aspect above.

[0016] The embodiment of the present invention provides a method for quickly updating the feedforward filter of a noise reduction headset and its related components, the method comprising: obtaining a first electrical signal of noise received by a feedforward microphone and a second electrical signal of noise received by an in-ear microphone; respectively calculating the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal, and calculating the transfer function according to the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal to obtain a first transfer function; adjusting the gain coefficient or frequency domain response function of the feedforward filter, and recalculating the transfer function to obtain a second transfer function, and calculating the theoretical optimal filter based on the states before and after the adjustment of the feedforward filter and the first transfer function and the second transfer function; comparing the built-in filter with the theoretical optimal filter, and taking the built-in filter closest to the theoretical optimal filter as the preferred filter and calculating the corresponding gain. The embodiment of the present invention calculates the transfer function of the noise reduction headset in different states by changing the gain coefficient or frequency domain response function of the feedforward filter, and quickly calculates the theoretical optimal filter according to the transfer function in different states, so as to quickly screen out the preferred filter closest to the theoretical optimal filter in the built-in filter and calculate the gain, the whole process has a short update time, and the preferred filter is obtained quickly. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0018] Figure 1 A schematic flow chart of a method for quickly updating a noise reduction headphone feedforward filter provided by an embodiment of the present invention;

[0019] Figure 2 This is the schematic diagram of the feedforward noise-cancelling headphones;

[0020] Figure 3 A schematic diagram of a gain calculation vector of a method for quickly updating a noise reduction headphone feedforward filter provided by an embodiment of the present invention;

[0021] Figure 4 A schematic diagram of another gain calculation vector of the method for quickly updating the feedforward filter of a noise reduction headphone provided by an embodiment of the present invention;

[0022] Figure 5 A schematic block diagram of a system for rapidly updating a noise reduction headphone feedforward filter provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0025] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0026] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0027] See also Figure 1 , Figure 1 A schematic flow chart of a method for quickly updating a noise reduction headphone feedforward filter provided by an embodiment of the present invention, the method comprising steps S101 to S104.

[0028] S101, acquiring a first electrical signal of noise received by a feedforward microphone and a second electrical signal of noise received by an in-ear microphone;

[0029] S102, respectively calculating the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal, and calculating a transfer function according to the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal to obtain a first transfer function;

[0030] S103, adjusting the gain coefficient or the frequency domain response function of the feedforward filter, and recalculating the transfer function to obtain a second transfer function, and calculating a theoretical optimal filter based on the states before and after the feedforward filter is adjusted and the first transfer function and the second transfer function;

[0031] S104: Compare the built-in filter with the theoretical optimal filter, and take the built-in filter closest to the theoretical optimal filter as the preferred filter and calculate the corresponding gain.

[0032] In this embodiment, based on the first electrical signal x(t) of the noise received by the feedforward microphone and the second electrical signal y(t) of the noise received by the in-ear microphone, the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal under the current conditions are calculated, and the transfer function of the feedforward filter is calculated based on the complex spectra of the first electrical signal and the second electrical signal to obtain the first transfer function; the transfer function is recalculated by adjusting the gain coefficient or the frequency domain response function of the feedforward filter to obtain the second transfer function, and then the theoretical optimal filter is calculated based on the states before and after the adjustment of the feedforward filter and the first transfer function and the second transfer function, and then according to the theoretical optimal filter, the filter closest to the theoretical optimal filter is selected from the built-in filters as the preferred filter, and then the gain of the preferred filter is calculated.

[0033] Specifically, Figure 2 As shown, Figure 2 This is the schematic diagram of the feedforward noise reduction headphones. Due to individual differences and different wearing conditions, the transfer functions in the block diagram are different, which leads to the need for personalized adjustment of the filters we use. The symbols in the figure are explained as follows: n(t): external environmental noise; H n2f (t): transfer function of noise to the feedforward microphone; H n2b : transfer function from noise to the in-ear microphone; x(t): electrical signal representation of the noise received by the feedforward microphone; G (i) : Gain coefficient of the feedforward filter; H f (i) : Frequency domain response function of the feedforward filter; H s2b (t): transfer function from the headphone speaker to the feedback microphone; y(t): electrical signal collected by the in-ear microphone, which contains the external noise and the anti-phase noise emitted by the headphone speaker superimposed on each other; H yx : The transfer function between the feedforward microphone and the in-ear microphone; v(t): Interference signal, such as pulse, swallowing, speech, etc. The signals collected by the feedforward microphone and the in-ear microphone are x(t) and y(t) respectively. Since the in-ear microphone usually has some interference signal v(t), we use the following formula to calculate the transfer function under the current conditions:

[0034] First, calculate the complex spectrum X(f k ) and Y(f k ), and then calculate the transfer function: where f k is the frequency, G XY is the cross power spectrum, G XX is the autopower spectrum.

[0035] In one embodiment, the step S103 includes:

[0036] The theoretically optimal filter is calculated using the following formula:

[0037]

[0038] Among them, q i Represents different states, H F (f k ,q i ) is q i The built-in feedforward filter in the state, H F (f k ,q i+1 ) is q i+1 The built-in feedforward filter in the state, H yx (f k ,q i ) is state q i The transfer function of the feedforward microphone electrical signal and the in-ear microphone electrical signal, H yx (f k ,q i+1 ) is state q i+1 Transfer function of the feedforward microphone electrical signal and the in-ear microphone electrical signal.

[0039] In this embodiment, after the feedforward noise reduction earphone is worn, H n2f , H n2b , H s2b is constant in real time, by changing G (i) and H f (i) (i.e. changing the feedforward filter) can calculate the theoretical optimal filter under the corresponding state. The state when the feedforward filter is not changed is taken as the initial state q i , at this time, the transfer function of the feedforward microphone electrical signal and the in-ear microphone electrical signal is H yx (f k ,q i ), the feedforward filter is H F (f k ,q i ), and then change the feedforward filter to get the new state q i+1 , and calculate the transfer function H of the feedforward microphone electrical signal and the ear microphone electrical signal in this state yx (f k ,q i+1 ), the feedforward filter is H F (f k ,q i+1 ), and then calculate the optimal filter using the following formula:

[0040]

[0041] Among them, q i Represents different states, H F (f k ,q i ) is q i The built-in feedforward filter in the state, H F (f k ,q i+1 ) is q i+1 The built-in feedforward filter in the state, H yx (f k ,q i ) is state q i The transfer function of the feedforward microphone electrical signal and the in-ear microphone electrical signal, H yx (f k ,q i+1 ) is state q i+1 Transfer function of the feedforward microphone electrical signal and the in-ear microphone electrical signal.

[0042] In one embodiment, comparing the built-in filter with the theoretical optimal filter and taking the built-in filter closest to the theoretical optimal filter as the preferred filter includes:

[0043] When the built-in filter is the only feedforward filter, the built-in filter is used as the preferred filter;

[0044] Alternatively, the theoretical phase of the theoretical optimal filter at the specified frequency point and the actual phase of the built-in filter at the specified frequency point are obtained, and the built-in filter corresponding to the actual phase in the same phase interval as the theoretical phase is taken as the preferred filter;

[0045] Alternatively, a first relative amplitude of the theoretical optimal filter between multiple specified frequency points and a second relative amplitude of the built-in filter between multiple specified frequency points are obtained, and the amplitude response shapes of the first relative amplitude and the second relative amplitude are compared, and the built-in filter corresponding to the second relative amplitude whose amplitude response shape is closest to the first relative amplitude is taken as the preferred filter.

[0046] In this embodiment, the built-in filter of the noise reduction headset is compared with the theoretical optimal filter. When there is only one built-in filter, the built-in filter is directly used as the preferred filter; when the built-in filter is not unique, the theoretical phase of the theoretical optimal filter at the specified frequency point and the actual phase of each built-in filter at the specified frequency point are first obtained, and the built-in filter corresponding to the actual phase in the phase interval to which the theoretical phase belongs is used as the preferred filter; or, the first relative amplitude of the theoretical optimal filter at multiple specified frequency points and the second relative amplitude of each built-in filter at multiple specified frequency points are obtained, and then the amplitude response shapes of the first relative amplitude and the second relative amplitude are compared, and the built-in filter corresponding to the second relative amplitude whose amplitude response shape is closest to the first relative amplitude is used as the preferred filter. If only two specified frequency points are used, the amplitude difference between the theoretical optimal filter and the built-in filter at these two frequencies is calculated as a feature and compared.

[0047] In one embodiment, the step of taking the built-in filter closest to the theoretical optimal filter as the preferred filter and calculating the corresponding gain includes:

[0048] Obtaining a first vector corresponding to a theoretical optimal filter at a specified frequency and a second vector corresponding to a preferred filter at a specified frequency;

[0049] A perpendicular line is drawn to the second vector based on the terminal point of the first vector to obtain a projection vector of the first vector in the direction of the second vector, and a gain corresponding to the projection vector is used as the gain of the preferred filter.

[0050] In this embodiment, if Figure 3 As shown, is the first vector corresponding to the theoretical optimal filter, is the second vector corresponding to the optimal filter. Draw a perpendicular line through A to OC and intersect it at H. Then The corresponding gain is the gain of the optimal filter. The specific formula is as follows: in, It is proportional to the transfer functions of the two filters before and after.

[0051] In a specific embodiment, the optimal gain is calculated using the following formula:

[0052]

[0053] Among them, g T is the optimal gain, Real refers to the real part, is the transfer function corresponding to the first vector, g1 is the first gain setting value, is the transfer function corresponding to the second vector, g2 is the second gain setting value, and g1≠g2.

[0054] In one embodiment, it further includes:

[0055] The optimal gain is calculated using the following formula:

[0056]

[0057] Among them, x1 is the value of the transfer function Hyx when the gain is changed to adjust the filter to g1H; x2 is the value of the transfer function Hyx when the gain is changed to adjust the filter to g2H; x3 is the value of the transfer function Hyx when the gain is changed to adjust the filter to g3H; k is the optimal gain; k1, k2, k3 are proportional coefficients related to the gain respectively.

[0058] In this embodiment, the optimal gain is calculated by the above formula, and only the transfer function H is used. yx The amplitude response of , no complex number calculations are required.

[0059] See also Figure 5 , Figure 5 A schematic block diagram of a system for quickly updating a noise-cancelling headphone feedforward filter provided by an embodiment of the present invention, wherein the system 200 for quickly updating a noise-cancelling headphone feedforward filter comprises:

[0060] The noise electrical signal acquisition unit 201 is used to acquire a first electrical signal of the noise received by the feedforward microphone and a second electrical signal of the noise received by the in-ear microphone;

[0061] A transfer function calculation unit 202, used to calculate the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal respectively, and calculate the transfer function according to the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal to obtain a first transfer function;

[0062] The theoretical optimal filter acquisition unit 203 is used to adjust the gain coefficient or frequency domain response function of the feedforward filter, recalculate the transfer function to obtain the second transfer function, and calculate the theoretical optimal filter based on the states before and after the feedforward filter is adjusted and the first transfer function and the second transfer function;

[0063] The preferred filter acquisition unit 204 is used to compare the built-in filter with the theoretical optimal filter, and take the built-in filter closest to the theoretical optimal filter as the preferred filter and calculate the corresponding gain.

[0064] In one embodiment, the transfer function calculation unit 202 includes:

[0065] The transfer function formula calculation unit is used to calculate the transfer function using the following formula:

[0066]

[0067] Among them, f k is the frequency, GXY is the cross power spectrum, and GXX is the auto power spectrum.

[0068] In one embodiment, the optimal filter calculation unit includes:

[0069] The theoretical optimal filter formula calculation unit is used to calculate the theoretical optimal filter using the following formula:

[0070]

[0071] Among them, q i Represents different states, H F (f k ,q i ) is q i The built-in feedforward filter in the state, H F (f k ,q i+1 ) is q i+1 The built-in feedforward filter in the state, H yx (f k ,q i ) is state q i The transfer function of the feedforward microphone electrical signal and the in-ear microphone electrical signal, H yx (f k ,q i+1 ) is state q i+1 Transfer function of the feedforward microphone electrical signal and the in-ear microphone electrical signal.

[0072] In one embodiment, the preferred filter acquisition unit 204 includes:

[0073] A feedforward filter acquisition unit, configured to use the built-in filter as a preferred filter when the built-in filter is the only feedforward filter;

[0074] A phase comparison unit is used to obtain the theoretical phase of the theoretical optimal filter at a specified frequency point and the actual phase of the built-in filter at the specified frequency point, and take the built-in filter corresponding to the actual phase in the same phase interval as the theoretical phase as the preferred filter;

[0075] A relative amplitude comparison unit is used to either obtain a first relative amplitude of the theoretical optimal filter between multiple specified frequency points and a second relative amplitude of the built-in filter between multiple specified frequency points, and compare the amplitude response shapes of the first relative amplitude and the second relative amplitude, and take the built-in filter corresponding to the second relative amplitude whose amplitude response shape is closest to the first relative amplitude as the preferred filter.

[0076] In one embodiment, the preferred filter acquisition unit 204 further includes:

[0077] A vector acquisition unit, used to acquire a first vector corresponding to a theoretical optimal filter at a specified frequency, and a second vector corresponding to a preferred filter at a specified frequency;

[0078] A gain acquisition unit is used to make a perpendicular line of the second vector based on the terminal point of the first vector, obtain the projection vector of the first vector in the direction of the second vector, and use the gain corresponding to the projection vector as the gain of the preferred filter.

[0079] In one embodiment, the preferred filter acquisition unit 204 further includes:

[0080] The first optimal gain formula calculation unit is used to calculate the gain using the following formula:

[0081]

[0082] Among them, g T is the optimal gain, Real refers to the real part, is the transfer function corresponding to the first vector, g1 is the first gain setting value, is the transfer function corresponding to the second vector, g2 is the second gain setting value, and g1≠g2.

[0083] In one embodiment, the preferred filter acquisition unit 204 further includes:

[0084] The second optimal gain formula calculation unit is used to calculate the gain using the following formula:

[0085]

[0086] Where x1 is the transfer function H when the gain is changed to adjust the filter to g1H yx The amplitude of x2 is the transfer function H when the gain is changed to adjust the filter to g2H. yx The amplitude of x3 is the change of gain. When the filter is adjusted to g3H, the transfer function H yx The amplitude of; k is the optimal gain; k1, k2, k3 are proportional coefficients related to the gain respectively.

[0087] An embodiment of the present invention also provides a wearable device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for quickly updating the noise reduction headphone feedforward filter as described above when executing the computer program.

[0088] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for quickly updating a noise reduction headphone feedforward filter as described above is implemented.

[0089] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

[0090] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A method for quickly updating a feedforward filter of a noise reduction headphone, characterized in that: include: Acquire a first electrical signal of noise received by the feedforward microphone and a second electrical signal of noise received by the in-ear microphone; Calculating the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal respectively, and calculating the transfer function according to the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal to obtain a first transfer function; Adjusting the gain coefficient or the frequency domain response function of the feedforward filter, and recalculating the transfer function to obtain a second transfer function, and calculating a theoretical optimal filter based on the states before and after the feedforward filter is adjusted and the first transfer function and the second transfer function; Compare the built-in filter with the theoretical optimal filter, and take the built-in filter closest to the theoretical optimal filter as the preferred filter and calculate the corresponding gain; The calculating of the theoretical optimal filter based on the states before and after adjustment of the feedforward filter and the first transfer function and the second transfer function comprises: The theoretically optimal filter is calculated using the following formula: Among them, qi represents different states, H F (f k ,q i ) is the built-in feedforward filter in qi state, H F (f k ,q i+1 ) is q i+1 The built-in feedforward filter in the state, H yx (f k ,q i ) is state q i The transfer function of the feedforward microphone electrical signal and the in-ear microphone electrical signal, H yx (f k ,q i+1 ) is the state qi +1 Transfer function of the feedforward microphone electrical signal and the in-ear microphone electrical signal.

2. The method for rapidly updating the feedforward filter of a noise reduction headphone according to claim 1, characterized in that: The calculating the transfer function according to the complex spectrum of the Fourier transform of the first electrical signal and the second electrical signal comprises: The transfer function is calculated using the following formula: Among them, f k is the frequency, G XY is the cross power spectrum, G XX is the autopower spectrum.

3. The method for rapidly updating the feedforward filter of a noise reduction headphone according to claim 1, characterized in that: The step of comparing the built-in filter with the theoretical optimal filter and taking the built-in filter closest to the theoretical optimal filter as the preferred filter includes: When the built-in filter is the only feedforward filter, the built-in filter is used as the preferred filter; Alternatively, the theoretical phase of the theoretical optimal filter at the specified frequency point and the actual phase of the built-in filter at the specified frequency point are obtained, and the built-in filter corresponding to the actual phase in the same phase interval as the theoretical phase is taken as the preferred filter; Alternatively, a first relative amplitude of the theoretical optimal filter between multiple specified frequency points and a second relative amplitude of the built-in filter between multiple specified frequency points are obtained, and the amplitude response shapes of the first relative amplitude and the second relative amplitude are compared, and the built-in filter corresponding to the second relative amplitude whose amplitude response shape is closest to the first relative amplitude is taken as the preferred filter.

4. The method for rapidly updating the feedforward filter of a noise reduction headphone according to claim 3, characterized in that: The method of taking the built-in filter closest to the theoretical optimal filter as the preferred filter and calculating the corresponding gain includes: Obtaining a first vector corresponding to a theoretical optimal filter at a specified frequency and a second vector corresponding to a preferred filter at a specified frequency; A perpendicular line is drawn to the second vector based on the terminal point of the first vector to obtain a projection vector of the first vector in the direction of the second vector, and a gain corresponding to the projection vector is used as the gain of the preferred filter.

5. The method for rapidly updating the feedforward filter of a noise reduction headphone according to claim 4, characterized in that: The step of drawing a perpendicular line to the second vector based on the terminal point of the first vector to obtain a projection vector of the first vector in the direction of the second vector, and using a gain corresponding to the projection vector as a gain of the preferred filter includes: The gain is calculated using the following formula: Among them, g T is the optimal gain, Real refers to the real part, is the transfer function corresponding to the first vector, g1 is the first gain setting value, is the transfer function corresponding to the second vector, g2 is the second gain setting value, and g1≠g2.

6. The method for rapidly updating the feedforward filter of a noise reduction headphone according to claim 1, characterized in that: The method of taking the built-in filter closest to the theoretical optimal filter as the preferred filter and calculating the corresponding gain also includes: The gain is calculated using the following formula: Where x1 is the transfer function H when changing the gain to adjust the filter to g1H yx The amplitude of x2 is the transfer function H when the gain is changed to adjust the filter to g2H. yx The amplitude of x3 is the change of gain. When the filter is adjusted to g3H, the transfer function H yx The amplitude of; k is the optimal gain; k1, k2, k3 are proportional coefficients related to the gain respectively.

7. A system for rapidly updating a feedforward filter of a noise-cancelling headphone, characterized in that: include: A noise electrical signal acquisition unit, used to acquire a first electrical signal of noise received by the feedforward microphone and a second electrical signal of noise received by the in-ear microphone; a transfer function calculation unit, configured to calculate the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal respectively, and calculate the transfer function according to the complex spectra of the Fourier transform of the first electrical signal and the second electrical signal to obtain a first transfer function; A theoretical optimal filter acquisition unit, configured to adjust the gain coefficient or the frequency domain response function of the feedforward filter, recalculate the transfer function to obtain a second transfer function, and calculate the theoretical optimal filter based on the states before and after the feedforward filter is adjusted and the first transfer function and the second transfer function; A preferred filter acquisition unit, used to compare the built-in filter with the theoretical optimal filter, and take the built-in filter closest to the theoretical optimal filter as the preferred filter and calculate the corresponding gain; The theoretically optimal filter calculation unit comprises: The theoretical optimal filter formula calculation unit is used to calculate the theoretical optimal filter using the following formula: Among them, qi represents different states, H F (f k ,q i ) is the built-in feedforward filter in qi state, H F (f k ,q i+1 ) is q i+1 The built-in feedforward filter in the state, H yx (f k ,q i ) is state q i The transfer function of the feedforward microphone electrical signal and the in-ear microphone electrical signal, H yx (f k ,q i+1 ) is the state qi +1 Transfer function of the feedforward microphone electrical signal and the in-ear microphone electrical signal.

8. A wearable device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for fast updating the noise reduction headphone feedforward filter according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to perform the method for quickly updating a noise-cancelling headphone feedforward filter according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent equalizer design method, and noise reduction headphone with intelligent equalizer

    CN108540895A

  • Feed-forward filter design method and noise reduction earphone

    CN109195050A