CN109104669B - Sound quality correction method and system of earphone and earphone - Google Patents

Sound quality correction method and system of earphone and earphone Download PDF

Info

Publication number
CN109104669B
CN109104669B CN201810921957.8A CN201810921957A CN109104669B CN 109104669 B CN109104669 B CN 109104669B CN 201810921957 A CN201810921957 A CN 201810921957A CN 109104669 B CN109104669 B CN 109104669B
Authority
CN
China
Prior art keywords
earphone
sound signal
sound
audio signal
signal
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.)
Active
Application number
CN201810921957.8A
Other languages
Chinese (zh)
Other versions
CN109104669A (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201810921957.8A priority Critical patent/CN109104669B/en
Publication of CN109104669A publication Critical patent/CN109104669A/en
Application granted granted Critical
Publication of CN109104669B publication Critical patent/CN109104669B/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
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Abstract

The invention discloses a sound quality correction method of an earphone, which considers that a sound signal in a front cavity is a sound signal heard by human ears, and can know the difference between the sound signal and an ideal sound signal corresponding to the sound signal according to the sound signal and an audio signal of a last correction period for generating the sound signal, so that the audio signal of the current correction period can be adjusted on the basis of the difference, and the sound signal generated in the front cavity by the compensated audio signal of the current correction period is corrected, thereby realizing the correction of the sound quality of the earphone, reducing or even avoiding the influence of poor wearing of the earphone on the sound quality, and improving the listening experience of a user. The invention also discloses a sound quality correction system of the earphone and the earphone, and the sound quality correction system has the same beneficial effects as the method. The invention solves the problem that the sound quality heard by a user is damaged when the earphone in the prior art cannot be worn correctly.

Description

Sound quality correction method and system of earphone and earphone
Technical Field
The present invention relates to the field of sound processing technologies, and in particular, to a method and a system for correcting a sound quality of an earphone, and an earphone.
Background
The user usually listens to the audio frequency through wearing the earphone, whether the earphone is worn well is good with relation to whether the tone quality that the user heard is intact, and then influences the effect of listening to the audio frequency. In particular, if there is a gap between the earphone and the user's ear, it may cause part of the bass sound in the sound emitted by the speaker in the front cavity of the earphone to leak out of the gap, resulting in much less bass sound in the audio being heard by the user. If the headset is worn askew, it may cause a change in the mid-high sound of the sound emitted by the speaker in the front cavity, which may affect the mid-high sound listening effect of the audio. Therefore, when the earphone is not worn correctly, the sound quality heard by the user may be damaged, and the listening experience of the user is affected.
Disclosure of Invention
The invention aims to provide a method and a system for correcting the tone quality of an earphone and the earphone, which realize the correction of the tone quality of the earphone, reduce or even avoid the influence of poor wearing of the earphone on the tone quality and improve the listening experience of a user.
In order to solve the above technical problem, the present invention provides a method for correcting a sound quality of an earphone, including:
acquiring a sound signal generated in the front cavity of the earphone based on the audio signal of the last correction period;
and adjusting the audio signal in the current correction period according to the audio signal in the last correction period and the sound signal so as to correct the sound signal in the front cavity.
Preferably, the adjusting the audio signal of the current modification period according to the audio signal of the previous modification period and the sound signal to modify the sound signal in the front cavity includes:
determining a correction amount according to the audio signal of the previous correction period and the sound signal;
wherein the correction amount
Figure BDA0001764450920000011
S is the audio signal, X1For the sound signal, F is a transfer function from a speaker of the earphone to a first sound collection device for obtaining a sound signal generated based on the audio signal of the previous modification period in the front cavity of the earphone when the earphone is in an ideal wearing state;
and adding the correction quantity to the audio signal of the current correction period to correct the sound signal in the front cavity.
Preferably, the method further comprises the following steps:
acquiring an ambient sound signal outside the earphone;
the adjusting the audio signal of the current modification period according to the audio signal of the previous modification period and the sound signal to modify the sound signal in the front cavity includes:
determining a correction amount according to the audio signal of the last correction period of the earphone, the sound signal and the environment sound signal;
wherein the correction amount
Figure BDA0001764450920000021
X2For the ambient sound signal, F21A transfer function of a second sound collection device for obtaining an ambient sound signal outside the earphone to the first sound collection device;
and adding the correction quantity to the audio signal of the current correction period to correct the sound signal in the front cavity.
Preferably, the gain of W is not greater than a gain threshold set with a constraint that the modified sound signal is not distorted.
Preferably, the method further comprises the following steps:
performing an interruption judgment process, wherein the interruption judgment process comprises:
respectively calculating first low-frequency envelope energy of the sound signal in a first calculation period between a first frequency value and a second frequency value when the gain of W is limited and second low-frequency envelope energy of the sound signal in the first calculation period between the first frequency value and the second frequency value when the gain of W is not limited;
judging whether a difference value obtained by subtracting the first low-frequency envelope energy from the second low-frequency envelope energy is larger than a first preset value or not, if so, judging that the earphone is in a non-wearing state, and controlling the loudspeaker to stop working; otherwise, judging that the earphone is in a wearing state; the first preset value is equal to the difference between the attenuation when the earphone is removed and the gain threshold.
Preferably, after controlling the horn to stop working, the method further comprises:
entering a communication judgment process, wherein the communication judgment process comprises the following steps:
calculating a first high-frequency envelope energy of the sound signal in a second calculation period between a third frequency value and a fourth frequency value;
calculating a second high frequency envelope energy of the ambient sound signal between the third frequency value and the fourth frequency value within the second calculation period;
judging whether the difference value obtained by subtracting the first high-frequency envelope energy from the second high-frequency envelope energy is larger than a second preset value or not, if so, judging that the earphone is in a wearing state, controlling the loudspeaker to start working, and entering the interruption judgment process; otherwise, the earphone is judged to be in a non-wearing state.
In order to solve the above technical problem, the present invention further provides a sound quality correction system for an earphone, including:
the acquisition module is used for acquiring a sound signal generated in the front cavity of the earphone based on the audio signal of the last correction period;
and the compensation module is used for adjusting the audio signal in the current correction period according to the audio signal in the last correction period and the sound signal so as to correct the sound signal in the front cavity.
In order to solve the above technical problem, the present invention further provides an earphone, including:
the first sound acquisition device is used for acquiring a sound signal generated based on the audio signal of the last correction period in the front cavity of the earphone;
a memory for storing a computer program;
and a processor for implementing the steps of the sound quality correction method of the earphone when executing the computer program.
Preferably, the method further comprises the following steps:
and the second sound acquisition device is used for acquiring an environment sound signal outside the earphone.
Preferably, the first sound collection device is a first microphone, and the second sound collection device is a second microphone.
The invention provides a tone quality correction method of an earphone, which comprises the steps of obtaining a sound signal generated by an audio signal in a front cavity of the earphone based on a previous correction period; and adjusting the audio signal of the current correction period according to the audio signal and the sound signal so as to correct the sound signal in the front cavity. Specifically, the audio signal can generate a sound signal in the front cavity through a loudspeaker in the earphone, but a low-frequency part or a medium-high frequency part in the sound signal can be changed due to reasons such as poor wearing of the earphone, and the like.
The invention also provides a sound quality correction system of the earphone and the earphone, and the sound quality correction system has the same beneficial effects as the method.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart illustrating a process of a sound quality correction method for an earphone according to the present invention;
fig. 2 is a schematic structural diagram of a sound quality correction system of an earphone according to the present invention;
fig. 3 is a schematic structural diagram of an earphone provided by the present invention;
fig. 4 is a schematic diagram of the arrangement of two microphones of an earphone according to the present invention.
Detailed Description
The core of the invention is to provide a method and a system for correcting the tone quality of an earphone and the earphone, so that the correction of the tone quality of the earphone is realized, the influence of poor wearing of the earphone on the tone quality is reduced and even avoided, and the listening experience of a user is improved.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a process of a sound quality correction method for an earphone according to the present invention, the method includes:
s11: acquiring a sound signal generated in the front cavity of the earphone based on the audio signal of the last correction period;
s12: and adjusting the audio signal in the current correction period according to the audio signal in the last correction period and the sound signal so as to correct the sound signal in the front cavity.
Specifically, after receiving an audio signal sent by a sound source device (e.g., a mobile phone, a computer, etc.), a processor in the earphone sends the audio signal to a speaker, and the speaker generates a sound signal in a front cavity of the earphone. The front cavity of the earphone is a pressure field, the sound pressure of each position in the front cavity is the same, and the sound signal in the front cavity is also the sound signal heard by human ears. When the earphone is not worn well (for example, a gap exists between the earphone and the ear or the earphone belt is distorted), the low, medium and high frequency signals of the sound signals generated by the audio signals in the front cavity may be affected, so that the sound quality heard by the user is damaged.
It should be further noted that the modification period mentioned in the present application includes a time for acquiring the sound signal and a time for adjusting the audio signal to be modified according to the audio signal corresponding to the sound signal and the sound signal. The correction period may be set to be relatively small, for example, the correction period may be 50ms, so that the delay of the sound correction is not felt by human ears, and may be considered to be almost real-time.
In order to solve the above problem, the present application considers that after the earphone is determined, the correspondence between the audio signal and the ideal sound signal in the front cavity (the sound signal when the earphone is worn normally) is also determined. Based on this, although the sound signal in the front cavity may change when the earphone is not worn well, the difference between the sound signal and the ideal sound signal corresponding to the sound signal can be known based on the corresponding relationship between the sound signal in the previous correction period and the ideal sound signal corresponding to the sound signal, and the adjustment of the sound signal in the current correction period can be implemented according to the difference, so as to correct the sound signal generated in the front cavity based on the sound signal in the current correction period.
It is understood that the adjustment of the audio signal of the current modification period by the present application is essentially a compensation for the low, medium and high frequency signals in the sound signal that changes due to the poor wearing of the earphone, and specifically, when the low frequency signal in the sound signal leaks due to the gap between the earphone and the ear, the adjustment of the audio signal of the current modification period by the present application increases the low frequency signal in the sound signal generated by the speaker in the front cavity compared with the low frequency signal in the original sound signal, so as to cancel the leaked low frequency signal, and reduce or eliminate the difference between the sound signal and the ideal sound signal. When the middle-high frequency signals in the sound signals are increased or decreased due to the fact that the earphones are worn in a biased mode, the middle-high frequency signals in the sound signals generated by the loudspeaker in the front cavity are correspondingly decreased or increased compared with the middle-high frequency signals in the original sound signals through adjustment of the audio signals of the current correction period, and therefore the difference between the sound signals and the ideal sound signals is decreased or is zero. This application reduces or even avoids the earphone to wear not good influence to tone quality through the compensation to the signal of corresponding frequency channel in the sound signal, has improved the user and has listened to experience.
In conclusion, the difference between the sound signal and the ideal sound signal corresponding to the audio signal in the previous correction period can be known according to the sound signal in the previous correction period and the audio signal generating the sound signal, and the audio signal in the current correction period can be adjusted based on the difference, so that the sound signal generated in the front cavity based on the compensated audio signal in the current correction period can be corrected, the correction of the sound quality of the earphone is realized, the influence of poor wearing of the earphone on the sound quality is reduced or even avoided, and the listening experience of a user is improved.
On the basis of the above-described embodiment:
as a preferred embodiment, the adjusting the audio signal of the current modification period according to the audio signal and the sound signal to modify the sound signal in the front cavity includes:
determining a correction amount according to the audio signal and the sound signal of the previous correction period;
wherein the correction amount
Figure BDA0001764450920000061
S is an audio signal, X1The transfer function F is a transfer function from a loudspeaker of the earphone to a first sound acquisition device for acquiring a sound signal generated based on the audio signal of the previous correction period in the front cavity of the earphone when the earphone is in an ideal wearing state;
and adding the correction quantity to the audio signal of the current correction period to correct the sound signal in the front cavity.
Specifically, the present application considers that the correspondence between the audio signal and the sound signal in the front cavity can be expressed by a transfer function, and when the earphone is in ideal wearing (i.e., the earphone is not worn askew, and there is no gap between the earphone and the ear), and the sound signal generated based on the audio signal of the last correction period in the front cavity of the earphone is acquired by using the first sound collection device, the transfer function from the speaker (including the speaker) to the first sound collection device is F.
It can be understood that, after the structure of the earphone is determined, the transfer function F from the speaker to the first sound collecting device is also determined when the earphone is in an ideal wearing state, so it can be easily understood that if the earphone is not adversely affected by wearing, the ideal sound signal corresponding to the audio signal should be: s is F. And the sound signal picked up by the first sound collecting device is X1Then the difference between the ideal sound signal and the sound signal is S X F-X1Since the frequency response (transfer function) of the earphone in this case is
Figure BDA0001764450920000071
The signal to be compensated, i.e. the correction amount
Figure BDA0001764450920000072
After the correction amount is determined, the correction amount can be superposed on the audio signal in the current correction period, so that the sound signal generated according to the superposed audio signal in the current correction period is the corrected sound signal, the correction of the sound quality of the earphone is directly realized, the correction speed is high, the influence of poor wearing of the earphone on the sound quality is reduced or even avoided, and the listening experience of a user is improved.
Of course, after determining the difference between the ideal sound signal and the sound signal, the adjustment may be performed without directly superimposing the correction amount on the audio signal in the current correction period as in the present application, or may be performed in other manners, for example, superimposing a small correction amount on the audio signal in the current correction period each time the adjustment is performed, where the small correction amount is smaller than the correction amount W, so as to gradually adjust the sound signal in the front cavity. The method of sound correction is not particularly limited, and may be determined according to the actual situation.
As a preferred embodiment, further comprising:
acquiring an external environment sound signal of the earphone;
adjusting the audio signal of the current modification period according to the audio signal of the previous modification period and the sound signal to modify the sound signal in the front cavity, comprising:
determining a correction amount according to the audio signal, the sound signal and the environment sound signal of the last correction period of the earphone;
wherein the correction amount
Figure BDA0001764450920000073
X2For ambient sound signals, F21A transfer function from a second sound collection device for obtaining an ambient sound signal outside the earphone to the first sound collection device;
and adding the correction quantity to the audio signal of the current correction period to correct the sound signal in the front cavity.
The application considers that in practical application, when the earphone is not worn well, the earphone is in front of the earphoneThe sound signal in the cavity includes not only the sound signal emitted by the speaker, but also the external environmental sound signal transmitted through the gap between the earphone and the ear. In this case, the sound signal X collected by the first sound collection device alone cannot be used1Calculating the transfer function F of the loudspeaker to the first sound collection device, taking into account the ambient sound signal X2Otherwise, the external environment sound signal may be collected by the first sound collection device, which affects the correction of the sound signal.
Specifically, the sound signal X generated by the audio signal S in the case where the headphone is not worn well and is also affected by the external environment is1-X2*F21Wherein F is21For the transfer function of the second sound pick-up device to the first sound pick-up device, in which case the frequency response (transfer function) of the earphone is
Figure BDA0001764450920000081
In this case, the difference between the ideal sound signal and the sound signal is S X F- (X)1-X2*F21) The signal to be compensated, i.e. the correction amount
Figure BDA0001764450920000082
After the correction amount W is determined, the correction amount W can be directly superposed on the audio signal in the current correction period, so that the sound signal generated according to the superposed audio signal in the current correction period is the corrected sound signal.
As a preferred embodiment, the gain of W is not greater than a gain threshold, which is set with the constraint that the modified sound signal is not distorted.
It should be noted that, after determining the correction amount W according to the above-mentioned manner, the actual situation is also considered, and if in some special cases, for example, an earphone is hardly worn on the ear, the correction amount W may be large, but if the audio signal of the current correction period is directly corrected without setting a limit to the correction amount W, distortion of the audio signal may be caused. Based on this, the present application requests that the gain of the correction amount W is not greater than the gain threshold, in which case, when the gain of the correction amount W is greater than the gain threshold, the audio signal of the current correction period is adjusted in accordance with the case where the gain of the correction amount W is equal to the gain threshold. The mode can realize balance between tone quality correction and tone quality undistortion guarantee, and corrects the sound signal on the basis of guaranteeing tone quality undistortion, thereby further improving the listening effect of the user.
As a preferred embodiment, the gain of W is not more than 15 dB.
It is to be understood that the gain of the correction amount W in the present application is not particularly limited, and may be other values depending on the actual situation.
As a preferred embodiment, further comprising:
and performing an interruption judgment process, wherein the interruption judgment process comprises:
respectively calculating first low-frequency envelope energy of the sound signal in the first calculation period between a first frequency value and a second frequency value when the gain of W is limited and second low-frequency envelope energy of the sound signal in the first calculation period between the first frequency value and the second frequency value when the gain of W is not limited;
judging whether the difference value obtained by subtracting the first low-frequency envelope energy from the second low-frequency envelope energy is larger than a first preset value or not, if so, judging that the earphone is in a non-wearing state, and controlling the loudspeaker to stop working; otherwise, judging that the earphone is in a wearing state; the first preset value is equal to the difference between the attenuation and the gain threshold when the earphone is removed.
In particular, the above embodiments mention that the audio signal generates a sound signal in the front cavity by means of the speaker, but in some cases, for example, when the user is not wearing the headset at all, i.e. the headset is not worn, but the speaker is still working, which increases the power consumption of the headset. In order to reduce the power consumption of the headset, the embodiment further provides a scheme for detecting whether the headset is in a non-wearing state.
Considering that the low frequency signals in the sound signal in the front cavity of the earphone will be attenuated significantly when the earphone is removed from the ear, according to the solution of the present application, the removal of the earphone is already an extreme case of correction, and the generated correction amount W will certainly exceed the gain threshold value greatly. In this case, the system corrects the audio signal for the current correction period with the gain of the correction amount W equal to the gain threshold. In this case, there is still a difference between the sound signal in the front cavity and the ideal sound signal, based on this, the present application calculates a first low-frequency envelope energy between a first frequency value and a second frequency value of the sound signal in a first calculation period when the gain of W is limited, and a second low-frequency envelope energy between the first frequency value and the second frequency value of the sound signal in the first calculation period when the gain of W is not limited, and if the difference between the first low-frequency envelope energy and the second low-frequency envelope energy is greater than a first preset value and the first preset value is equal to the difference between the attenuation amount when the earphone is removed and the gain threshold value, it is indicated that the gain is calculated according to the fact that the gain of the correction amount W is equal to the gain threshold value, and it can be determined that the earphone is removed, that the earphone is in the non-wearing state, otherwise, the earphone is determined. When the earphone is judged to be in a non-wearing state, the loudspeaker is controlled to stop working, and at the moment, the loudspeaker end cannot output sound signals.
The first calculation period, the first frequency value and the second frequency value (all are low frequency values, for example, the first frequency value is 20Hz, and the second frequency value is 100Hz) are not particularly limited, and are determined according to the actual situation.
For ease of understanding, the present embodiment is described below by way of example:
generally, when the earphone is picked off, the attenuation of a low-frequency signal in a front cavity of the earphone is greater than 20dB, when the earphone is picked off, a large difference exists between first low-frequency envelope energy and second low-frequency envelope energy, the gain of a correction quantity W at this time is too large, the first low-frequency envelope energy and the second low-frequency envelope energy cannot be superposed to an audio signal in a current correction period according to an actually calculated value, but a gain threshold value is superposed to the audio signal in the current correction period, taking the gain threshold value as 15dB as an example, when the difference between the second low-frequency envelope energy and the first low-frequency envelope energy is greater than 5dB, that is, when the difference is still greater than 5dB under the condition that 15dB is compensated, it is said that the attenuation of the low-frequency signal at this time exceeds 20dB, that is; otherwise, the wearing state is still maintained.
Can control loudspeaker stop work when the earphone is taken off through this embodiment, reduce the consumption of earphone, improve the degree of automation of earphone.
As a preferred embodiment, after controlling the control horn to stop working, the method further comprises:
entering a communication judgment process, wherein the communication judgment process comprises the following steps:
calculating first high-frequency envelope energy of the sound signal in a second calculation period between a third frequency value and a fourth frequency value;
calculating second high-frequency envelope energy of the environment sound signal in a second calculation period between a third frequency value and a fourth frequency value;
judging whether the difference value obtained by subtracting the first high-frequency envelope energy from the second high-frequency envelope energy is larger than a second preset value or not, if so, judging that the earphone is in a wearing state, controlling the loudspeaker to start working, and entering an interruption judgment process; otherwise, the earphone is judged to be in a non-wearing state.
In the embodiment, when the earphone is worn, the earmuff of the earphone can block part of high-frequency signals, that is, before the earphone is worn, the high-frequency signals in the front cavity are the same as the high-frequency signals outside the earphone; when the earphone is worn (at the moment, the loudspeaker is not operated), the high-frequency signal in the front cavity is different from the high-frequency signal outside the earphone, and the high-frequency signal in the front cavity is less than the high-frequency signal outside the earphone.
Therefore, in this embodiment, when the earphone is in the non-wearing state, whether the earphone is in the non-wearing state is determined by determining the high-frequency envelope energy in the front cavity of the earphone and the high-frequency envelope energy outside the earphone. Specifically, first high-frequency envelope energy of the sound signal in a low-frequency band in a second calculation period is calculated; calculating second high-frequency envelope energy of the environment sound signal in the second calculation period in the same low frequency band; if the difference value obtained by subtracting the first high-frequency envelope energy from the second high-frequency envelope energy is larger than a second preset value, the earphone is in a wearing state, the loudspeaker is controlled to start working, and an interruption judgment process is started; otherwise, the earphone is in a non-wearing state.
The second calculation period, the third frequency value and the fourth frequency value (all are high frequency values, for example, the third frequency value is 2000Hz, and the fourth frequency value is 10000Hz) are not particularly limited, and are determined according to the actual situation.
Whether the earphone is in the wearing state or not and the non-wearing state is automatically judged, automatic control over the loudspeaker is achieved, power consumption of the earphone is reduced, and automation degree of earphone control is improved.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a sound quality correction system of an earphone according to the present invention, the system includes:
an obtaining module 11, configured to obtain a sound signal generated based on the audio signal of the previous modification period in the front cavity of the earphone;
the compensation module 12 is configured to adjust the audio signal of the current modification period according to the audio signal of the previous modification period and the sound signal, so as to modify the sound signal in the front cavity.
For the introduction of the sound quality correction system of the earphone provided by the present invention, please refer to the above method embodiment, which is not described herein again.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an earphone according to the present invention;
the earphone includes:
a first sound collection device 21 for acquiring a sound signal generated based on the audio signal of the previous correction period in the front cavity of the headphone;
a memory 22 for storing a computer program;
the processor 23 is configured to implement the steps of the sound quality correction method for the earphone as described above when executing the computer program.
As a preferred embodiment, further comprising:
and a second sound collection device 24 for obtaining an ambient sound signal outside the earphone.
In a preferred embodiment, the first sound collection device 21 is a first microphone and the second sound collection device 24 is a second microphone.
It should be noted that the earphone mentioned in this application may be an inner plug type earphone or an earmuff type earphone, and the application does not specifically limit which type of earphone is used.
In particular, here, the first microphone may be disposed in the front cavity, the second microphone may be disposed in the rear ear shell of the earphone, and a sound through hole is disposed between the second microphone and the earphone shell. Referring to fig. 4, fig. 4 is a schematic diagram illustrating an arrangement of two microphones of an earphone according to the present invention.
In addition, the first sound collection device and the second sound collection device can be microphones and other types of sound collection devices, and the purpose of the invention can be achieved.
For the description of the working principle of the earphone provided by the present invention, please refer to the above method embodiment, and the present invention is not repeated herein.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the sound quality correction method for headphones as described above.
For the description of the working principle of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not repeated herein.
It is to be noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A method for correcting the sound quality of an earphone is characterized by comprising the following steps:
acquiring a sound signal generated in the front cavity of the earphone based on the audio signal of the last correction period;
adjusting the audio signal of the current correction period according to the audio signal of the previous correction period and the sound signal so as to correct the sound signal in the front cavity;
the adjusting the audio signal of the current modification period according to the audio signal of the previous modification period and the sound signal to modify the sound signal in the front cavity includes:
determining a correction amount according to the audio signal of the previous correction period and the sound signal;
wherein the correction amount
Figure FDA0002655304960000011
S is the audio signal, X1Is that it isA sound signal F is a transfer function from a loudspeaker of the earphone to a first sound collection device for obtaining the sound signal generated based on the audio signal of the last correction period in the front cavity of the earphone when the earphone is in ideal wearing;
superposing the correction quantity to the audio signal of the current correction period so as to correct the sound signal in the front cavity;
the gain of W is not larger than a gain threshold value which is set with a constraint condition that the modified sound signal is not distorted;
further comprising:
performing an interruption judgment process, wherein the interruption judgment process comprises:
respectively calculating first low-frequency envelope energy of the sound signal in a first calculation period between a first frequency value and a second frequency value when the gain of W is limited and second low-frequency envelope energy of the sound signal in the first calculation period between the first frequency value and the second frequency value when the gain of W is not limited;
judging whether a difference value obtained by subtracting the first low-frequency envelope energy from the second low-frequency envelope energy is larger than a first preset value or not, if so, judging that the earphone is in a non-wearing state, and controlling the loudspeaker to stop working; otherwise, judging that the earphone is in a wearing state; the first preset value is equal to the difference between the attenuation when the earphone is removed and the gain threshold.
2. The method for correcting the sound quality of an earphone according to claim 1, further comprising:
acquiring an ambient sound signal outside the earphone;
the adjusting the audio signal of the current modification period according to the audio signal of the previous modification period and the sound signal to modify the sound signal in the front cavity includes:
determining a correction amount according to the audio signal of the earphone, the sound signal and the environment sound signal;
wherein the correction amount
Figure FDA0002655304960000021
X2For the ambient sound signal, F21A transfer function of a second sound collection device for obtaining an ambient sound signal outside the earphone to the first sound collection device;
and adding the correction quantity to the audio signal of the current correction period to correct the sound signal in the front cavity.
3. The method for modifying the sound quality of an earphone according to claim 1, further comprising, after controlling said speaker to stop operating:
entering a communication judgment process, wherein the communication judgment process comprises the following steps:
calculating a first high-frequency envelope energy of the sound signal in a second calculation period between a third frequency value and a fourth frequency value;
calculating a second high frequency envelope energy of the ambient sound signal between the third frequency value and the fourth frequency value within the second calculation period;
judging whether the difference value obtained by subtracting the first high-frequency envelope energy from the second high-frequency envelope energy is larger than a second preset value or not, if so, judging that the earphone is in a wearing state, controlling the loudspeaker to start working, and entering the interruption judgment process; otherwise, the earphone is judged to be in a non-wearing state.
4. A sound quality correction system for an earphone, comprising:
the acquisition module is used for acquiring a sound signal generated in the front cavity of the earphone based on the audio signal of the last correction period;
the compensation module is used for adjusting the audio signal in the current correction period according to the audio signal in the last correction period and the sound signal so as to correct the sound signal in the front cavity;
the adjusting the audio signal of the current modification period according to the audio signal of the previous modification period and the sound signal to modify the sound signal in the front cavity includes:
determining a correction amount according to the audio signal of the previous correction period and the sound signal;
wherein the correction amount
Figure FDA0002655304960000022
S is the audio signal, X1For the sound signal, F is a transfer function from a speaker of the earphone to a first sound collection device for obtaining a sound signal generated based on the audio signal of the previous modification period in the front cavity of the earphone when the earphone is in an ideal wearing state;
superposing the correction quantity to the audio signal of the current correction period so as to correct the sound signal in the front cavity;
the gain of W is not larger than a gain threshold value which is set with a constraint condition that the modified sound signal is not distorted;
the sound quality correction system is further configured to:
performing an interruption judgment process, wherein the interruption judgment process comprises:
respectively calculating first low-frequency envelope energy of the sound signal in a first calculation period between a first frequency value and a second frequency value when the gain of W is limited and second low-frequency envelope energy of the sound signal in the first calculation period between the first frequency value and the second frequency value when the gain of W is not limited;
judging whether a difference value obtained by subtracting the first low-frequency envelope energy from the second low-frequency envelope energy is larger than a first preset value or not, if so, judging that the earphone is in a non-wearing state, and controlling the loudspeaker to stop working; otherwise, judging that the earphone is in a wearing state; the first preset value is equal to the difference between the attenuation when the earphone is removed and the gain threshold.
5. An earphone, comprising:
the first sound acquisition device is used for acquiring a sound signal generated based on the audio signal of the last correction period in the front cavity of the earphone;
a memory for storing a computer program;
a processor for implementing the steps of the sound quality correction method of the headset according to any one of claims 1 to 3 when executing the computer program.
6. The headset of claim 5, further comprising:
and the second sound acquisition device is used for acquiring an environment sound signal outside the earphone.
7. The headset of claim 6, wherein the first sound collection device is a first microphone and the second sound collection device is a second microphone.
CN201810921957.8A 2018-08-14 2018-08-14 Sound quality correction method and system of earphone and earphone Active CN109104669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810921957.8A CN109104669B (en) 2018-08-14 2018-08-14 Sound quality correction method and system of earphone and earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810921957.8A CN109104669B (en) 2018-08-14 2018-08-14 Sound quality correction method and system of earphone and earphone

