CN118055350A - Method and device for adaptive active noise reduction of earphone, storage medium and earphone - Google Patents

Method and device for adaptive active noise reduction of earphone, storage medium and earphone Download PDF

Info

Publication number
CN118055350A
CN118055350A CN202410072880.7A CN202410072880A CN118055350A CN 118055350 A CN118055350 A CN 118055350A CN 202410072880 A CN202410072880 A CN 202410072880A CN 118055350 A CN118055350 A CN 118055350A
Authority
CN
China
Prior art keywords
transfer function
canal transfer
current
ear canal
auditory canal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410072880.7A
Other languages
Chinese (zh)
Inventor
朱嘉俊
方泽凯
杨协宜
毛伟文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Jieli Technology Co Ltd
Original Assignee
Zhuhai Jieli Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Jieli Technology Co Ltd filed Critical Zhuhai Jieli Technology Co Ltd
Priority to CN202410072880.7A priority Critical patent/CN118055350A/en
Publication of CN118055350A publication Critical patent/CN118055350A/en
Pending legal-status Critical Current

Links

Landscapes

  • Soundproofing, Sound Blocking, And Sound Damping (AREA)

Abstract

The invention provides a method, a device, a storage medium and an earphone for adaptive active noise reduction of an earphone, wherein S100, under the condition that the earphone is worn on the ear, a current auditory canal transfer function of an auditory canal system responding to sound and a corresponding current filter coefficient are calculated; s200, judging whether the current auditory canal transfer function meets a first preset condition, if not, executing the step S300, and if not, executing the step S400; s300, selecting a historical filter coefficient corresponding to a certain historical auditory canal transfer function from a historical auditory canal transfer parameter table as a filter coefficient of a loudspeaker, and actively reducing noise of the earphone; s400, selecting a current filter coefficient as a filter coefficient of a loudspeaker, actively reducing noise of the earphone, judging whether the current auditory canal transfer function meets a second preset condition, if so, storing the current auditory canal transfer function and the current filter coefficient into a historical auditory canal transfer parameter table, and if not, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table.

Description

