CN113938786A - Method and device for compensating earphone leakage and earphone - Google Patents

Method and device for compensating earphone leakage and earphone Download PDF

Info

Publication number
CN113938786A
CN113938786A CN202111427431.2A CN202111427431A CN113938786A CN 113938786 A CN113938786 A CN 113938786A CN 202111427431 A CN202111427431 A CN 202111427431A CN 113938786 A CN113938786 A CN 113938786A
Authority
CN
China
Prior art keywords
filter
music
reference path
signal
processed
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.)
Granted
Application number
CN202111427431.2A
Other languages
Chinese (zh)
Other versions
CN113938786B (en
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.)
Bestechnic Shanghai Co Ltd
Original Assignee
Bestechnic Shanghai 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 Bestechnic Shanghai Co Ltd filed Critical Bestechnic Shanghai Co Ltd
Priority to CN202111427431.2A priority Critical patent/CN113938786B/en
Publication of CN113938786A publication Critical patent/CN113938786A/en
Priority to US17/874,363 priority patent/US20230114392A1/en
Application granted granted Critical
Publication of CN113938786B publication Critical patent/CN113938786B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1083Reduction of ambient noise

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)

Abstract

The disclosure relates to a method and a device for compensating leakage of an earphone and the earphone. The method comprises the following steps: playing, by the speaker, a music reference signal; determining a first current filtering parameter of a compensation filter based on the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone; configuring the compensation filter with the first current filtering parameter; and after N times of down sampling is carried out on the second music signal to be played, the second music signal is processed by the compensation filter, and then the second music signal to be played is aligned and added with the second music signal to be played after N times of up sampling is carried out, so that the enhanced music signal to be played is obtained. The method and the device can not only accurately improve the problem of poor listening low-frequency experience caused by wearing difference and/or ear canal difference, effectively improve the listening experience of a user, but also reduce the calculation complexity and save memory resources.

Description