Publications (2)

Publication Number Publication Date
CN109104669A CN109104669A (en) 2018-12-28
CN109104669B true CN109104669B (en) 2020-11-10

Family

ID=64849512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810921957.8A Active CN109104669B (en) 2018-08-14 2018-08-14 Sound quality correction method and system of earphone and earphone

Country Status (1)

Country Link
CN (1) CN109104669B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278509A (en) * 2019-07-26 2019-09-24 歌尔股份有限公司 A kind of wireless headset control method, device and wireless headset and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004128854A (en) * 2002-10-02 2004-04-22 Matsushita Electric Ind Co Ltd Acoustic reproduction system
CN1543753A (en) * 2001-07-19 2004-11-03 ���µ�����ҵ��ʽ���� Sound image localizer
CN203522901U (en) * 2013-07-04 2014-04-02 深圳Tcl新技术有限公司 Sound automatic regulating device and television set
CN104661153A (en) * 2014-12-31 2015-05-27 歌尔声学股份有限公司 Earphone sound effect compensation method and device as well as earphone
US9173045B2 (en) * 2012-02-21 2015-10-27 Imation Corp. Headphone response optimization
CN105101013A (en) * 2015-06-30 2015-11-25 小米科技有限责任公司 Method and device for playing voice signals
CN105204488A (en) * 2014-05-28 2015-12-30 通用汽车环球科技运作有限责任公司 Sound Augmentation System Transfer Function Calibration

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4123376B2 (en) * 2004-04-27 2008-07-23 ソニー株式会社 Signal processing apparatus and binaural reproduction method
US8054992B2 (en) * 2006-04-24 2011-11-08 Bose Corporation High frequency compensating
EP2873251B1 (en) * 2012-07-13 2018-11-07 Razer (Asia-Pacific) Pte. Ltd. An audio signal output device and method of processing an audio signal
CN206024115U (en) * 2016-09-19 2017-03-15 深圳市兴戈科技有限公司 The Play System of closed loop feedback self-adjusting audio output characteristics

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543753A (en) * 2001-07-19 2004-11-03 ���µ�����ҵ��ʽ���� Sound image localizer
JP2004128854A (en) * 2002-10-02 2004-04-22 Matsushita Electric Ind Co Ltd Acoustic reproduction system
US9173045B2 (en) * 2012-02-21 2015-10-27 Imation Corp. Headphone response optimization
CN203522901U (en) * 2013-07-04 2014-04-02 深圳Tcl新技术有限公司 Sound automatic regulating device and television set
CN105204488A (en) * 2014-05-28 2015-12-30 通用汽车环球科技运作有限责任公司 Sound Augmentation System Transfer Function Calibration
CN104661153A (en) * 2014-12-31 2015-05-27 歌尔声学股份有限公司 Earphone sound effect compensation method and device as well as earphone
CN105101013A (en) * 2015-06-30 2015-11-25 小米科技有限责任公司 Method and device for playing voice signals