Method and device for adaptive active noise reduction of earphone, storage medium and earphone
Technical Field
The invention relates to the field of headphones, in particular to a method and device for adaptive active noise reduction of headphones, a storage medium and headphones.
Background
In recent years, wireless headsets have been increasingly accepted by the market and consumers. The basic working principle of the active noise reduction earphone is that in the case of wearing the earphone, a signal which is in opposite phase with noise detected outside the auditory canal in a substantially equal amplitude is played through a loudspeaker positioned in the auditory canal, and the noise transmitted into the ear is counteracted, so that a noise reduction area is formed in the auditory canal.
Because the auditory canal, auricle, wearing habit of even earphone and the like of each person are inconsistent, the active noise reduction earphone needs to calculate the auditory canal transfer function of the auditory canal system responding to sound in a prompting sound mode and the like, and then the active noise reduction of the earphone is carried out according to the auditory canal transfer function.
When the audio signal acquired by the microphone is interfered by the outside, such as large actions of a human body, bone conduction vibration during speaking and the like, the calculation of the transfer function of the auditory canal is wrong, signals which are approximately in constant amplitude and opposite to noise cannot be correctly played, finally, the noise reduction effect is damaged, and even noise increase is caused when serious.
Disclosure of Invention
Based on the above-mentioned situation, a main object of the present invention is to provide a method, device, storage medium and earphone for adaptive active noise reduction of an earphone, so as to achieve both suitability with the current ear canal system and speed of noise reduction.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows:
A method for adaptive active noise reduction of an earphone comprises the following steps: s100, under the condition that the earphone is worn on the ear, calculating a current ear canal transfer function of an ear canal system responding to sound and a corresponding current filter coefficient, wherein the ear canal system comprises an environment microphone, an error microphone and a loudspeaker of the earphone; s200, judging whether the current auditory canal transfer function meets a first preset condition, if not, executing the step S300, and if not, executing the step S400; s300, selecting a historical filter coefficient corresponding to a certain historical auditory canal transfer function from a historical auditory canal transfer parameter table as the filter coefficient of the loudspeaker, and performing active noise reduction on the earphone; s400, selecting the current filter coefficient as the filter coefficient of the loudspeaker, actively reducing noise of the earphone, judging whether the current auditory canal transfer function meets a second preset condition, if so, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table, and if not, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table; wherein the second preset condition limits the current ear canal transfer function more severely than the first preset condition limits the current ear canal transfer function.
Preferably, the first preset condition includes: the absolute value of the difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than a first jitter threshold, and the deviation of the current ear canal transfer function from the reference ear canal transfer function is smaller than a first deviation threshold.
Preferably, the second preset condition includes: the absolute value of the difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than a second jitter threshold, and the deviation of the current ear canal transfer function and the reference ear canal transfer function is smaller than a second deviation threshold; wherein the second jitter threshold is less than the first jitter threshold, and the second deviation threshold is less than the first deviation threshold.
Preferably, in step S400, when the historical ear canal transfer function stored in the historical ear canal transfer parameter table reaches a set upper limit, then: and respectively calculating the deviation between each historical auditory canal transfer function in the historical auditory canal transfer parameter table and the current auditory canal transfer function, and replacing the historical auditory canal transfer function corresponding to the maximum deviation in the historical auditory canal transfer parameter table by the current auditory canal transfer function.
Preferably, the deviation of the two ear canal transfer functions is the sum of the absolute values of the differences in the power values of the two ear canal transfer functions at any frequency.
Preferably, in step S300, a deviation between each of the historical ear canal transfer functions in the historical ear canal transfer parameter table and the current ear canal transfer function is calculated, and the historical ear canal transfer function corresponding to the smallest deviation is used as the certain historical ear canal transfer function.
Preferably, the difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than the first jitter threshold, which specifically includes: the absolute value of the difference between the power value at any frequency of the current ear canal transfer function and the power value of the first adjacent frequency within the set frequency distance is smaller than the first adjacent jitter threshold, and the absolute value of the difference between the power value of the current ear canal transfer function and the power value of the first adjacent frequency within the set frequency distance is smaller than the first adjacent jitter threshold.
Preferably, the difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than the second jitter threshold, which specifically includes: the absolute value of the difference between the power value of any frequency of the current auditory canal transfer function and the power value of the second adjacent frequency in the set frequency distance is smaller than the second adjacent jitter threshold value, and the absolute value of the difference between the power value of the current auditory canal transfer function and the power value of the second adjacent frequency in the set frequency distance is smaller than the second adjacent jitter threshold value.
The invention also provides a device for adaptive active noise reduction of the earphone, which comprises: a computing unit for computing a current ear canal transfer function and a corresponding current filter coefficient of an ear canal system for a sound response in case the ear speaker is worn at an ear, wherein the ear canal system comprises an ambient microphone, an error microphone and a speaker of the ear speaker; the judging unit is used for judging whether the current auditory canal transfer function meets a first preset condition or not, if not, triggering the first processing unit to work, and if not, triggering the second processing unit to work; the first processing unit is used for selecting a historical filter coefficient corresponding to a certain historical auditory canal transfer function from the historical auditory canal transfer parameter table as the filter coefficient of the loudspeaker, and performing active noise reduction on the earphone; the second processing unit is used for selecting the current filter coefficient as the filter coefficient of the loudspeaker, actively reducing noise of the earphone, judging whether the current auditory canal transfer function meets a second preset condition, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table if the current auditory canal transfer function and the current filter coefficient meet the second preset condition, and otherwise, not storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table; wherein the second preset condition limits the current ear canal transfer function more severely than the first preset condition limits the current ear canal transfer function.
Preferably, the first preset condition includes: the absolute value of the difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than a first jitter threshold, and the deviation of the current ear canal transfer function from the reference ear canal transfer function is smaller than a first deviation threshold.
Preferably, the second preset condition includes: the absolute value of the difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than a second jitter threshold, and the deviation of the current ear canal transfer function and the reference ear canal transfer function is smaller than a second deviation threshold; wherein the second jitter threshold is less than the first jitter threshold, and the second deviation threshold is less than the first deviation threshold.
Preferably, in the second processing unit, when the historical ear canal transfer function stored in the historical ear canal transfer parameter table reaches a set upper limit, the set upper limit is: and respectively calculating the deviation between each historical auditory canal transfer function in the historical auditory canal transfer parameter table and the current auditory canal transfer function, and replacing the historical auditory canal transfer function corresponding to the maximum deviation in the historical auditory canal transfer parameter table by the current auditory canal transfer function.
Preferably, in the first processing unit, a deviation between each historical ear canal transfer function in the historical ear canal transfer parameter table and the current ear canal transfer function is calculated, and a historical ear canal transfer function corresponding to the smallest deviation is used as the certain historical ear canal transfer function.
Preferably, the difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than the first jitter threshold, which specifically includes: the absolute value of the difference between the power value at any frequency of the current ear canal transfer function and the power value of the first adjacent frequency within the set frequency distance is smaller than the first adjacent jitter threshold, and the absolute value of the difference between the power value of the current ear canal transfer function and the power value of the first adjacent frequency within the set frequency distance is smaller than the first adjacent jitter threshold.
Preferably, the difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than the second jitter threshold, which specifically includes: the absolute value of the difference between the power value of any frequency of the current auditory canal transfer function and the power value of the second adjacent frequency in the set frequency distance is smaller than the second adjacent jitter threshold value, and the absolute value of the difference between the power value of the current auditory canal transfer function and the power value of the second adjacent frequency in the set frequency distance is smaller than the second adjacent jitter threshold value.
The invention also provides a computer storage medium in which a computer program is stored, the computer program being executed by a processor as any of the methods of adaptive active noise reduction for headphones.
The invention also provides a headset, which is used for executing any adaptive active noise reduction method of the headset or comprises any adaptive active noise reduction device of the headset.
In the above scheme, when the current auditory canal transfer function meets the first preset condition, the active noise reduction of the earphone can be performed by preferentially using the current filter coefficient corresponding to the current auditory canal transfer function so as to be more suitable for the current auditory canal system; under the condition that the current auditory canal transfer function does not meet the first preset condition, the historical filter coefficient is selected as the filter coefficient of the loudspeaker to perform active noise reduction of the earphone, so that the high-quality active noise reduction of the earphone can be achieved at a high speed, a user is prevented from waiting for a long time, and the adaptive active noise reduction of the embodiment gives consideration to the suitability of the current auditory canal system and the noise reduction entering speed. In addition, under the condition that the current auditory canal transfer function meets the first preset condition, further judging whether the current auditory canal transfer function meets the second preset condition, if so, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table, and if not, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table, so that the current auditory canal transfer function with higher quality can be used again later.
Other advantages of the present invention will be set forth in the description of specific technical features and solutions, by which those skilled in the art should understand the advantages that the technical features and solutions bring.
Drawings
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings. In the figure:
fig. 1 is a schematic diagram of the composition of an earphone according to a preferred embodiment of the present invention;
Fig. 2 is a flow chart of a method for adaptive active noise reduction of a headset according to a preferred embodiment of the present invention.
Detailed Description
The present invention is described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth in order to avoid obscuring the present invention, and in order to avoid obscuring the present invention, well-known methods, procedures, flows, and components are not presented in detail.
Moreover, those of ordinary skill in the art will appreciate that the drawings are provided herein for illustrative purposes and that the drawings are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout the description and the claims, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, it is the meaning of "including but not limited to".
In the description of the present invention, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
Fig. 1 is a headset assembly of one embodiment of the invention, the headset including a main control unit (e.g., CPU), an ambient microphone (or referred to as a reference microphone), an error microphone, a speaker, a filter, and a memory. The main control unit is used for controlling the work of the other units (including the environment microphone, the error microphone, the loudspeaker, the filter and the memory). In the case where the earphone is worn on the ear, the ambient microphone is located outside the ear, and the error microphone and the speaker are both located in the ear canal, in which case the ambient microphone can detect ambient noise, the speaker can play sound for calculating the current ear canal transfer function, and sound for active noise reduction, and the error microphone can detect the effect of active noise reduction. The associated filter coefficients may be configured into a filter to adjust the amplitude of the noise-reduced audio signal to be fed to the speaker to effect compensation of the ear canal transfer function (e.g., to produce a compensation function that is inverse to the ear canal transfer function) to effect active noise reduction of the earpiece.
Fig. 2 is a method of adaptive active noise reduction for headphones according to an embodiment of the present invention, including the following steps.
S100, calculating a current ear canal transfer function and a corresponding current filter coefficient of an ear canal system for responding to sound in the condition that the earphone is worn on the ear, wherein the ear canal system comprises an environment microphone, an error microphone and a loudspeaker of the earphone. Specifically, in the present embodiment, the current ear canal transfer function is: in the process of detecting the auditory canal system, the ratio of the amplitude of the signal detected by the current environmental microphone to the amplitude of the signal detected by the error microphone is then compared with the amplitude of the signal fed into the loudspeaker. In the prior art, a common ear canal transfer function is defined as the ratio of the signal amplitude detected by the ambient microphone to the signal amplitude detected by the error microphone (corresponding to the ambient microphone and the error microphone of the ear canal system comprising the earphone), and this calculation method only considers the characteristic of the path from the ambient microphone to the error microphone for the sound response, and does not consider the characteristic of the path from the speaker to the error microphone for the sound response, so that the noise reduction effect is easily affected by the path from the speaker to the error microphone. In the present embodiment, the way of calculating the ear canal transfer function considers the path from the ambient microphone to the error microphone and the path from the speaker to the error microphone, so that the influence of the path from the speaker to the error microphone can be reduced, thereby improving the noise reduction effect. Once the current auditory canal transfer function is obtained by calculation, a filter coefficient (for example, a filter coefficient on any frequency) in a filter of the loudspeaker can be calculated, under the condition that the filter is not influenced by other interference sources except noise (for example, a large-amplitude motion of a human body and the like), when the filter is used for filtering the noise reduction audio signal, the amplitude of the noise reduction audio signal output by the loudspeaker according to the filtered noise reduction audio signal is equal or nearly equal to the amplitude of a residual noise signal of external environmental noise after being attenuated by the auditory canal, and the phase is opposite, so that active noise reduction can be realized, and the filter coefficient at the moment is used as the current filter coefficient corresponding to the current auditory canal transfer function.
S200, judging whether the current auditory canal transfer function meets a first preset condition, if not, executing the step S300, and if not, executing the step S400. As described above, the calculated current ear canal transfer function is abnormal due to the influence of the disturbance source other than the current noise (e.g., the large-scale motion of the human body), in other words, the current ear canal transfer function is characterized by the disturbance source, and thus, the current ear canal transfer function should be treated as abnormal. For this reason, a first preset condition is set for evaluating whether the current ear canal transfer function is normal (for example, jitter between power values at adjacent frequency points is smaller than a jitter threshold value, etc.), and when the current ear canal transfer function satisfies the first preset condition, it is determined that the current ear canal transfer function is normal, and the processing as in step S400 is performed, and when the first preset condition is not satisfied, it is determined that the current ear canal transfer function is abnormal, and the processing as in step S300 is performed. As an example, the power value P (x) of the current ear canal transfer function H (x) is calculated by:
P(x)=10*log10[real(H(x))|*real(H(x))+imag(H(x))|*imag(H(x))];
Where x represents the frequency of the current ear canal transfer function, real (H (x)) represents the real part of the current ear canal transfer function, and imag (H (xj)) represents the imaginary part of the current ear canal transfer function.
S300, selecting a historical filter coefficient corresponding to a certain historical auditory canal transfer function from the historical auditory canal transfer parameter table as a filter coefficient of a loudspeaker, and actively reducing noise of the earphone. A table of historic ear canal transfer parameters may be stored in the memory, the historic ear canal transfer parameters table storing a plurality of sets of transfer parameters, each set of transfer parameters comprising a historic ear canal transfer function and a corresponding historic filter coefficient. Before leaving the factory, the transfer parameter sets may be written into a historical ear canal transfer parameter table in the earphone test process, and after leaving the factory, along with active noise reduction of the earphone used by the user, certain current ear canal transfer functions meeting the first preset condition (as described below, those meeting the second preset condition) and corresponding current filter coefficients will be written into the historical ear canal transfer parameter table. Specifically, as described above, when the calculated current ear canal transfer function does not meet the first preset condition (i.e., abnormal), a certain historical ear canal transfer function is selected from the historical ear canal transfer parameter table, and the corresponding historical filter coefficient is used as the filter coefficient of the speaker, and then the noise reduction audio signal is filtered by the filter with the filter coefficient and sent to the speaker, and the speaker outputs a corresponding noise reduction sound signal, thereby realizing active noise reduction of the earphone. In some embodiments, the deviation between each historical ear canal transfer function in the historical ear canal transfer parameter table and the current ear canal transfer function is calculated, and the historical ear canal transfer function corresponding to the smallest deviation is used as the certain historical ear canal transfer function, i.e. the historical ear canal transfer function corresponding to the smallest deviation is selected.
S400, selecting the current filter coefficient as the filter coefficient of a loudspeaker, actively reducing noise of the earphone, judging whether the current auditory canal transfer function meets a second preset condition, if so, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table, and if not, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table; wherein the second preset condition limits the current ear canal transfer function more severely than the first preset condition limits the current ear canal transfer function. Specifically, as described above, when the calculated current ear canal transfer function meets the first condition (i.e., normal), the corresponding current filter coefficient is used as the filter coefficient of the speaker, and then the noise reduction audio signal is filtered by the filter with the filter coefficient and sent to the speaker, and the speaker further outputs the corresponding noise reduction sound signal, thereby realizing active noise reduction of the earphone. In addition, it is further required to determine whether the current ear canal transfer function is good enough for subsequent re-use, for this purpose, a second preset condition that limits the current ear canal transfer function more strictly is further set to evaluate whether the current ear canal transfer function is good enough (for example, jitter between power values at adjacent frequency points is smaller than a jitter threshold in the first preset condition), and if the current ear canal transfer function satisfies the second preset condition, it is determined that the current ear canal transfer function is good enough, and the current ear canal transfer function and the current filter coefficient are stored in the historical ear canal transfer parameter table for subsequent use; and when the current auditory canal transfer function does not meet the second preset condition, judging that the current auditory canal transfer function is not good enough, and not storing the current auditory canal transfer function into the historical auditory canal transfer parameter table.
In the above embodiment, when the current ear canal transfer function meets the first preset condition, the active noise reduction of the earphone may be performed by preferentially using the current filter coefficient corresponding to the current ear canal transfer function, so as to be more suitable for the current ear canal system; under the condition that the current auditory canal transfer function does not meet the first preset condition, the historical filter coefficient is selected as the filter coefficient of the loudspeaker to perform active noise reduction of the earphone, so that the high-quality active noise reduction of the earphone can be achieved at a high speed, a user is prevented from waiting for a long time, and the adaptive active noise reduction of the embodiment gives consideration to the suitability of the current auditory canal system and the noise reduction entering speed. In addition, under the condition that the current auditory canal transfer function meets the first preset condition, further judging whether the current auditory canal transfer function meets the second preset condition, if so, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table, and if not, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table, so that the current auditory canal transfer function with higher quality can be used again later.
In some embodiments, the first preset condition includes: the absolute value of the difference between the power value at any frequency f n of the current ear canal transfer function and the power value within the set frequency distance deltaf is smaller than a first jitter threshold, and the deviation of the current ear canal transfer function from the reference ear canal transfer function is smaller than a first deviation threshold. For any frequency f n, the frequency f within the set frequency distance Δf is: f n-Δf≤f≤fn +Δf, the absolute value of the difference between the power value at any frequency f and the power value at frequency f n within this range is less than the first jitter threshold. For example, the absolute value of the difference between the power value at any frequency f n of the current ear canal transfer function and the power value of the first adjacent frequency f n+1 within the set frequency distance is smaller than the first adjacent jitter threshold, and the absolute value of the difference between the power value of the first adjacent frequency f n+2 within the set frequency distance is smaller than the first adjacent jitter threshold, wherein the first adjacent jitter threshold th_s11 and the first adjacent jitter threshold th_s12 may be the same or different. The reference ear canal transfer function is used as a reference standard for the current ear canal transfer function, and may be obtained by integrating the ear canal transfer functions calculated in the case that a large number of headphones are worn on the ears. The deviation of the current ear canal transfer function from the reference ear canal transfer function, which reflects the degree of difference between the two, may be the sum of absolute values of the differences between the two power values at each frequency, or may be the average value of the sum of absolute values; it will be appreciated that when the deviation is different in different specific forms, the corresponding first deviation threshold will also be different.
In some embodiments, the second preset condition includes: the absolute value of the difference between the power value at any frequency f n of the current ear canal transfer function and the power value within the set frequency distance delta f is smaller than a second jitter threshold, and the deviation of the current ear canal transfer function and the reference ear canal transfer function is smaller than a second deviation threshold; wherein the second jitter threshold is less than the first jitter threshold, and the second deviation threshold is less than the first deviation threshold. For any frequency f n, the frequency f within the set frequency distance Δf is: f n-Δf≤f≤fn +Δf, the absolute value of the difference between the power value at any frequency f and the power value at frequency f n within this range is less than the second jitter threshold. For example, the absolute value of the difference between the power value at any frequency f n of the current ear canal transfer function and the power value of the second adjacent frequency f n+1 within the set frequency distance is smaller than the second adjacent jitter threshold, and the absolute value of the difference between the power value of the second adjacent frequency f n+2 within the set frequency distance is smaller than the second adjacent jitter threshold, wherein the second adjacent jitter threshold th_s21 and the second adjacent jitter threshold th_s22 may be the same or different. The deviation of the current ear canal transfer function from the reference ear canal transfer function, which reflects the degree of difference between the two, may be the sum of absolute values of the differences between the two power values at each frequency, or may be the average value of the sum of absolute values; it will be appreciated that when the deviation is different in different specific forms, the corresponding second deviation threshold will also be different.
In some embodiments, when the historical ear canal transfer function stored in the historical ear canal transfer parameter table reaches a set upper number limit, then: and respectively calculating the deviation between each historical auditory canal transfer function in the historical auditory canal transfer parameter table and the current auditory canal transfer function, and replacing the historical auditory canal transfer function corresponding to the maximum deviation in the historical auditory canal transfer parameter table by the current auditory canal transfer function. The deviation of the current ear canal transfer function from the reference ear canal transfer function, which reflects the degree of difference between the two, may be the sum of absolute values of the differences between the two power values at each frequency, or may be an average of the sum of absolute values. In this way, on the one hand, the storage space for storing the history ear canal transfer parameter table is not too large, and on the other hand, in the step S300, too long active noise reduction process is not caused by too much time for selecting a certain history ear canal transfer function due to too many stored history ear canal transfer parameter tables.
Furthermore, the invention also provides a computer storage medium, in which a computer program is stored, characterized in that the computer program is executed by a processor as any of the methods of adaptive active noise reduction of headphones.
The invention also provides a headset, which is used for executing any adaptive active noise reduction method of the headset or comprises any adaptive active noise reduction device of the headset.
Those skilled in the art will appreciate that the above-described preferred embodiments can be freely combined and stacked without conflict. In which the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures, for example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. The numbering of the steps herein is for convenience of illustration and reference only and is not intended to limit the order in which the steps are performed, the particular order of execution being determined by the technology itself, and the skilled artisan can determine various allowable, reasonable orders based on the technology itself.
It should be noted that step numbers (letter or number numbers) are used in the present invention to refer to certain specific method steps for convenience and brevity only, and are not intended to limit the order of the method steps by letter or number in any way. It will be apparent to those skilled in the art that the sequence of steps of the relevant method should be determined by the technique itself, should not be unduly limited by the presence of step numbers, and that one skilled in the art can determine various allowable, reasonable sequences of steps based on the technique itself.
Those skilled in the art will appreciate that the above-described preferred embodiments can be freely combined and stacked without conflict.
It will be understood that the above-described embodiments are merely illustrative and not restrictive, and that all obvious or equivalent modifications and substitutions to the details given above may be made by those skilled in the art without departing from the underlying principles of the invention, are intended to be included within the scope of the appended claims.