Method and device for compensating earphone leakage and earphone
Technical Field
The present disclosure relates to an earphone and a leakage compensation method of the earphone, and more particularly, to a method and apparatus for compensating leakage of an earphone, and an earphone.
Background
With the social progress and the improvement of the living standard of people, the earphone becomes an indispensable living article for people. The same earphone, because the difference of everyone's ear and duct leads to the cavity to have the leakage of different degrees, and the leakage can lead to the low frequency signal of the music of earphone broadcast to weaken, influences customer's listening experience.
Most of the existing earphones attempt to solve the leakage problem caused by ear difference by being equipped with earplugs of different models, but some users wear slightly loose earplugs based on comfort consideration, so that the low-frequency listening experience is poor.
Disclosure of Invention
The present disclosure is provided to solve the above-mentioned problems occurring in the prior art.
The utility model aims at providing a method, device and earphone that compensate earphone leakage, through the music reference signal that reference path filter handled and the first music signal that microphone in the ear received, the first current filtering parameter of adaptive adjustment compensation filter comes from to pass through after N times down-sampling the signal of waiting to broadcast the processing of compensation filter, carry out N times and go up the sampling and add with original broadcast signal alignment again, obtain the music signal of waiting to broadcast after the reinforcing, can improve the poor problem of listening low frequency experience that wearing difference and/or duct difference arouse accurately, effectively improve user listening experience.
According to a first aspect of the present disclosure, there is provided a method of compensating for leakage of an earphone, the earphone including a speaker and an in-ear microphone, the method including: playing, by the speaker, a music reference signal; determining a first current filtering parameter of a compensation filter based on the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone; configuring the compensation filter with the first current filtering parameter; and the second music signal to be played is aligned and added with the second music signal to be played after being processed by the compensation filter, so that the enhanced music signal to be played is obtained.
According to a second aspect of the present disclosure, there is provided an apparatus for compensating for leakage in an earphone, the earphone including a speaker, an in-ear microphone, a reference path filter, and a compensation filter, the apparatus comprising a processor configured to: controlling the loudspeaker to play a music reference signal; determining a first current filtering parameter of a compensation filter based on the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone; configuring the compensation filter with the first current filtering parameter; and the second music signal to be played is aligned and added with the second music signal to be played after being processed by the compensation filter, so that the enhanced music signal to be played is obtained.
According to a third aspect of the present disclosure, a headset is provided. The headset includes at least a speaker, an in-ear microphone, a reference path filter, a compensation filter, a memory having stored thereon computer-executable instructions that, when executed by the processor, perform the steps of the method according to any of the embodiments of the present disclosure.
According to the method and the device for compensating the leakage of the earphone and the earphone, the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone are used for adaptively adjusting the first current filtering parameter of the compensation filter, the signal to be played is processed by the compensation filter and then aligned and added with the original playing signal, and the music signal to be played after being enhanced is obtained.
Drawings
In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views. Like reference numerals having letter suffixes or different letter suffixes may represent different instances of similar components. The drawings illustrate various embodiments generally by way of example and not by way of limitation, and together with the description and claims serve to explain the disclosed embodiments. The same reference numbers will be used throughout the drawings to refer to the same or like parts, where appropriate. Such embodiments are illustrative, and are not intended to be exhaustive or exclusive embodiments of the present apparatus or method.
Fig. 1 shows a flow chart of a method of compensating for headphone leakage according to an embodiment of the present disclosure;
FIG. 2 shows a flow chart of a method of compensating for headphone leakage according to an embodiment of the present disclosure;
FIG. 3 shows a flow chart of a method of compensating for headphone leakage according to an embodiment of the present disclosure;
FIG. 4 illustrates a graph of the effect of compensation for varying degrees of leakage in accordance with an embodiment of the disclosure;
fig. 5 illustrates a hardware block diagram of an apparatus for compensating for headphone leakage according to an embodiment of the present disclosure.
Detailed Description
For a better understanding of the technical aspects of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings. Embodiments of the present disclosure are described in further detail below with reference to the figures and the detailed description, but the present disclosure is not limited thereto. The order in which the various steps described herein are described as examples should not be construed as a limitation if there is no requirement for a context relationship between each other, and one skilled in the art would know that sequential adjustments may be made without destroying the logical relationship between each other, rendering the overall process impractical.
Fig. 1 shows a flow chart of a method of compensating for headphone leakage according to an embodiment of the present disclosure. The headset comprises a speaker and an in-ear microphone, as shown in fig. 1, the method starts with step S101, the music reference signal being played by the speaker. The music reference signal is a preset sound signal and is played by a loudspeaker.
In step S102, a first current filtering parameter of the compensation filter is determined based on the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone. Note that, the "first current filtering parameter" described herein may be a filtering coefficient, a filter type, or the like, and this is not specifically limited by the embodiment of the present disclosure. For example, when it is a filter type, the first current filtering parameter may be a filtering parameter of a frequency domain filter and/or a filtering parameter of a time domain filter. The filter parameters of the time domain filter at least comprise filter parameters of an FIR filter and/or filter parameters of an IIR filter.
The inventors have found that the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone reflect a deteriorated listening performance due to wearing differences and/or ear canal differences, on the basis of which the first current filter parameter of the compensation filter is determined to be more accurate. Specifically, the music reference signal processed by the reference path filter is a sound signal that is only subjected to filtering processing and is not transmitted, and the first music signal received by the in-ear microphone is a sound signal that is transmitted to the in-ear microphone after the music reference signal processed by the reference path filter is reflected by the ear canal. The wearing difference and/or the ear canal difference does not substantially affect the music reference signal processed by the reference path filter, which may affect the first music signal received by the in-ear microphone, for example, different wearing manners may cause leakage of the cavity, which may cause the music reference signal processed by the reference path filter to partially leak after being reflected by the ear canal, and only partially collected by the in-ear microphone. Also for example, different ear canal differences (ear canal length, ear canal width, and reflex action) may also cause the first music signal received by the in-ear microphone to be different. Therefore, the music reference signal processed by the reference path filter is basically not influenced by wearing difference and/or ear canal difference, the first music signal received by the in-ear microphone can be reflected with different sound wave characteristics due to the wearing difference and/or the ear canal difference, and the first current filtering parameter of the compensation filter can be calculated more accurately according to the first music signal and the music reference signal processed by the reference path filter, so that the audio leakage problem caused by the wearing difference and/or the ear canal difference can be effectively compensated, and the listening experience of a user can be improved.
In addition, the first current filtering parameter of the compensating filter can be adjusted in a real-time self-adaptive manner, so that the listening experience is not changed even if the wearing mode of a user is adjusted in the using process, and perfect tone quality experience can be obtained in time.
In some embodiments, the reference path filter is configured with preset filtering parameters.
In some embodiments, the preset filtering parameter of the reference path filter is calculated by: and in the earphone testing stage, acquiring a music reference signal to be played by the loudspeaker and a third music signal received by the in-ear microphone at an ideal position, carrying out echo path estimation, and calculating preset filtering parameters of a reference path filter.
In step S103, the compensation filter is configured using the first current filtering parameter.
Finally, in step S104, in consideration that the low-frequency signals are mainly affected by the ear canal difference and/or the ear wearing difference, in order to reduce the computational complexity and save memory resources, the second music signal to be played is down-sampled by N times, processed by the compensation filter, up-sampled by N times, and aligned and added with the second music signal to be played, so as to obtain the enhanced music signal to be played. Note that the second music signal to be played may be N-fold down-sampled to an appropriate sampling frequency. Illustratively, the second music signal to be played is downsampled by a factor of N to within a frequency of 2 KHz. The embodiment of the present disclosure does not specifically limit the value of the down-sampling frequency. And after enhancement, the music signal to be played is played through a loudspeaker.
In some embodiments, a proper earplug is worn on the earphone and placed at a desired position according to the ear canal condition of the artificial ear, and the preset filtering parameters of the reference path filter are determined based on the music reference signal and the third music signal received by the in-ear microphone; determining a first current filtering parameter of the compensation filter based on the processed music reference signal of the reference path filter and a first music signal received by the in-ear microphone in case the reference path filter is configured with the preset filtering parameter.
In some embodiments, the first current filtering parameter of the compensation filter is determined according to equation (1) and equation (2) below based on the processed music reference signal passing through the reference path filter and the first music signal received by the in-ear microphone:
Figure BDA0003376925310000041
f (n +1) ═ h (n +1) -1 equation (2)
Wherein f (n +1) is the filter coefficient of the compensation filter at the time instant n +1,
Figure BDA0003376925310000051
(n) h (n) -1, which is the filter coefficient of the compensation filter at time n, M is the length of the compensation filter, μ is the step size of the compensation filter,
Figure BDA0003376925310000052
is the first music signal received by the in-ear microphone at time n, x (n) is the music reference signal processed by the reference path filter at time n, e (n) x (n) -hT(n) y (n) is the residual signal at time n.
The following embodiment of the present disclosure will specifically describe how to perform leakage compensation for the earphone with reference to fig. 2.
Fig. 2 shows a flow chart of a method of compensating for headphone leakage according to an embodiment of the present disclosure. As shown in fig. 2, at time n, the music reference signal 209 to be played is filtered by the reference path filter 201 to obtain the music reference signal x (n) at time n, which is processed by the reference path filter. The compensation calculation unit 206 acquires the music reference signal x (n) at time n, which has undergone the processing by the reference path filter. The music reference signal x (n) processed by the reference path filter at time n is fed to the digital-to-analog converter 202, the digital signal is converted into an analog signal, and then fed to the speaker 203, and the music reference signal processed by the reference path filter at time n is played by the speaker 203, and after being reflected by the ear canal and received by the in-ear microphone 204, the music reference signal played by the speaker 203 is fed to the analog-to-digital converter 205, and then the first music signal y (n) at time n is obtained. The first music signal y (n) at time n is fed to the compensation calculation unit 206. The compensation calculating unit 206 calculates, based on the music reference signal x (n) processed by the reference path filter at the time n and the first music signal y (n) at the time n, a filter coefficient of the compensation filter at the time n +1, that is, a first current filter coefficient of the compensation filter, by using the formula (1) and the formula (2) described in the embodiment of the present disclosure. The compensation calculation unit 206 configures the compensation filter 207 based on the calculated first current filter coefficient of the compensation filter. The second music signal 208 to be played is fed to the adder 211 after being processed by the delay aligner 213, and enters the adder 211 after being processed by the compensation filter 207, and is aligned and added with the second music signal 208 to be played, so as to obtain the enhanced music signal 210 to be played. The enhanced music signal 210 to be played is the music signal to be played finally. The enhanced music signal 210 to be played can effectively compensate for cavity leakage influences caused by wearing differences and/or ear canal differences, and improve listening experience of a user.
In some embodiments, in case the reference path filter is configured with the preset filtering parameters, the first current filtering parameters of the compensation filter are determined by an online adaptive calculation method or an offline adaptive calculation method based on the processed music reference signal of the reference path filter and the first music signal received by the in-ear microphone.
In some embodiments, since the low frequency signals are mainly affected by the difference in wearing of the earphones and/or the difference in the ear canal, in order to reduce the computational complexity and save memory resources, the music reference signal is processed by the reference path filter after being subjected to the N-fold down-sampling process; the music signal received by the in-ear microphone is subjected to N times of downsampling processing to obtain a first music signal; determining a first current filtering parameter of the compensation filter based on the music reference signal processed by the N-fold downsampling and the first music signal processed by the reference path filter. Note that the second music signal to be played may be N-fold down-sampled to an appropriate sampling frequency. Illustratively, the second music signal to be played is downsampled by a factor of N to within a frequency of 2 KHz. The embodiment of the present disclosure does not specifically limit the value of the down-sampling frequency.
Fig. 3 shows a flow chart of a method of compensating for headphone leakage according to an embodiment of the present disclosure. As shown in fig. 3, the music reference signal 301 is fed to a first N-fold down-sampling filter 302 for down-sampling processing, fed to a reference path filter 303 for filtering processing to obtain a music reference signal subjected to the processing of the reference path filter 303, and fed to a compensation calculation unit 304. The first music signal 305 is a processed music reference signal of the reference path filter 303 played through the loudspeaker, which is picked up by the in-ear microphone after reflection from the ear canal. The first music signal 305 is fed to a second N-fold down-sampling filter 306 for down-sampling processing, and then to a compensation calculation unit 304. The compensation calculating unit 304 determines a first current filtering parameter of the compensation filter 309 according to formula (1) and formula (2) based on the received music reference signal that is N times down-sampled and then processed by the reference path filter 303 and the first music signal 305 that is N times down-sampled, and configures the compensation filter 309 using the first current filtering parameter. Part of the music signal 307 to be played enters the adder 312 after being subjected to delay alignment by the delay aligner 313. Another part of the music signal 307 to be played is subjected to N times down sampling by a third N times down sampling filter 308, then is subjected to filtering processing by a compensation filter 309 configured by a first current filtering parameter, and then is fed to an N times up sampling filter 310 to be subjected to N times up sampling processing, and then enters an adder 312, and is added with the part of the music signal to be played after delay alignment, so as to obtain an enhanced music signal 314 to be played. Playing the enhanced music signal 314 to be played through the speaker can enable the user to obtain a better listening effect under the condition that the earplugs are not properly selected or the user wears the earphones loosely.
Fig. 4 shows a graph of the effect of compensation for varying degrees of leakage according to an embodiment of the present disclosure. As shown in fig. 4, the abscissa indicates the frequency of the sound wave signal in Hz, the ordinate indicates the sound pressure level in dBV, the same curve indicates the same wearing condition, the dotted line indicates the uncompensated effect, and the solid line indicates the compensated effect. Obviously, the compensated effect is significantly better than the uncompensated effect. Experiments show that the compensation method disclosed in the embodiment of the present disclosure can enable a user to obtain a better listening effect under the condition that the selection of the earplugs is not suitable or the wearing of the earphones of the user is loose. The embodiment of the disclosure can be normally used in most daily scenes, such as playing music, noise environment, different volume and the like, and can achieve good effects.
Fig. 5 illustrates a hardware block diagram of an apparatus for compensating for headphone leakage according to an embodiment of the present disclosure. The headset comprises a speaker, an in-ear microphone, a reference path filter and a compensation filter, as shown in fig. 5, the apparatus 500 comprises a processor 501 configured to: controlling the loudspeaker to play a music reference signal; determining a first current filtering parameter of a compensation filter based on the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone; configuring the compensation filter with the first current filtering parameter; and the second music signal to be played is processed by the compensation filter and is aligned and added with the second music signal to be played to obtain the enhanced music signal to be played.
The processor 501 may be a processing device including more than one general purpose processing device, such as a microprocessor, Central Processing Unit (CPU), Graphics Processing Unit (GPU), etc. More specifically, the processor 501 may be a Complex Instruction Set Computing (CISC) microprocessor, Reduced Instruction Set Computing (RISC) microprocessor, Very Long Instruction Word (VLIW) microprocessor, processor running other instruction sets, or processors running a combination of instruction sets. The processor 501 may also be one or more special-purpose processing devices such as an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), a system on a chip (SoC), or the like.
The processor 501 may be communicatively coupled to a memory and configured to execute computer-executable instructions stored thereon to perform a method of active noise reduction for a headset according to various embodiments of the present disclosure. The equalization control unit according to various embodiments of the present disclosure may be implemented as software, may be implemented as hardware, or may be implemented as a combination of software and hardware.
In some embodiments, the processor is further configured to: configuring the reference path filter with preset filtering parameters.
In some embodiments, the filter parameters of the reference path filter are calculated by: and in the earphone testing stage, acquiring a music reference signal to be played by the loudspeaker and a third music signal received by the in-ear microphone at an ideal position, carrying out echo path estimation, and calculating preset filtering parameters of a reference path filter.
In some embodiments, the processor is further configured to: according to the situation of the ear canal of the artificial ear, a proper earplug is worn on the earphone and placed at an ideal position, and the preset filtering parameters of the reference path filter are determined based on a music reference signal and a third music signal received by the in-ear microphone; determining a first current filtering parameter of the compensation filter based on the processed music reference signal of the reference path filter and a first music signal received by the in-ear microphone in case the reference path filter is configured with the preset filtering parameter.
In some embodiments, the processor is further configured to: determining a first current filtering parameter of the compensation filter according to the following equations (1) and (2):
Figure BDA0003376925310000081
f (n +1) ═ h (n +1) -1 equation (2)
Where f (n +1) is a filter coefficient of the compensation filter at the time n +1, and h (n) ═ h0(n),h1(n),h2(n),...,hM-1(n)]TAnd f (n) ═ h (n) -1, which is the filter coefficient of the compensation filter at time n, M is the length of the compensation filter, μ is the step size of the compensation filter, and y (n) ═ y (n), y (n-1)..,y(n-M+1)]TIs the first music signal received by the in-ear microphone at time n, x (n) is the music reference signal processed by the reference path filter at time n, e (n) x (n) -hT(n) y (n) is the residual signal at time n.
In some embodiments, the processor is further configured to: in a case where the reference path filter is configured using the preset filtering parameters, a first current filtering parameter of the compensation filter is determined through an online adaptive calculation method or an offline adaptive calculation method based on the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone.
In some embodiments, the first current filtering parameter is a filtering parameter of a frequency domain filter and/or a filtering parameter of a time domain filter.
In some embodiments, the filter parameters of the time domain filter comprise filter parameters of an FIR filter and/or filter parameters of an IIR filter.
In some embodiments, the processor is further configured to: the music reference signal is processed by the reference path filter after being processed by N times of downsampling; the music signal received by the in-ear microphone is subjected to N times of downsampling processing to obtain a first music signal; determining a first current filtering parameter of the compensation filter based on the music reference signal processed by the N-fold downsampling and the first music signal processed by the reference path filter.
The advantageous effects of the various method steps that processor 501 is configured to perform have been detailed in the context of incorporating an active noise reduction method, and are not described in detail herein.
The embodiment of the disclosure also provides an earphone. The headset comprises at least a speaker, an in-ear microphone, a reference path filter, a compensation filter, a memory and a processor, the memory having stored thereon computer-executable instructions that, when executed by the processor, perform the steps of the method according to any one of the embodiments of the present disclosure.
Moreover, although exemplary embodiments have been described herein, the scope thereof includes any and all embodiments based on the disclosure with equivalent elements, modifications, omissions, combinations (e.g., of various embodiments across), adaptations or alterations. The elements of the claims are to be interpreted broadly based on the language employed in the claims and not limited to examples described in the present specification or during the prosecution of the application, which examples are to be construed as non-exclusive. It is intended, therefore, that the specification and examples be considered as exemplary only, with a true scope and spirit being indicated by the following claims and their full scope of equivalents.

