CN109040500B - Echo cancellation method, echo cancellation device, earphone device and computer-readable storage medium - Google Patents

Echo cancellation method, echo cancellation device, earphone device and computer-readable storage medium Download PDF

Info

Publication number
CN109040500B
CN109040500B CN201810988868.5A CN201810988868A CN109040500B CN 109040500 B CN109040500 B CN 109040500B CN 201810988868 A CN201810988868 A CN 201810988868A CN 109040500 B CN109040500 B CN 109040500B
Authority
CN
China
Prior art keywords
signal
loudspeaker
reference signal
echo cancellation
sound 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
CN201810988868.5A
Other languages
Chinese (zh)
Other versions
CN109040500A (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 CN201810988868.5A priority Critical patent/CN109040500B/en
Publication of CN109040500A publication Critical patent/CN109040500A/en
Application granted granted Critical
Publication of CN109040500B publication Critical patent/CN109040500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M9/00Arrangements for interconnection not involving centralised switching
    • H04M9/08Two-way loud-speaking telephone systems with means for conditioning the signal, e.g. for suppressing echoes for one or both directions of traffic
    • H04M9/082Two-way loud-speaking telephone systems with means for conditioning the signal, e.g. for suppressing echoes for one or both directions of traffic using echo cancellers
    • 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
    • H04R3/02Circuits for transducers, loudspeakers or microphones for preventing acoustic reaction, i.e. acoustic oscillatory feedback

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses an echo cancellation method, an echo cancellation device, earphone equipment and a computer readable storage medium, which are applied to the earphone equipment provided with a loudspeaker and a call microphone, wherein the earphone equipment also comprises an auxiliary microphone; the first sound signal comprises a horn sound signal played by the horn according to the front-end electric signal of the horn; judging whether the signal intensity of the loudspeaker sound signal is greater than a preset threshold value, if so, taking a first electric signal corresponding to the first sound signal as a reference signal; and performing echo cancellation on the second electric signal corresponding to the second sound signal according to the reference signal, and obtaining the second electric signal after echo cancellation. This application can eliminate the distortion noise that loudspeaker produced in the use, improves echo cancellation effect and earphone equipment's stability, is favorable to improving whole speech quality.

Description

Echo cancellation method, echo cancellation device, earphone device and computer-readable storage medium
Technical Field
The embodiments of the present invention relate to the field of echo cancellation technologies, and in particular, to an echo cancellation method and apparatus, an earphone device, and a computer-readable storage medium.
Background
Generally, in the process of using the earphone to make a call, because the sound emitted by the earphone speaker is picked up by the call MIC of the earphone itself, the opposite party of the call can hear the own sound of the opposite party, i.e. echo is generated. To improve call quality, the headset is typically sealed in its structure and an algorithm is used to process the signal picked up by the call MIC to cancel the echo.
In the earphone in the prior art, only one call MIC is provided, and the adopted echo cancellation algorithm takes the electric signal at the front end of the loudspeaker as a reference signal, adds delay (delay) and frequency compensation to the electric signal at the front end of the loudspeaker, and compares the signal with a signal picked up by the call MIC, so as to filter an echo part in the MIC signal. When the call volume is small, the distortion noise generated by the loudspeaker can be ignored, at the moment, the echo can be well eliminated by adopting the method in the prior art, but when the call volume is large, the distortion noise generated by the loudspeaker is large, at the moment, the distortion noise generated by the loudspeaker cannot be eliminated by adopting the echo eliminating method in the prior art, and therefore the call quality is influenced.
In view of the above, how to provide a method, an apparatus, a headset device and a computer-readable storage medium for better eliminating echo when the call volume is large becomes a problem to be solved by those skilled in the art.
Disclosure of Invention
Embodiments of the present invention provide an echo cancellation method and apparatus, an earphone device, and a computer-readable storage medium, which can cancel distortion noise generated by a speaker during use, improve echo cancellation effect and stability of the earphone device, and facilitate improvement of overall call quality.
In order to solve the above technical problem, an embodiment of the present invention provides an echo cancellation method, which is applied to an earphone device provided with a speaker and a microphone for conversation, where the earphone device further includes an auxiliary microphone, and the method includes:
acquiring a first sound signal picked up by the auxiliary microphone and a second sound signal picked up by the call microphone; the first sound signal comprises a loudspeaker sound signal played by the loudspeaker according to a loudspeaker front end electric signal;
judging whether the signal intensity of the loudspeaker sound signal is greater than a preset threshold value, if so, taking a first electric signal corresponding to the first sound signal as a reference signal;
and performing echo cancellation on the second electric signal corresponding to the second sound signal according to the reference signal, and obtaining the second electric signal after echo cancellation.
Optionally, the method further includes:
and if the signal intensity of the horn sound signal is less than or equal to a preset threshold value, taking the horn front-end electric signal as the reference signal.
Optionally, the process of performing echo cancellation on the second electrical signal corresponding to the second sound signal according to the reference signal, and obtaining the second electrical signal after echo cancellation includes:
correcting the reference signal according to a correction rule corresponding to the reference signal to obtain a corrected reference signal;
and filtering the corrected reference signal from a second electric signal corresponding to the second sound signal to obtain the second electric signal with the echo eliminated.
Optionally, the process of correcting the reference signal according to the correction rule corresponding to the reference signal to obtain a corrected reference signal includes:
when the reference signal is the first electric signal, correcting the reference signal by adopting first time delay and first frequency compensation to obtain a corrected reference signal;
when the reference signal is the electric signal at the front end of the loudspeaker, correcting the reference signal by adopting second time delay and second frequency compensation to obtain the corrected reference signal;
the second delay is a delay of the call microphone relative to the loudspeaker, the second frequency compensation is a response value of the loudspeaker at the call microphone, the first delay is a difference between the second delay and a delay of the auxiliary microphone relative to the loudspeaker, and the first frequency compensation is a difference between the second frequency compensation and a response value of the loudspeaker at the auxiliary microphone.
Optionally, the process of determining whether the signal intensity of the horn sound signal is greater than a preset threshold value is as follows:
and judging whether the signal intensity of the loudspeaker sound signal is greater than a preset threshold value according to the signal intensity corresponding to the first sound signal.
The embodiment of the invention correspondingly provides an echo cancellation device, which is applied to earphone equipment provided with a loudspeaker and a communication microphone, wherein the earphone equipment also comprises an auxiliary microphone, and the device comprises:
the acquisition module is used for acquiring a first sound signal picked up by the auxiliary microphone and a second sound signal picked up by the call microphone; the first sound signal comprises a loudspeaker sound signal played by the loudspeaker according to a loudspeaker front end electric signal;
the judging module is used for judging whether the signal intensity of the loudspeaker sound signal is greater than a preset threshold value or not, and if so, the first determining module is triggered;
the first determining module is configured to use a first electrical signal corresponding to the first sound signal as a reference signal;
and the processing module is used for performing echo cancellation on the second electric signal corresponding to the second sound signal according to the reference signal and obtaining the second electric signal after echo cancellation.
Optionally, the system further comprises a second determining module;
the judging module is further configured to trigger a second determining module when the signal intensity of the horn sound signal is less than or equal to a preset threshold, and further includes:
the second determining module is configured to use the horn front end electrical signal as the reference signal.
The embodiment of the invention also provides earphone equipment, which comprises a loudspeaker, a call microphone, a memory, a processor and an auxiliary microphone arranged in the front cavity of the earphone equipment; wherein:
the memory for storing a computer program;
the processor is configured to implement the steps of the echo cancellation method as described above when executing the computer program.
Optionally, the auxiliary microphone is disposed in a front cavity of the earphone device.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the echo cancellation method are implemented as described above.
The embodiment of the invention provides an echo cancellation method, which is applied to earphone equipment provided with a loudspeaker and a communication microphone, wherein the earphone equipment also comprises an auxiliary microphone, and the method comprises the following steps: acquiring a first sound signal picked up by an auxiliary microphone and a second sound signal picked up by a conversation microphone; the first sound signal comprises a horn sound signal played by the horn according to the front-end electric signal of the horn; judging whether the signal intensity of the loudspeaker sound signal is greater than a preset threshold value, if so, taking a first electric signal corresponding to the first sound signal as a reference signal; and performing echo cancellation on the second electric signal corresponding to the second sound signal according to the reference signal, and obtaining the second electric signal after echo cancellation.
It can be seen that, in this application, when the signal intensity of the loudspeaker sound signal is greater than the preset threshold, the first electrical signal corresponding to the first sound signal picked up by the auxiliary microphone is used as the reference signal, and the second electrical signal corresponding to the second sound signal picked up by the conversation microphone is subjected to echo cancellation according to the reference signal.
In addition, the embodiment of the invention also provides an echo cancellation device, earphone equipment and a computer readable storage medium, which have the same beneficial effects.
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 schematic flowchart of an echo cancellation method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an earphone device according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another echo cancellation method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an echo cancellation device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another earphone device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an echo cancellation method, an echo cancellation device, earphone equipment and a computer readable storage medium, which can cancel distortion noise generated by a loudspeaker in the using process, improve the echo cancellation effect and the stability of the earphone equipment and are beneficial to improving the overall call quality.
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 an echo cancellation method according to an embodiment of the present invention.
The echo cancellation method is applied to earphone equipment provided with a loudspeaker and a call microphone, the earphone equipment further comprises an auxiliary microphone, and the method comprises the following steps:
s110: acquiring a first sound signal picked up by an auxiliary microphone and a second sound signal picked up by a conversation microphone; the first sound signal comprises a horn sound signal played by the horn according to the front-end electric signal of the horn;
it should be noted that, generally, the earphone device includes a speaker and a call microphone MIC 2, in this application, an auxiliary microphone MIC 1 is added in the earphone device, and the auxiliary microphone may be disposed in a front cavity of the earphone device, so that the auxiliary microphone can more accurately pick up a speaker sound signal played by the speaker, of course, the auxiliary microphone is not limited to be disposed in the front cavity of the earphone device, and may also be disposed in other positions, and specifically, the auxiliary microphone may be closer to the speaker than the call microphone, so that when the speaker plays the speaker sound signal, the auxiliary microphone can well pick up the speaker sound signal, specifically, as shown in fig. 2, MIC 1 in fig. 2 is the auxiliary microphone, and MIC 2 is the call microphone.
Specifically, in the call process, a loudspeaker converts a loudspeaker front end electric signal into a loudspeaker sound signal, the auxiliary microphone and the call microphone pick up sound signals at the position of the auxiliary microphone and the call microphone, the first sound signal picked up by the auxiliary microphone comprises the loudspeaker sound signal, the second sound signal picked up by the call microphone comprises a user speaking sound signal and a loudspeaker sound signal (namely, an echo signal) played by the loudspeaker, the echo signal mainly comprises two parts, one part is the sound signal corresponding to the loudspeaker front end electric signal, and the other part is loudspeaker distortion noise.
S120: judging whether the signal intensity of the loudspeaker sound signal is greater than a preset threshold value or not, if so, entering the next step;
it should be noted that, when the signal intensity corresponding to the horn sound signal is greater than the preset threshold, it indicates that the horn distortion is large, and if the horn sound signal is less than or equal to the preset threshold, it indicates that the horn distortion is small. When the distortion of the loudspeaker is large, the distortion noise in the second sound signal is not easily eliminated by an echo cancellation method in the prior art, and when the signal intensity is greater than a preset threshold value, the first electric signal corresponding to the first sound signal picked up by the auxiliary microphone is used as a reference signal.
The preset threshold in this embodiment may be 80dBA, and of course, the specific value may be adjusted according to different actual products, which is not particularly limited in this application.
S130: taking a first electrical signal corresponding to the first sound signal as a reference signal;
specifically, the first sound signal includes a horn sound signal, that is, a sound signal corresponding to a front-end electric signal of the horn and distortion noise generated by the horn. And converting the first sound signal into a first electric signal, and taking the first electric signal as a reference signal when the signal intensity of the loudspeaker sound signal is greater than a preset threshold value, so as to perform echo cancellation processing on a second electric signal corresponding to a second sound signal picked up by the call microphone according to the reference signal.
The first sound signal can be converted into the first electrical signal through an analog-to-digital converter, and the specific method is in the prior art and is not described in detail in this application.
S140: and performing echo cancellation on the second electric signal corresponding to the second sound signal according to the reference signal, and obtaining the second electric signal after echo cancellation.
It should be noted that, after the reference signal is determined, echo cancellation processing is performed on the second electrical signal according to the reference signal, when the distortion of the loudspeaker is large, the reference signal is the first electrical signal, and the first electrical signal includes an electrical signal corresponding to distortion noise sent by the loudspeaker, so that echo cancellation is performed on the second electrical signal according to the reference signal, so that the distortion noise part in the second electrical signal can be cancelled, thereby increasing the proportion of the user sound signal part in the second electrical signal after echo cancellation, and further enabling the sound heard by the user of the other party to be clearer.
It can be understood that, after the second electrical signal with the echo removed is obtained, the second electrical signal may be sent to other audio processing modules for corresponding processing, or may also be sent directly, and specifically, the subsequent operation may be performed according to actual situations.
It can be seen that, in this application, when the signal intensity of the loudspeaker sound signal is greater than the preset threshold, the first electrical signal corresponding to the first sound signal picked up by the auxiliary microphone is used as the reference signal, and the second electrical signal corresponding to the second sound signal picked up by the conversation microphone is subjected to echo cancellation according to the reference signal.
The embodiment of the invention discloses an echo cancellation method, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme, and please refer to fig. 3. Specifically, the method comprises the following steps:
s210: acquiring a first sound signal picked up by an auxiliary microphone and a second sound signal picked up by a conversation microphone; the first sound signal comprises a horn sound signal played by the horn according to the front-end electric signal of the horn;
s220: judging whether the signal intensity of the loudspeaker sound signal is greater than a preset threshold value, if so, entering S230; otherwise, go to S240;
specifically, in this embodiment, when determining whether the signal intensity of the horn sound signal is greater than the preset threshold, it may be specifically determined whether the signal intensity of the horn sound signal is greater than the preset threshold according to the signal intensity corresponding to the first sound signal.
It can be understood that the auxiliary microphone is closer to the speaker, so that the auxiliary microphone can accurately pick up the speaker sound signal, and therefore, whether the signal intensity of the speaker sound signal is greater than the preset threshold value can be accurately judged according to the signal intensity of the first sound signal. Of course, also can directly determine loudspeaker sound signal's signal strength through carrying out the analysis to loudspeaker front end electric signal, specifically adopt which kind of mode to realize can confirming according to actual conditions loudspeaker sound signal's signal strength's judgement, this application does not do special limitation, can realize this application purpose can.
S230: taking a first electrical signal corresponding to the first sound signal as a reference signal;
s240: taking the front-end electrical signal of the loudspeaker as a reference signal;
it should be noted that the processes of S210 to S230 are the same as those in the previous embodiment, and the description of this embodiment is omitted.
For S240, the method in this embodiment further includes taking the front-end electrical signal of the loudspeaker as a reference signal when the signal strength corresponding to the sound signal of the loudspeaker is less than or equal to a preset threshold (the loudspeaker distortion is small), that is, the loudspeaker distortion may not be considered at this time, and performing echo cancellation processing on the second electrical signal directly according to the front-end electrical signal of the loudspeaker.
Further, in this embodiment, the step S140 in the above embodiment is refined, and the specific step S140 of performing echo cancellation on the second electrical signal corresponding to the second sound signal according to the reference signal, and obtaining the second electrical signal after echo cancellation may include:
s250: correcting the reference signal according to a correction rule corresponding to the reference signal to obtain a corrected reference signal;
specifically, the reference signal is corrected according to the delay and the frequency compensation corresponding to the reference signal, when the reference signal is a first electrical signal, the delay is a first delay, the frequency compensation is a first frequency compensation, when the reference signal is a horn front end electrical signal, the delay is a second delay, and the frequency compensation is a second frequency compensation.
That is, when the reference signal is the first electrical signal, the reference signal is corrected by adopting the first delay and the first frequency compensation, and the corrected reference signal is obtained;
when the reference signal is a horn front-end electric signal, correcting the reference signal by adopting second time delay and second frequency compensation to obtain a corrected reference signal;
the second delay is the delay of the call microphone relative to the loudspeaker, the second frequency compensation is the response value of the loudspeaker at the call microphone, the first delay is the difference between the second delay and the delay of the auxiliary microphone relative to the loudspeaker, and the first frequency compensation is the difference between the second frequency compensation and the response value of the loudspeaker at the auxiliary microphone.
For example, the first Delay is Delay1, the second Delay is Delay 2, the first frequency compensation is P1, the second frequency compensation is P2, the Delay of the call microphone with respect to the loudspeaker is D2, the Delay of the auxiliary microphone with respect to the loudspeaker is D1, the response value of the loudspeaker at the call microphone is F2, and the response value of the loudspeaker at the auxiliary microphone is F1, then Delay1 is D2-D1, Delay 2 is D2, P1 is F2-F1, and P2 is F2.
Among them, D1, D2, F1 and F2 can be obtained in advance by measurement of the headphone apparatus, for example, the front-end signal of the horn is S, the signal received at MIC 1 is S1, the signal received at MIC 2 is S2, the delay of the MIC 1 signal S1 with respect to the signal S is D1, the delay of the signal S2 with respect to the signal S of MIC 2 is D2, the response of the horn play signal S at MIC 1 is F1, and the response of the horn play signal S at MIC 2 is F2.
S260: and filtering the corrected reference signal from the second electric signal corresponding to the second sound signal to obtain the second electric signal with the echo eliminated.
Specifically, when the reference signal is the first electrical signal, the first Delay1 and the first frequency compensation P1 are added to the first electrical signal to correct the first electrical signal and obtain a corrected first electrical signal, and then the corrected first electrical signal is subtracted from the second electrical signal, so that the echo part corresponding to the first electrical signal in the second electrical signal is removed.
Similarly, when the reference signal is the front-end electrical signal of the loudspeaker, the second Delay 2 and the second frequency compensation P2 are added to the front-end electrical signal of the loudspeaker to correct the front-end electrical signal of the loudspeaker and obtain a corrected front-end electrical signal of the loudspeaker, and then the corrected front-end electrical signal of the loudspeaker is subtracted from the second electrical signal, so that the echo part corresponding to the front-end electrical signal of the loudspeaker in the second electrical signal is eliminated.
It can be understood that, in this embodiment, when the volume of the loudspeaker is low, the echo part in the microphone for calling can be eliminated by directly using the electrical signal at the front end of the loudspeaker as the reference information, and when the volume of the loudspeaker is high, the echo can be eliminated based on the auxiliary microphone, so that the distortion noise generated by the loudspeaker is eliminated, and the user can still maintain high-quality calling at the same time when the volume of the loudspeaker is high.
On the basis of the foregoing embodiments, an echo cancellation device is correspondingly provided in the embodiments of the present invention, please refer to fig. 4. The device is applied to the earphone equipment who is equipped with loudspeaker and conversation microphone, and earphone equipment still includes supplementary microphone, and the device includes:
an acquiring module 31, configured to acquire a first sound signal picked up by the auxiliary microphone and a second sound signal picked up by the call microphone; the first sound signal comprises a horn sound signal played by the horn according to the front-end electric signal of the horn;
the judging module 32 is configured to judge whether the signal intensity of the horn sound signal is greater than a preset threshold, and if so, trigger the first determining module 33;
a first determining module 33, configured to use a first electrical signal corresponding to the first sound signal as a reference signal;
the processing module 34 is configured to perform echo cancellation on the second electrical signal corresponding to the second sound signal according to the reference signal, and obtain a second electrical signal after echo cancellation.
Further, the device also comprises a second determination module;
the determining module 32 is further configured to trigger the second determining module when the signal intensity of the horn sound signal is less than or equal to a preset threshold, and further includes:
and the second determination module is used for taking the electric signal at the front end of the loudspeaker as a reference signal.
Further, the processing module 34 includes:
the correction unit is used for correcting the reference signal according to a correction rule corresponding to the reference signal to obtain a corrected reference signal;
and the eliminating unit is used for filtering the corrected reference signal from the second electric signal corresponding to the second sound signal to obtain the second electric signal with the echo eliminated.
Further, the correction unit includes:
the first correcting subunit is used for correcting the reference signal by adopting first time delay and first frequency compensation when the reference signal is a first electric signal to obtain a corrected reference signal;
the second correction subunit is used for correcting the reference signal by adopting second time delay and second frequency compensation when the reference signal is a horn front-end electric signal to obtain a corrected reference signal;
the second delay is the delay of the call microphone relative to the loudspeaker, the second frequency compensation is the response value of the loudspeaker at the call microphone, the first delay is the difference between the second delay and the delay of the auxiliary microphone relative to the loudspeaker, and the first frequency compensation is the difference between the second frequency compensation and the response value of the loudspeaker at the auxiliary microphone.
Further, an auxiliary microphone is disposed within the front cavity of the earphone device.
It should be noted that the echo cancellation device provided in the embodiment of the present invention has the same beneficial effects as the echo cancellation method provided in the foregoing embodiment, and for the specific description of the echo cancellation method in the embodiment, please refer to the foregoing method embodiment, which is not described herein again.
On the basis of the above embodiments, please refer to fig. 5. The embodiment of the invention also provides an earphone device, which comprises a loudspeaker, a communication microphone, a memory 41, a processor 42 and an auxiliary microphone; wherein:
a memory 41 for storing a computer program;
a processor 42 for implementing the steps of the echo cancellation method as described above when executing the computer program.
Furthermore, the auxiliary microphone is arranged in the front cavity of the earphone device, so that the auxiliary microphone can more accurately pick up a loudspeaker sound signal played by the loudspeaker, and an echo signal in the call microphone can be better eliminated.
It should be noted that the earphone device may be a device designed based on the earphone principle, such as a wired earphone, a bluetooth earphone, or a voice telephone.
On the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the echo cancellation method as described above.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further 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. An echo cancellation method applied to an earphone device provided with a loudspeaker and a call microphone, wherein the earphone device further comprises an auxiliary microphone, and the method comprises the following steps:
acquiring a first sound signal picked up by the auxiliary microphone and a second sound signal picked up by the call microphone; the first sound signal comprises a loudspeaker sound signal played by the loudspeaker according to a loudspeaker front end electric signal;
judging whether the signal intensity of the loudspeaker sound signal is greater than a preset threshold value, if so, taking a first electric signal corresponding to the first sound signal as a reference signal;
performing echo cancellation on a second electric signal corresponding to the second sound signal according to the reference signal, and obtaining a second electric signal after echo cancellation; wherein:
the auxiliary microphone is closer to the loudspeaker than the conversation microphone; wherein:
further comprising:
if the signal intensity of the horn sound signal is smaller than or equal to a preset threshold value, taking the horn front-end electric signal as the reference signal;
the process of performing echo cancellation on the second electrical signal corresponding to the second acoustic signal according to the reference signal and obtaining the second electrical signal after echo cancellation includes:
correcting the reference signal according to a correction rule corresponding to the reference signal to obtain a corrected reference signal;
and filtering the corrected reference signal from a second electric signal corresponding to the second sound signal to obtain the second electric signal with the echo eliminated.
2. The method of claim 1, wherein the step of modifying the reference signal according to a modification rule corresponding to the reference signal to obtain a modified reference signal comprises:
when the reference signal is the first electric signal, correcting the reference signal by adopting first time delay and first frequency compensation to obtain a corrected reference signal;
when the reference signal is the electric signal at the front end of the loudspeaker, correcting the reference signal by adopting second time delay and second frequency compensation to obtain the corrected reference signal;
the second delay is a delay of the call microphone relative to the loudspeaker, the second frequency compensation is a response value of the loudspeaker at the call microphone, the first delay is a difference between the second delay and a delay of the auxiliary microphone relative to the loudspeaker, and the first frequency compensation is a difference between the second frequency compensation and a response value of the loudspeaker at the auxiliary microphone.
3. The echo cancellation method according to any one of claims 1-2, wherein the determining whether the signal strength of the horn sound signal is greater than a preset threshold is performed by:
and judging whether the signal intensity of the loudspeaker sound signal is greater than a preset threshold value according to the signal intensity corresponding to the first sound signal.
4. An echo cancellation device, is applied to the earphone equipment who is equipped with loudspeaker and conversation microphone, its characterized in that, earphone equipment still includes supplementary microphone, the device includes:
the acquisition module is used for acquiring a first sound signal picked up by the auxiliary microphone and a second sound signal picked up by the call microphone; the first sound signal comprises a loudspeaker sound signal played by the loudspeaker according to a loudspeaker front end electric signal;
the judging module is used for judging whether the signal intensity of the loudspeaker sound signal is greater than a preset threshold value or not, and if so, the first determining module is triggered;
the first determining module is configured to use a first electrical signal corresponding to the first sound signal as a reference signal;
the processing module is used for performing echo cancellation on a second electric signal corresponding to the second sound signal according to the reference signal and obtaining the second electric signal after echo cancellation; wherein:
the auxiliary microphone is closer to the loudspeaker than the conversation microphone; wherein:
the device also comprises a second determination module;
the judging module is further configured to trigger a second determining module when the signal intensity of the horn sound signal is less than or equal to a preset threshold, and further includes:
the second determining module is configured to use the front-end electrical signal of the loudspeaker as the reference signal
The process of performing echo cancellation on the second electrical signal corresponding to the second acoustic signal according to the reference signal and obtaining the second electrical signal after echo cancellation includes:
correcting the reference signal according to a correction rule corresponding to the reference signal to obtain a corrected reference signal;
and filtering the corrected reference signal from a second electric signal corresponding to the second sound signal to obtain the second electric signal with the echo eliminated.
5. An earphone device comprises a loudspeaker and a call microphone, and is characterized by further comprising a memory, a processor and an auxiliary microphone; wherein:
the memory for storing a computer program;
the processor, when executing the computer program, is configured to implement the steps of the echo cancellation method according to any of claims 1 to 3.
6. The earphone device of claim 5, wherein the auxiliary microphone is disposed within a front cavity of the earphone device.
7. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the echo cancellation method according to any one of claims 1 to 3.
CN201810988868.5A 2018-08-28 2018-08-28 Echo cancellation method, echo cancellation device, earphone device and computer-readable storage medium Active CN109040500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810988868.5A CN109040500B (en) 2018-08-28 2018-08-28 Echo cancellation method, echo cancellation device, earphone device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810988868.5A CN109040500B (en) 2018-08-28 2018-08-28 Echo cancellation method, echo cancellation device, earphone device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN109040500A CN109040500A (en) 2018-12-18
CN109040500B true CN109040500B (en) 2021-10-26

Family

ID=64624916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810988868.5A Active CN109040500B (en) 2018-08-28 2018-08-28 Echo cancellation method, echo cancellation device, earphone device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN109040500B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012378B (en) * 2019-04-08 2020-10-16 深圳市九音科技有限公司 Method for reducing noise of voice, earplug and computer storage medium
CN111010646B (en) * 2020-03-11 2020-06-26 恒玄科技(北京)有限公司 Method and system for transparent transmission of earphone and earphone
CN111601201A (en) * 2020-04-28 2020-08-28 深圳市友杰智新科技有限公司 Echo cancellation method, echo cancellation device, computer equipment and storage medium
CN111883156B (en) * 2020-07-22 2023-04-07 Oppo(重庆)智能科技有限公司 Audio processing method and device, electronic equipment and storage medium
CN112927708A (en) * 2021-03-25 2021-06-08 北京儒博科技有限公司 Method, device, equipment and storage medium for enhancing and suppressing residual acoustic echo

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1391688A (en) * 1999-09-27 2003-01-15 杰贝尔合作有限责任公司 Noise suppression system with dual microphone echo cancellation
CN103325378A (en) * 2013-07-16 2013-09-25 珠海市魅族科技有限公司 Terminal voice noise reducing method and terminal
WO2016043522A1 (en) * 2014-09-17 2016-03-24 해보라(주) Ear-set and control method therefor
CN107204192A (en) * 2017-06-05 2017-09-26 歌尔科技有限公司 Tone testing method, sound enhancement method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8280072B2 (en) * 2003-03-27 2012-10-02 Aliphcom, Inc. Microphone array with rear venting

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1391688A (en) * 1999-09-27 2003-01-15 杰贝尔合作有限责任公司 Noise suppression system with dual microphone echo cancellation
CN103325378A (en) * 2013-07-16 2013-09-25 珠海市魅族科技有限公司 Terminal voice noise reducing method and terminal
WO2016043522A1 (en) * 2014-09-17 2016-03-24 해보라(주) Ear-set and control method therefor
CN107204192A (en) * 2017-06-05 2017-09-26 歌尔科技有限公司 Tone testing method, sound enhancement method and device

Also Published As

Publication number Publication date
CN109040500A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109040500B (en) Echo cancellation method, echo cancellation device, earphone device and computer-readable storage medium
KR102266080B1 (en) Frequency-dependent sidetone calibration
US9135924B2 (en) Noise suppressing device, noise suppressing method and mobile phone
KR102124760B1 (en) Coordinated control of adaptive noise cancellation(anc) among earspeaker channels
CN108540906B (en) Volume adjusting method, earphone and computer readable storage medium
CN107371079B (en) A kind of the diamylose gram noise reduction system and noise-reduction method of earphone
TWI506620B (en) Communication apparatus and voice processing method therefor
WO2017096923A1 (en) Method and system for alleviating hands-free call echo of mobile terminal
CN109068217B (en) Method and device for enhancing side tone of in-ear earphone and in-ear earphone
WO2007018802A2 (en) Method and system for operation of a voice activity detector
EP2330807A1 (en) Method and electronic device for improving communication quality based on ambient noise sensing
CN110782912A (en) Sound source control method and speaker device
US10735849B2 (en) Headphones
CN112019967A (en) Earphone noise reduction method and device, earphone equipment and storage medium
CN112822585A (en) Audio playing method, device and system of in-ear earphone
CN111063363B (en) Voice acquisition method, audio equipment and device with storage function
WO2022227399A1 (en) Wireless earphones and pass-through method, apparatus and system therefor
EP3611936B1 (en) Noise elimination device, noise elimination method and noise elimination program
JP4631581B2 (en) Loudspeaker
CN113329290B (en) Earphone control method, earphone control device, wireless earphone and storage medium
JP4887181B2 (en) Echo prevention device and program
CN114697783A (en) Earphone wind noise identification method and device
JP2009153053A (en) Voice estimation method, and mobile terminal using the same
JP2015002386A (en) Telephone conversation device, voice change method, and voice change program
CN114708884B (en) Sound signal processing method and device, audio equipment and storage medium

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