Claims (17)

1. The adaptive active noise reduction method for the earphone is characterized by comprising the following steps of:
S100, under the condition that the earphone is worn on the ear, calculating a current ear canal transfer function of an ear canal system responding to sound and a corresponding current filter coefficient, wherein the ear canal system comprises an environment microphone, an error microphone and a loudspeaker of the earphone;
S200, judging whether the current auditory canal transfer function meets a first preset condition, if not, executing the step S300, and if not, executing the step S400;
s300, selecting a historical filter coefficient corresponding to a certain historical auditory canal transfer function from a historical auditory canal transfer parameter table as the filter coefficient of the loudspeaker, and performing active noise reduction on the earphone;
S400, selecting the current filter coefficient as the filter coefficient of the loudspeaker, actively reducing noise of the earphone, judging whether the current auditory canal transfer function meets a second preset condition, if so, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table, and if not, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table; wherein the second preset condition limits the current ear canal transfer function more severely than the first preset condition limits the current ear canal transfer function.
2. The method of claim 1, wherein the first preset condition comprises:
The absolute value of the difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than a first jitter threshold, and the deviation of the current ear canal transfer function from the reference ear canal transfer function is smaller than a first deviation threshold.
3. The method of claim 2, wherein the second preset condition comprises:
The absolute value of the difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than a second jitter threshold, and the deviation of the current ear canal transfer function and the reference ear canal transfer function is smaller than a second deviation threshold;
Wherein the second jitter threshold is less than the first jitter threshold, and the second deviation threshold is less than the first deviation threshold.
4. The method according to claim 1, characterized in that in step S400, when the historic ear canal transfer function stored in the historic ear canal transfer parameter table reaches a set upper number limit, then:
And respectively calculating the deviation between each historical auditory canal transfer function in the historical auditory canal transfer parameter table and the current auditory canal transfer function, and replacing the historical auditory canal transfer function corresponding to the maximum deviation in the historical auditory canal transfer parameter table by the current auditory canal transfer function.
5. The method according to any one of claims 2 to 4, wherein,
The deviation of the two ear canal transfer functions is the sum of the absolute values of the differences in the power values of the two ear canal transfer functions at any frequency.
6. The method of claim 2, wherein the step of determining the position of the substrate comprises,
In step S300, a deviation between each historical ear canal transfer function in the historical ear canal transfer parameter table and the current ear canal transfer function is calculated, and the historical ear canal transfer function corresponding to the smallest deviation is used as the certain historical ear canal transfer function.
7. The method of claim 2, wherein the step of determining the position of the substrate comprises,
The difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than a first jitter threshold value specifically comprises:
The absolute value of the difference between the power value at any frequency of the current ear canal transfer function and the power value of the first adjacent frequency within the set frequency distance is smaller than the first adjacent jitter threshold, and the absolute value of the difference between the power value of the current ear canal transfer function and the power value of the first adjacent frequency within the set frequency distance is smaller than the first adjacent jitter threshold.
8. The method of claim 3, wherein the step of,
The difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than a second jitter threshold value specifically comprises:
The absolute value of the difference between the power value of any frequency of the current auditory canal transfer function and the power value of the second adjacent frequency in the set frequency distance is smaller than the second adjacent jitter threshold value, and the absolute value of the difference between the power value of the current auditory canal transfer function and the power value of the second adjacent frequency in the set frequency distance is smaller than the second adjacent jitter threshold value.
9. An apparatus for adaptive active noise reduction for headphones, comprising:
A computing unit for computing a current ear canal transfer function and a corresponding current filter coefficient of an ear canal system for a sound response in case the ear speaker is worn at an ear, wherein the ear canal system comprises an ambient microphone, an error microphone and a speaker of the ear speaker;
the judging unit is used for judging whether the current auditory canal transfer function meets a first preset condition or not, if not, triggering the first processing unit to work, and if not, triggering the second processing unit to work;
the first processing unit is used for selecting a historical filter coefficient corresponding to a certain historical auditory canal transfer function from the historical auditory canal transfer parameter table as the filter coefficient of the loudspeaker, and performing active noise reduction on the earphone;
The second processing unit is used for selecting the current filter coefficient as the filter coefficient of the loudspeaker, actively reducing noise of the earphone, judging whether the current auditory canal transfer function meets a second preset condition, storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table if the current auditory canal transfer function and the current filter coefficient meet the second preset condition, and otherwise, not storing the current auditory canal transfer function and the current filter coefficient into the historical auditory canal transfer parameter table; wherein the second preset condition limits the current ear canal transfer function more severely than the first preset condition limits the current ear canal transfer function.
10. The apparatus of claim 9, wherein the first preset condition comprises:
The absolute value of the difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than a first jitter threshold, and the deviation of the current ear canal transfer function from the reference ear canal transfer function is smaller than a first deviation threshold.
11. The apparatus of claim 10, wherein the second preset condition comprises:
The absolute value of the difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than a second jitter threshold, and the deviation of the current ear canal transfer function and the reference ear canal transfer function is smaller than a second deviation threshold;
Wherein the second jitter threshold is less than the first jitter threshold, and the second deviation threshold is less than the first deviation threshold.
12. The apparatus according to claim 9, wherein in the second processing unit, when the historic ear canal transfer function stored in the historic ear canal transfer parameter table reaches a set upper number limit, then:
And respectively calculating the deviation between each historical auditory canal transfer function in the historical auditory canal transfer parameter table and the current auditory canal transfer function, and replacing the historical auditory canal transfer function corresponding to the maximum deviation in the historical auditory canal transfer parameter table by the current auditory canal transfer function.
13. The apparatus of claim 10, wherein the device comprises a plurality of sensors,
In the first processing unit, the deviation between each historical auditory canal transfer function in the historical auditory canal transfer parameter table and the current auditory canal transfer function is calculated respectively, and the historical auditory canal transfer function corresponding to the smallest deviation is used as the certain historical auditory canal transfer function.
14. The apparatus of claim 10, wherein the device comprises a plurality of sensors,
The difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than a first jitter threshold value specifically comprises:
The absolute value of the difference between the power value at any frequency of the current ear canal transfer function and the power value of the first adjacent frequency within the set frequency distance is smaller than the first adjacent jitter threshold, and the absolute value of the difference between the power value of the current ear canal transfer function and the power value of the first adjacent frequency within the set frequency distance is smaller than the first adjacent jitter threshold.
15. The apparatus of claim 11, wherein the device comprises a plurality of sensors,
The difference between the power value at any frequency of the current ear canal transfer function and the power value within the set frequency distance is smaller than a second jitter threshold value specifically comprises:
The absolute value of the difference between the power value of any frequency of the current auditory canal transfer function and the power value of the second adjacent frequency in the set frequency distance is smaller than the second adjacent jitter threshold value, and the absolute value of the difference between the power value of the current auditory canal transfer function and the power value of the second adjacent frequency in the set frequency distance is smaller than the second adjacent jitter threshold value.
16. A computer storage medium in which a computer program is stored, characterized in that the computer program is executed by a processor as a method of adaptive active noise reduction for headphones according to any of claims 1-8.
17. A headset, characterized by a method for performing an adaptive active noise reduction of a headset according to any of claims 1-8, or by a device comprising an adaptive active noise reduction of a headset according to any of claims 9-15.
CN202410072880.7A 2024-01-17 2024-01-17 Method and device for adaptive active noise reduction of earphone, storage medium and earphone Pending CN118055350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410072880.7A CN118055350A (en) 2024-01-17 2024-01-17 Method and device for adaptive active noise reduction of earphone, storage medium and earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410072880.7A CN118055350A (en) 2024-01-17 2024-01-17 Method and device for adaptive active noise reduction of earphone, storage medium and earphone