Claims (19)

1. A method of compensating for leakage in an earphone, the earphone including a speaker and an in-ear microphone, the method comprising:
playing, by the speaker, a music reference signal;
determining a first current filtering parameter of a compensation filter based on the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone;
configuring the compensation filter with the first current filtering parameter;
and the second music signal to be played is aligned and added with the second music signal to be played after being processed by the compensation filter, so that the enhanced music signal to be played is obtained.
2. The method of claim 1, wherein the reference path filter is configured with preset filtering parameters.
3. The method of claim 2, wherein the filter parameters of the reference path filter are calculated by:
and in the earphone testing stage, acquiring a music reference signal to be played by the loudspeaker and a third music signal received by the in-ear microphone at an ideal position, carrying out echo path estimation, and calculating preset filtering parameters of a reference path filter.
4. The method of claim 1, wherein determining the first current filtering parameter of the compensation filter based on the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone comprises:
according to the situation of the ear canal of the artificial ear, a proper earplug is worn on the earphone and placed at a desired position, and the preset filtering parameters of the reference path filter are determined based on the music reference signal and the third music signal received by the in-ear microphone;
determining a first current filtering parameter of the compensation filter based on the processed music reference signal of the reference path filter and a first music signal received by the in-ear microphone in case the reference path filter is configured with the preset filtering parameter.
5. The method according to claim 4, characterized in that the first current filtering parameters of the compensation filter are determined according to the following equations (1) and (2) based on the processed music reference signal passed through the reference path filter and the first music signal received by the in-ear microphone:
Figure FDA0003376925300000011
f (n +1) ═ h (n +1) -1 equation (2)
Where f (n +1) is a filter coefficient of the compensation filter at the time n +1, and h (n) ═ h0(n),h1(n),h2(n),...,hM-1(n)]TF (n) ═ h (n) -1, which is the filter coefficient of the compensation filter at time n, M is the length of the compensation filter, μ is the step size of the compensation filter, y (n) ═ y (n), y (n-1),.., y (n-M +1)]TIs the first music signal received by the in-ear microphone at time n, and x (n) is the position of time n passing through the reference path filterPhysical music reference signal, e (n) ═ x (n) -hT(n) y (n) is the residual signal at time n.
6. The method according to claim 4, wherein in case the reference path filter is configured with the preset filtering parameters, the first current filtering parameters of the compensation filter are determined by an online adaptive calculation method or an offline adaptive calculation method based on the processed music reference signal of the reference path filter and the first music signal received by the in-ear microphone.
7. The method according to claim 1, characterized in that the first current filtering parameters are filtering parameters of a frequency domain filter and/or filtering parameters of a time domain filter.
8. The method according to claim 7, wherein the filter parameters of the time domain filter comprise filter parameters of an FIR filter and/or filter parameters of an IIR filter.
9. The method according to claim 1, wherein determining the first current filtering parameter of the compensation filter based on the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone comprises:
the music reference signal is processed by the reference path filter after being processed by N times of downsampling;
the music signal received by the in-ear microphone is subjected to N times of downsampling processing to obtain a first music signal;
determining a first current filtering parameter of the compensation filter based on the music reference signal processed by the N-fold downsampling and the first music signal processed by the reference path filter.
10. An apparatus for compensating for leakage in an earphone, the earphone comprising a speaker, an in-ear microphone, a reference path filter, and a compensation filter, the apparatus comprising a processor configured to:
controlling the loudspeaker to play a music reference signal;
determining a first current filtering parameter of a compensation filter based on the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone;
configuring the compensation filter with the first current filtering parameter;
and the second music signal to be played is aligned and added with the second music signal to be played after being processed by the compensation filter, so that the enhanced music signal to be played is obtained.
11. The apparatus of claim 10, wherein the processor is further configured to:
configuring the reference path filter with preset filtering parameters.
12. The apparatus of claim 11, wherein the filter parameters of the reference path filter are calculated by:
and in the earphone testing stage, acquiring a music reference signal to be played by the loudspeaker and a third music signal received by the in-ear microphone at an ideal position, carrying out echo path estimation, and calculating preset filtering parameters of a reference path filter.
13. The apparatus of claim 10, wherein the processor is further configured to:
according to the situation of the ear canal of the artificial ear, a proper earplug is worn on the earphone and placed at a desired position, and the preset filtering parameters of the reference path filter are determined based on the music reference signal and the third music signal received by the in-ear microphone;
determining a first current filtering parameter of the compensation filter based on the processed music reference signal of the reference path filter and a first music signal received by the in-ear microphone in case the reference path filter is configured with the preset filtering parameter.
14. The apparatus of claim 13, wherein the processor is further configured to:
determining a first current filtering parameter of the compensation filter according to the following equations (1) and (2):
Figure FDA0003376925300000031
f (n +1) ═ h (n +1) -1 equation (2)
Where f (n +1) is a filter coefficient of the compensation filter at the time n +1, and h (n) ═ h0(n),h1(n),h2(n),...,hM-1(n)]TF (n) ═ h (n) -1, which is the filter coefficient of the compensation filter at time n, M is the length of the compensation filter, μ is the step size of the compensation filter, y (n) ═ y (n), y (n-1),.., y (n-M +1)]TIs the first music signal received by the in-ear microphone at time n, x (n) is the music reference signal processed by the reference path filter at time n, e (n) x (n) -hT(n) y (n) is the residual signal at time n.
15. The apparatus of claim 14, wherein the processor is further configured to:
in a case where the reference path filter is configured using the preset filtering parameters, a first current filtering parameter of the compensation filter is determined through an online adaptive calculation method or an offline adaptive calculation method based on the music reference signal processed by the reference path filter and the first music signal received by the in-ear microphone.
16. The apparatus of claim 10, wherein the first current filtering parameter is a filtering parameter of a frequency domain filter and/or a filtering parameter of a time domain filter.
17. The apparatus of claim 7, wherein the filter parameters of the time domain filter comprise filter parameters of an FIR filter and/or filter parameters of an IIR filter.
18. The apparatus of claim 10, wherein the processor is further configured to:
the music reference signal is processed by the reference path filter after being processed by N times of downsampling;
the music signal received by the in-ear microphone is subjected to N times of downsampling processing to obtain a first music signal;
determining a first current filtering parameter of the compensation filter based on the music reference signal processed by the N-fold downsampling and the first music signal processed by the reference path filter.
19. An earphone comprising at least a speaker, an in-ear microphone, a reference path filter, a compensation filter, a memory, and a processor, the memory having stored thereon computer-executable instructions that, when executed by the processor, perform the steps of the method of any of claims 1-9.
CN202111427431.2A 2021-10-12 2021-11-26 Method and device for compensating earphone leakage and earphone Active CN113938786B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111427431.2A CN113938786B (en) 2021-11-26 2021-11-26 Method and device for compensating earphone leakage and earphone
US17/874,363 US20230114392A1 (en) 2021-10-12 2022-07-27 Leakage compensation method and system for headphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111427431.2A CN113938786B (en) 2021-11-26 2021-11-26 Method and device for compensating earphone leakage and earphone

Publications (2)

Publication Number Publication Date
CN113938786A true CN113938786A (en) 2022-01-14
CN113938786B CN113938786B (en) 2023-12-08

Family

ID=79288477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111427431.2A Active CN113938786B (en) 2021-10-12 2021-11-26 Method and device for compensating earphone leakage and earphone

Country Status (1)

Country Link
CN (1) CN113938786B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043560A (en) * 2006-03-22 2007-09-26 北京大学深圳研究生院 Echo eliminator and echo cancellation method
CN104661153A (en) * 2014-12-31 2015-05-27 歌尔声学股份有限公司 Earphone sound effect compensation method and device as well as earphone
US20150243271A1 (en) * 2014-02-22 2015-08-27 Apple Inc. Active noise control with compensation for acoustic leak in personal listening devices
US20160330546A1 (en) * 2015-05-06 2016-11-10 Aliphcom Headset with leakage detection
CN110996210A (en) * 2019-12-13 2020-04-10 恒玄科技(上海)股份有限公司 Method for sound field equalization and earphone
CN111010646A (en) * 2020-03-11 2020-04-14 恒玄科技(北京)有限公司 Method and system for transparent transmission of earphone and earphone
CN111052226A (en) * 2017-09-01 2020-04-21 ams有限公司 Noise canceling system, noise canceling headphone, and noise canceling method
EP3799031A1 (en) * 2019-09-30 2021-03-31 Ams Ag Audio system and signal processing method for an ear mountable playback device
WO2021089987A1 (en) * 2019-11-04 2021-05-14 Soundchip Sa Active noise cancelling system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043560A (en) * 2006-03-22 2007-09-26 北京大学深圳研究生院 Echo eliminator and echo cancellation method
US20150243271A1 (en) * 2014-02-22 2015-08-27 Apple Inc. Active noise control with compensation for acoustic leak in personal listening devices
CN104661153A (en) * 2014-12-31 2015-05-27 歌尔声学股份有限公司 Earphone sound effect compensation method and device as well as earphone
US20160330546A1 (en) * 2015-05-06 2016-11-10 Aliphcom Headset with leakage detection
CN111052226A (en) * 2017-09-01 2020-04-21 ams有限公司 Noise canceling system, noise canceling headphone, and noise canceling method
EP3799031A1 (en) * 2019-09-30 2021-03-31 Ams Ag Audio system and signal processing method for an ear mountable playback device
WO2021089987A1 (en) * 2019-11-04 2021-05-14 Soundchip Sa Active noise cancelling system
CN110996210A (en) * 2019-12-13 2020-04-10 恒玄科技(上海)股份有限公司 Method for sound field equalization and earphone
CN111010646A (en) * 2020-03-11 2020-04-14 恒玄科技(北京)有限公司 Method and system for transparent transmission of earphone and earphone

Also Published As

Publication number Publication date
CN113938786B (en) 2023-12-08

Similar Documents

Publication Publication Date Title
CN110996215B (en) Method, device and computer readable medium for determining noise reduction parameters of earphone
CN111541971B (en) Method for actively reducing noise of earphone, active noise reduction system and earphone
CN106664333B (en) Frequency dependent sidetone calibration
TW594676B (en) Noise reduction device
US9515629B2 (en) Adaptive audio equalization for personal listening devices
AU771444B2 (en) Noise reduction apparatus and method
JP4359599B2 (en) hearing aid
CN111131947B (en) Earphone signal processing method and system and earphone
JP4282317B2 (en) Voice communication device
US8538052B2 (en) Generation of probe noise in a feedback cancellation system
US20090316922A1 (en) System for measuring maximum stable gain in hearing assistance devices
US20200304936A1 (en) Compensation of own voice occlusion
TW200834541A (en) Ambient noise reduction system
CN110996216B (en) Method, device and system for configuring equalization filter in earphone and earphone
EP2486735B1 (en) Method for control of adaptation of feedback suppression in a hearing aid, and a hearing aid
CN107113484B (en) The method and hearing aid device system of operating hearing aid system
CN113630684B (en) Earphone with active noise reduction function and noise reduction method thereof
JP2024517721A (en) Audio optimization for noisy environments
CN111629313B (en) Hearing device comprising loop gain limiter
US11393486B1 (en) Ambient noise aware dynamic range control and variable latency for hearing personalization
CN113938786B (en) Method and device for compensating earphone leakage and earphone
CN110896512A (en) Noise reduction method and system for semi-in-ear earphone and semi-in-ear earphone
US20230328462A1 (en) Method, device, headphones and computer program for actively suppressing the occlusion effect during the playback of audio signals
US20200186923A1 (en) Methods, systems and apparatus for improved feedback control
CN113938799B (en) Equalization control method, equalization control device and storage medium for earphone

Legal Events

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