Also Published As

Publication number Publication date
CN109104669A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
JP6096993B1 (en) Earphone sound effect compensation method, apparatus, and earphone
US9607602B2 (en) ANC system with SPL-controlled output
KR102266080B1 (en) Frequency-dependent sidetone calibration
JP4359599B2 (en) hearing aid
EP2987160B1 (en) Systems and methods for hybrid adaptive noise cancellation
WO2017206488A1 (en) Noise reduction method and apparatus for self-adaptively adjusting noise reduction gain, and noise reduction earphone
US8315400B2 (en) Method and device for acoustic management control of multiple microphones
US20160300562A1 (en) Adaptive feedback control for earbuds, headphones, and handsets
WO2016041247A1 (en) Downlink active noise reduction apparatus and method, and mobile terminal
US9729957B1 (en) Dynamic frequency-dependent sidetone generation
JP2014507683A (en) Communication earphone sound enhancement method, apparatus, and noise reduction communication earphone
EP1795045A1 (en) Acoustically transparent occlusion reduction system and method
CN112954530B (en) Earphone noise reduction method, device and system and wireless earphone
WO2021103260A1 (en) Control method for headphones and headphones
CN114503602A (en) Audio system and signal processing method for ear-wearing type playing device
KR101369687B1 (en) Method for control of adaptation of feedback suppression in a hearing aid, and a hearing aid
US20150364145A1 (en) Self-voice feedback in communications headsets
US20160088404A1 (en) Sound signal amplitude suppressing apparatus
CN109104669B (en) Sound quality correction method and system of earphone and earphone
CN114303391A (en) Volume dependent audio compensation
KR20220004976A (en) Audio system and signal processing method for an ear-mountable playback device
US11528549B2 (en) Method for improving electrical endurance of batteries of wireless headphones and the wireless headphones
CN113613147B (en) Hearing effect correction and adjustment method, device, equipment and medium of earphone
US20210219051A1 (en) Method and device for in ear canal echo suppression
US11393486B1 (en) Ambient noise aware dynamic range control and variable latency for hearing personalization

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