Publications (1)

Publication Number Publication Date
CN118055350A true CN118055350A (en) 2024-05-17

Family

ID=91045921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410072880.7A Pending CN118055350A (en) 2024-01-17 2024-01-17 Method and device for adaptive active noise reduction of earphone, storage medium and earphone

Country Status (1)

Country Link
CN (1) CN118055350A (en)

Similar Documents

Publication Publication Date Title
CN113676803B (en) Active noise reduction method and device
JP6745801B2 (en) Circuits and methods for performance and stability control of feedback adaptive noise cancellation
US9479860B2 (en) Systems and methods for enhancing performance of audio transducer based on detection of transducer status
US20150228292A1 (en) Close-talk detector for personal listening device with adaptive active noise control
US11887576B2 (en) Ambient detector for dual mode ANC
KR20200070290A (en) Headset on ear condition detection
EP3127348B1 (en) Headphone on-head detection using differential signal measurement
US11862140B2 (en) Audio system and signal processing method for an ear mountable playback device
CN113409754B (en) Active noise reduction method, active noise reduction device and semi-in-ear active noise reduction earphone
CN113421540B (en) Active noise reduction method, active noise reduction device and semi-in-ear active noise reduction earphone
US11875771B2 (en) Audio system and signal processing method for an ear mountable playback device
US11785382B2 (en) Gain-adaptive active noise reduction (ANR) device
US11386881B2 (en) Active noise cancelling based on leakage profile
KR102477724B1 (en) Systems and methods for distributed adaptive noise cancellation
CN118055350A (en) Method and device for adaptive active noise reduction of earphone, storage medium and earphone
CN115396774A (en) Active noise reduction method and active noise reduction earphone
CN115225998A (en) Earphone noise reduction method and device, earphone equipment and computer readable storage medium
CN113994423A (en) Audio system and signal processing method for voice activity detection of ear-worn playing device
US11825281B1 (en) Adaptive equalization compensation for earbuds
US20240078994A1 (en) Active damping of resonant canal modes
US20230087943A1 (en) Active noise control method and system for headphone
CN115175046A (en) Earphone noise reduction method and device, electronic equipment and computer readable storage medium
CN113347527A (en) Acoustic path determination method and apparatus, readable storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination