CN112447175A - Echo cancellation method and device - Google Patents

Echo cancellation method and device Download PDF

Info

Publication number
CN112447175A
CN112447175A CN201910810062.1A CN201910810062A CN112447175A CN 112447175 A CN112447175 A CN 112447175A CN 201910810062 A CN201910810062 A CN 201910810062A CN 112447175 A CN112447175 A CN 112447175A
Authority
CN
China
Prior art keywords
signal
target
echo
relative position
filter coefficient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910810062.1A
Other languages
Chinese (zh)
Inventor
陈孝良
冯大航
常乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing SoundAI Technology Co Ltd
Original Assignee
Beijing SoundAI Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing SoundAI Technology Co Ltd filed Critical Beijing SoundAI Technology Co Ltd
Priority to CN201910810062.1A priority Critical patent/CN112447175A/en
Publication of CN112447175A publication Critical patent/CN112447175A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Processing of the speech or voice signal to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Processing of the speech or voice signal to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • G10L2021/02082Noise filtering the noise being echo, reverberation of the speech

Abstract

The embodiment of the application discloses an echo cancellation method, when a certain moment, such as a target moment, a microphone and a loudspeaker reach a certain relative position relation, such as a target relative position relation, a target filter coefficient corresponding to the target relative position information can be directly obtained from a pre-stored corresponding relation according to the obtained target relative position information, so that an echo signal is determined according to the target filter coefficient and a signal sent by the loudspeaker, and the echo signal is eliminated from a signal to be subjected to echo cancellation. The pre-stored corresponding relation is obtained by storing the corresponding relation between the relative position information and the filter coefficient after the filter coefficient is obtained under any relative position relation, so that the adaptive filter used for echo cancellation can directly read the filter coefficient after the relative position relation is changed without re-convergence, the time required by the convergence of the adaptive filter is saved, and the situation that the residual signal of the loudspeaker in the microphone receiving signal is increased in the convergence time is avoided.

Description

Echo cancellation method and device
Technical Field
The present application relates to the field of audio processing, and in particular, to an echo cancellation method and apparatus.
Background
In many scenarios involving audio processing, such as video conferencing systems, hands-free phones, mobile communications, smart phones, smart devices require echo cancellation of the acquired audio signals. Echo cancellation is a process of canceling echo in a voice call to improve call quality. For example, the speaker of the smart device is close to the microphone, and the microphone receives the sound (i.e., echo) emitted by the speaker except the external instruction, so that the sound needs to be eliminated, and the quality of the acquired external instruction is prevented from being affected by the echo.
The current echo cancellation method adopts an adaptive filtering method, and determines a transfer function from a loudspeaker to a microphone through a reference signal and a signal received by the microphone, so as to cancel the signal of the loudspeaker from the signal received by the microphone.
However, for a rotating smart device such as a smart device in which a speaker can rotate, the positions of the speaker and a microphone may change relatively, and then to ensure the effect of echo cancellation, a filter used in echo cancellation needs to be re-converged according to the change of the position, and since re-convergence needs a certain time, a problem that a residual signal of the speaker in a microphone receiving signal becomes large in a filter convergence time may occur.
Disclosure of Invention
In order to solve the above technical problem, the present application provides an echo cancellation method and apparatus, where an adaptive filter used in echo cancellation may directly read a filter coefficient, re-convergence is not required, time required for convergence of the adaptive filter is saved, and a situation that a speaker residual signal in a microphone received signal becomes large in convergence time is avoided.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides an echo cancellation method, where the method includes:
acquiring target relative position information of a microphone and a loudspeaker at a target moment;
acquiring a target filter coefficient corresponding to the target relative position information from a pre-stored corresponding relationship, wherein the pre-stored corresponding relationship is the corresponding relationship between the pre-stored relative position information and the filter coefficient;
determining an echo signal according to the target filter coefficient and the signal sent by the loudspeaker, and eliminating the echo signal from a signal to be echo eliminated, wherein the echo signal is the signal sent by the loudspeaker and received by a microphone, and the signal to be echo eliminated is the signal received by the microphone.
Optionally, the method further includes:
in the process of carrying out echo elimination on the signals received by the loudspeaker at the moment n, executing a convergence algorithm through an adaptive filter used by the echo elimination to determine a filter coefficient when the adaptive filter converges;
and storing the corresponding relation between the relative position information of the loudspeaker and the microphone at the moment n and the filter coefficient at the moment n.
Optionally, if the speaker rotates within a preset angle range, the target relative position information is the angle information of the speaker rotation.
Optionally, the preset angle range is divided into a plurality of angle intervals, and the pre-stored correspondence is a correspondence between an angle interval and a filter coefficient.
Optionally, the obtaining a target filter coefficient corresponding to the target relative position information from a pre-stored correspondence includes:
determining a target angle interval in which the target relative position information is located;
and acquiring the target filter coefficient corresponding to the target angle interval.
Optionally, the eliminating the echo signal from the signal to be echo cancelled includes:
and obtaining a residual signal by subtracting the signal to be subjected to echo cancellation and the echo signal.
Optionally, the step size of the filter for updating the filter coefficient in the convergence process is adjusted according to the power of the signal emitted by the speaker.
In a second aspect, an embodiment of the present application provides an echo cancellation device, including:
the first acquisition unit is used for acquiring target relative position information of the microphone and the loudspeaker at a target moment;
a second obtaining unit, configured to obtain a target filter coefficient corresponding to the target relative position information from a pre-stored corresponding relationship, where the pre-stored corresponding relationship is a corresponding relationship between pre-stored relative position information and a filter coefficient;
and the eliminating unit is used for determining an echo signal according to the target filter coefficient and the signal sent by the loudspeaker, and eliminating the echo signal from a signal to be subjected to echo elimination, wherein the echo signal is the signal received by the microphone and sent by the loudspeaker, and the signal to be subjected to echo elimination is the signal received by the microphone.
Optionally, the apparatus further comprises:
the determining unit is used for determining a filter coefficient when the adaptive filter converges by executing a convergence algorithm through the adaptive filter used by echo cancellation in the process of performing echo cancellation on the signal received by the loudspeaker at the moment n;
and the storage unit is used for storing the corresponding relation between the relative position information of the loudspeaker and the microphone at the moment n and the filter coefficient at the moment n.
Optionally, if the speaker rotates within a preset angle range, the target relative position information is the angle information of the speaker rotation.
Optionally, the preset angle range is divided into a plurality of angle intervals, and the pre-stored correspondence is a correspondence between an angle interval and a filter coefficient.
Optionally, the second obtaining unit is configured to:
determining a target angle interval in which the target relative position information is located;
and acquiring the target filter coefficient corresponding to the target angle interval.
Optionally, the eliminating unit is configured to:
and obtaining a residual signal by subtracting the signal to be subjected to echo cancellation and the echo signal.
Optionally, the step size of the filter for updating the filter coefficient in the convergence process is adjusted according to the power of the signal emitted by the speaker.
In a third aspect, an embodiment of the present application provides an intelligent device, where the device includes a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the echo cancellation method of any of the first aspect according to instructions in the program code.
According to the technical scheme, the relative position relation between the microphone and the loudspeaker in the rotary intelligent device changes, so that the filter is prevented from being converged again due to the change of the relative position relation between the microphone and the loudspeaker, the filter coefficient used for echo cancellation is obtained, after the filter coefficient is obtained in any relative position relation, the corresponding relation between the relative position information and the filter coefficient can be stored, and the relative position information reflects the relative position relation. Thus, when a certain time, for example, a target time, the microphone and the speaker reach a certain relative position relationship, for example, a target relative position relationship, the target filter coefficient corresponding to the target relative position information can be directly obtained from the pre-stored corresponding relationship according to the obtained target relative position information, so that an echo signal can be determined according to the target filter coefficient and the signal sent by the speaker, and the echo signal can be eliminated from the signal to be echo eliminated. It can be seen that, because the corresponding relationship between the relative position information and the filter coefficient is pre-stored, when the relative position relationship between the microphone and the speaker changes, the adaptive filter used for echo cancellation can directly read the filter coefficient without re-convergence, thereby saving the time required by the convergence of the adaptive filter and avoiding the situation that the residual signal of the speaker in the microphone receiving signal becomes large in the convergence time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of an echo cancellation method according to an embodiment of the present application;
fig. 2a is a diagram illustrating an echo cancellation effect according to an embodiment of the present application;
FIG. 2b is a diagram illustrating the effect of echo cancellation by conventional means;
fig. 3 is a structural diagram of an echo cancellation device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In a conventional echo cancellation method, for a rotating smart device, for example, a microphone is on a base, but a speaker is a smart device that can rotate above the base, the positions of the speaker and the microphone change relatively, so to ensure the effect of echo cancellation, a filter used in echo cancellation needs to be re-converged according to the change of the position, and since re-convergence needs a certain time, a problem that a speaker residual signal in a microphone received signal becomes large in a filter convergence time may occur. Further, if the convergence time is shortened by increasing the convergence speed by adjusting the step size of the filter, the filter may diverge if the step size is too large, and the error increases even if the filter converges.
Therefore, the embodiment of the present application provides an echo cancellation method and apparatus, when a relative positional relationship between a microphone and a speaker in a rotating smart device changes, in order to avoid that a filter reconverges due to the change of the relative positional relationship between the microphone and the speaker, a filter coefficient used for echo cancellation is obtained, and after the filter coefficient is obtained in any relative positional relationship, a corresponding relationship between relative positional information and the filter coefficient may be stored. Therefore, when echo cancellation needs to be performed on a signal received by a microphone at a certain moment, for example, at a target moment, the target relative position confidence of the microphone and the loudspeaker at the target moment can be obtained, the target filter coefficient corresponding to the target relative position information is directly obtained from the pre-stored corresponding relation, so that an echo signal is determined according to the target filter coefficient and the signal sent by the loudspeaker, the echo signal is cancelled from the signal to be subjected to echo cancellation, re-convergence is not needed, the time required by convergence of the adaptive filter is saved, and the situation that the residual signal of the loudspeaker in the signal received by the microphone becomes large in convergence time is avoided.
The echo cancellation method provided by the embodiment of the application can be applied to intelligent equipment, the intelligent equipment is any equipment with a variable relative position relation between a loudspeaker and a microphone, the intelligent equipment is determined according to an audio processing scene, for example, in the scene of an intelligent sound box, the intelligent equipment is the intelligent sound box, namely, the echo cancellation method is executed by the intelligent sound box, so that the interference of voice sent by the loudspeaker on a voice instruction sent by a user is avoided, the intelligent sound box can recognize the voice instruction sent by the user, and the control on the intelligent sound box is realized.
Based on the above-mentioned ideas, in order to make the above-mentioned objects, features and advantages of the present application more comprehensible, specific embodiments of the present application are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, the figure is a schematic flowchart of an echo cancellation method according to an embodiment of the present application.
The echo cancellation method includes:
s101, acquiring target relative position information of the microphone and the loudspeaker at a target moment.
The speaker and the microphone of the smart device have a relative positional relationship, which can be represented by relative positional information. However, for some reasons, for example, the speaker or the microphone of the smart device is rotated, so that the relative position relationship between the speaker and the microphone is changed. The change of the relative position relationship may cause the filter coefficient corresponding to the convergence of the adaptive filter to change during the echo cancellation, that is, different relative position relationships have corresponding filter coefficients. Therefore, at a certain time, for example, at the target time, in order to obtain the filter coefficient used in the echo cancellation process at the target time, first, the target relative position information of the microphone and the speaker at the target time may be obtained.
It should be noted that, in an implementation manner, the change in the relative position relationship between the speaker and the microphone is caused by the rotation of the speaker, and if the speaker rotates within a preset angle range, the target relative position information is the angle information of the rotation of the speaker. For example, the speaker rotates in the range of 0 to 360 ° from the initial position, and if the speaker is located at the initial position, that is, the angle of rotation of the speaker is 0, the target relative position information is 0; if the speaker is rotated by an angle of 10 °, the target relative position information may be 10 °. Wherein, 0-360 degrees is a preset angle range, and 10 degrees is the angle information of the rotation of the loudspeaker.
And S102, acquiring a target filter coefficient corresponding to the target relative position information from a pre-stored corresponding relation.
The pre-stored corresponding relation is the corresponding relation between the pre-stored relative position information and the filter coefficient. It is understood that, in this embodiment, in the case where the relative positional relationship between the microphone and the speaker changes, in order to avoid the adaptive filter used for echo cancellation from being re-converged due to the change in the relative positional relationship, the corresponding filter coefficient for each piece of relative positional information may be stored, so that when the microphone and the speaker reach the relative positional information, the filter coefficient is taken out to be updated iteratively as the initial value of the adaptive filter.
In one implementation manner, the echo cancellation method provided in the embodiment of the present application further includes: and in the process of carrying out echo elimination on the signal received by the loudspeaker at the moment n, executing a convergence algorithm through an adaptive filter used for the echo elimination to determine a filter coefficient when the adaptive filter converges. Then, the correspondence between the relative position information of the speaker and the microphone at the time n and the filter coefficient at the time n is stored.
The echo cancellation process for the signal received by the loudspeaker at time n is as follows:
assume that the speaker emits signals x (N) ═ x (N), x (N-1), …, x (N-N +1)]TWhere N is the order of the impulse response.
Obtaining echo signal y (n) w by using impulse response and signal emitted by loudspeakerT(n)x(n)。
Calculating the residual signal: and e (n) ═ d (n) -y (n), wherein d (n) is the signal received by the microphone at time n.
And the adaptive filter used for echo cancellation executes a convergence algorithm to determine a filter coefficient when the adaptive filter converges, and in the convergence process of the adaptive filter, the adaptive filter updates the filter coefficient according to the step length until the adaptive filter converges to obtain the filter coefficient when the adaptive filter converges and stores the filter coefficient. And recording the relative position information of the loudspeaker and the microphone corresponding to the filter coefficient when the filter coefficient is stored.
In a possible implementation manner, the step size of the filter for updating the filter coefficient in the convergence process is adjusted according to the power of the signal emitted by the speaker, wherein the power of the signal emitted by the speaker can be calculated by the following formula:
Pxx(n)=xT(n)x(n)
wherein, Pxx(n) is the power of the signal emitted by the speaker, and x (n) is the signal emitted by the speaker.
The formula for updating the filter coefficients is as follows:
Figure BDA0002184814570000071
wherein w (n +1) is the filter coefficient after updating, w (n) is the filter coefficient before updating, Pxx(n) is the power of the signal emitted by the loudspeaker, e (n) is the residual signal, x (n) is the signal emitted by the loudspeaker, μ is the step size,
Figure BDA0002184814570000072
is a constant number of times, and is,
Figure BDA0002184814570000073
indicating the step size after adjustment with power.
It should be noted that, in some cases, if the relative positional relationship between the speaker and the microphone does not change much, even if the relative positional relationship is different, a better echo cancellation effect can be achieved by using the same filter coefficient. For example, the relative positional relationship between the speaker and the microphone changes due to the rotation of the speaker, and the speaker rotates within a preset angle range, and if the speaker rotates from 0 ° to 10 °, the relative positional relationship between the speaker and the microphone does not change much in the angle range, that is, the speaker rotates from 0 ° to 10 ° and can perform echo cancellation using the same filter coefficient.
Therefore, in one implementation, if the speaker rotates within a predetermined angle range, the predetermined angle range is divided into a plurality of angle intervals, and the pre-stored correspondence relationship is a correspondence relationship between the angle intervals and the filter coefficients. The plurality of angle intervals may be uniformly divided or non-uniformly divided.
For example, the loudspeaker rotates in an angle range of 0-360 degrees, the angle range of 0-360 degrees is a preset angle range, the preset angle range is evenly divided into 36 parts, and 36 angle intervals are obtained, wherein the angle intervals are respectively 0-10 degrees, 10-20 degrees, … … degrees and 350-360 degrees. Then, a filter coefficient is stored for each angle interval, i.e. the pre-stored corresponding relationship is the corresponding relationship between the angle interval and the filter coefficient.
The stored filter coefficients are denoted as Hk(n)=[ω0(n),ω1(n),…,ωN-1(n)]TWherein H isk(N) represents the filter coefficient of the k-th angle interval at N times, N is the length of the filter, and omegaN-1And (N) is the Nth filter coefficient in the filter. Taking the above divided multiple angle intervals as an example, HkWhere k in (n) is 1, 2, … …, or 36, and the stored filter coefficient corresponding to the angle range of 0 to 10 ° is H1(n) the stored filter coefficient corresponding to the angle interval of 10-20 degrees is H2(n) … …, wherein the stored filter coefficient corresponding to the angle interval of 350-360 degrees is H36(n)。
It can be understood that, when the preset angle range is divided into a plurality of angle intervals, and the pre-stored correspondence is a correspondence between an angle interval and a filter coefficient, the implementation manner of S102 may be to determine a target angle segment in which the target relative position information is located; and acquiring the target filter coefficient corresponding to the target angle subsection.
For example, the loudspeaker rotates in an angle range of 0 to 360 degrees, the angle range of 0 to 360 degrees is a preset angle range, the preset angle range is divided into 36 angle intervals according to the division mode, and the filter coefficients stored for each angle interval are sequentially H1(n)、H2(n)、……、H36(n) of (a). If the loudspeaker rotates to 100 degrees at the target moment, namely the relative position information of the target is determined to be that the loudspeaker rotates to 100 degrees, the interval is divided according to the angles, and the 10 th angle is positioned in the 10 th angle interval (target angle interval) when the 100 degrees are positioned in the 10 th angle intervalFilter coefficient H corresponding to degree interval10(n) as target filter coefficients for echo cancellation.
S103, determining an echo signal according to the target filter coefficient and the signal sent by the loudspeaker, and eliminating the echo signal from the signal to be echo eliminated.
The echo signal is a signal sent by a loudspeaker and received by a microphone, and the signal to be echo-cancelled is a signal received by the microphone.
It should be noted that, the manner of eliminating the echo signal from the signal to be echo cancelled may be to obtain a residual signal by subtracting the signal to be echo cancelled from the echo signal, so as to filter the echo signal in the signal to be echo cancelled.
Assuming that a microphone of a doll-type smart device is arranged at a base, a loudspeaker is arranged at an ear of a doll, and the loudspeaker of the smart device is arranged in a 0-degree direction initially and rotates to a 180-degree direction at 16s, by the echo cancellation method provided by the embodiment of the application, when the loudspeaker rotates to the 180-degree direction, a filter coefficient corresponding to relative position information (target relative position information) represented by 180 degrees is directly obtained from a pre-stored corresponding relation and is used as a target filter coefficient, so that the time required by the re-convergence of the adaptive filter is saved, and the situation that the residual signal of the loudspeaker in a microphone receiving signal becomes large in convergence time is avoided. The effect graph of echo cancellation by the method provided by the embodiment of the present application can be seen in fig. 2a, where the horizontal axis represents time, and the vertical axis represents the magnitude of the signal received by the microphone (represented by the signal amplitude), and it can be seen that the signal received by the microphone does not become large.
While the effect diagram of the conventional echo cancellation method is shown in fig. 2b, when the speaker rotates to 180 ° direction at 16s, since the adaptive filter needs to re-converge, the echo cancellation effect is not good during the re-convergence time, so that the signal received by the microphone suddenly becomes large at 16 s.
According to the technical scheme, the relative position relation between the microphone and the loudspeaker in the rotary intelligent device changes, so that the filter is prevented from being converged again due to the change of the relative position relation between the microphone and the loudspeaker, the filter coefficient used for echo cancellation is obtained, after the filter coefficient is obtained in any relative position relation, the corresponding relation between the relative position information and the filter coefficient can be stored, and the relative position information reflects the relative position relation. Thus, when a certain time, for example, a target time, the microphone and the speaker reach a certain relative position relationship, for example, a target relative position relationship, the target filter coefficient corresponding to the target relative position information can be directly obtained from the pre-stored corresponding relationship according to the obtained target relative position information, so that an echo signal can be determined according to the target filter coefficient and the signal sent by the speaker, and the echo signal can be eliminated from the signal to be echo eliminated. It can be seen that, because the corresponding relationship between the relative position information and the filter coefficient is pre-stored, when the relative position relationship between the microphone and the speaker changes, the adaptive filter used for echo cancellation can directly read the filter coefficient without re-convergence, thereby saving the time required by the convergence of the adaptive filter and avoiding the situation that the residual signal of the speaker in the microphone receiving signal becomes large in the convergence time.
Based on the echo cancellation method provided in the embodiment corresponding to fig. 1, this embodiment provides an echo cancellation device, referring to fig. 3, where the device includes:
a first acquisition unit 301 configured to acquire target relative position information of the microphone and the speaker at a target time;
a second obtaining unit 302, configured to obtain a target filter coefficient corresponding to the target relative position information from a pre-stored corresponding relationship, where the pre-stored corresponding relationship is a corresponding relationship between pre-stored relative position information and a filter coefficient;
the eliminating unit 303 is configured to determine an echo signal according to the target filter coefficient and the signal sent by the speaker, and eliminate the echo signal from a signal to be echo eliminated, where the echo signal is a signal received by a microphone and sent by the speaker, and the signal to be echo eliminated is a signal received by the microphone.
Optionally, the apparatus further comprises:
the determining unit is used for determining a filter coefficient when the adaptive filter converges by executing a convergence algorithm through the adaptive filter used by echo cancellation in the process of performing echo cancellation on the signal received by the loudspeaker at the moment n;
and the storage unit is used for storing the corresponding relation between the relative position information of the loudspeaker and the microphone at the moment n and the filter coefficient at the moment n.
Optionally, if the speaker rotates within a preset angle range, the target relative position information is the angle information of the speaker rotation.
Optionally, the preset angle range is divided into a plurality of angle intervals, and the pre-stored correspondence is a correspondence between an angle interval and a filter coefficient.
Optionally, the second obtaining unit is configured to:
determining a target angle interval in which the target relative position information is located;
and acquiring the target filter coefficient corresponding to the target angle interval.
Optionally, the eliminating unit is configured to:
and obtaining a residual signal by subtracting the signal to be subjected to echo cancellation and the echo signal.
Optionally, the step size of the filter for updating the filter coefficient in the convergence process is adjusted according to the power of the signal emitted by the speaker.
An embodiment of the present application further provides an intelligent device, where the device includes a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the echo cancellation method of any of the preceding embodiments according to instructions in the program code.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The system or 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, herein, relational terms such as first and second, and the like may be 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 steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing is merely a preferred embodiment of the present application and is not intended to limit the present application in any way. Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application. Those skilled in the art can now make numerous possible variations and modifications to the disclosed embodiments, or modify equivalent embodiments, using the methods and techniques disclosed above, without departing from the scope of the claimed embodiments. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present application still fall within the protection scope of the technical solution of the present application without departing from the content of the technical solution of the present application.

Claims (15)

1. A method of echo cancellation, the method comprising:
acquiring target relative position information of a microphone and a loudspeaker at a target moment;
acquiring a target filter coefficient corresponding to the target relative position information from a pre-stored corresponding relationship, wherein the pre-stored corresponding relationship is the corresponding relationship between the pre-stored relative position information and the filter coefficient;
determining an echo signal according to the target filter coefficient and the signal sent by the loudspeaker, and eliminating the echo signal from a signal to be echo eliminated, wherein the echo signal is the signal sent by the loudspeaker and received by a microphone, and the signal to be echo eliminated is the signal received by the microphone.
2. The method of claim 1, further comprising:
in the process of carrying out echo elimination on the signals received by the loudspeaker at the moment n, executing a convergence algorithm through an adaptive filter used by the echo elimination to determine a filter coefficient when the adaptive filter converges;
and storing the corresponding relation between the relative position information of the loudspeaker and the microphone at the moment n and the filter coefficient at the moment n.
3. The method of claim 1, wherein the target relative position information is angle information of the speaker rotation if the speaker rotates within a preset angle range.
4. The method according to claim 3, wherein the predetermined angular range is divided into a plurality of angular intervals, and the pre-stored correspondence is a correspondence between an angular interval and a filter coefficient.
5. The method according to claim 4, wherein the obtaining the target filter coefficient corresponding to the target relative position information from the pre-stored correspondence comprises:
determining a target angle interval in which the target relative position information is located;
and acquiring the target filter coefficient corresponding to the target angle interval.
6. The method of claim 1, wherein said canceling the echo signal from the signal to be echo cancelled comprises:
and obtaining a residual signal by subtracting the signal to be echo eliminated and the echo signal.
7. The method of claim 2, wherein the step size of the filter updating the filter coefficients during convergence is adjusted according to the power of the signal emitted by the speaker.
8. An echo cancellation device, characterized in that the device comprises:
the first acquisition unit is used for acquiring target relative position information of the microphone and the loudspeaker at a target moment;
a second obtaining unit, configured to obtain a target filter coefficient corresponding to the target relative position information from a pre-stored corresponding relationship, where the pre-stored corresponding relationship is a corresponding relationship between pre-stored relative position information and a filter coefficient;
and the eliminating unit is used for determining an echo signal according to the target filter coefficient and the signal sent by the loudspeaker, and eliminating the echo signal from a signal to be subjected to echo elimination, wherein the echo signal is the signal received by the microphone and sent by the loudspeaker, and the signal to be subjected to echo elimination is the signal received by the microphone.
9. The apparatus of claim 8, further comprising:
the determining unit is used for determining a filter coefficient when the adaptive filter converges by executing a convergence algorithm through the adaptive filter used by echo cancellation in the process of performing echo cancellation on the signal received by the loudspeaker at the moment n;
and the storage unit is used for storing the corresponding relation between the relative position information of the loudspeaker and the microphone at the moment n and the filter coefficient at the moment n.
10. The apparatus of claim 8, wherein the target relative position information is angle information of the speaker rotation if the speaker rotates within a preset angle range.
11. The apparatus according to claim 10, wherein the predetermined angle range is divided into a plurality of angle intervals, and the pre-stored correspondence is a correspondence between an angle interval and a filter coefficient.
12. The apparatus of claim 11, wherein the second obtaining unit is configured to:
determining a target angle interval in which the target relative position information is located;
and acquiring the target filter coefficient corresponding to the target angle interval.
13. The apparatus of claim 8, wherein the elimination unit is configured to:
and obtaining a residual signal by subtracting the signal to be echo eliminated and the echo signal.
14. The apparatus of claim 9, wherein the step size of the filter for updating the filter coefficients during the convergence process is adjusted according to the power of the signal emitted from the speaker.
15. An intelligent device, the device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is adapted to perform the echo cancellation method of any of claims 1-7 according to instructions in the program code.
CN201910810062.1A 2019-08-29 2019-08-29 Echo cancellation method and device Pending CN112447175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910810062.1A CN112447175A (en) 2019-08-29 2019-08-29 Echo cancellation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910810062.1A CN112447175A (en) 2019-08-29 2019-08-29 Echo cancellation method and device

Publications (1)

Publication Number Publication Date
CN112447175A true CN112447175A (en) 2021-03-05

Family

ID=74741862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910810062.1A Pending CN112447175A (en) 2019-08-29 2019-08-29 Echo cancellation method and device

Country Status (1)

Country Link
CN (1) CN112447175A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11205890A (en) * 1998-01-09 1999-07-30 Victor Co Of Japan Ltd Echo canceler
KR20010087713A (en) * 2000-03-08 2001-09-21 서평원 Table Management Method Of Adaptive Echo Cancelier In Switching System
AU2004200802A1 (en) * 1998-07-13 2004-03-25 Telefonaktiebolaget Lm Ericsson (Publ) Digital adaptive filter and acoustic echo canceller using the same
JP2007228069A (en) * 2006-02-21 2007-09-06 Yamaha Corp Sound-absorbing sound-emitting integral device
CN101803402A (en) * 2007-09-21 2010-08-11 雅马哈株式会社 Sound emission/collection device
US20100290635A1 (en) * 2009-05-14 2010-11-18 Harman International Industries, Incorporated System for active noise control with adaptive speaker selection
CN102447992A (en) * 2010-10-06 2012-05-09 奥迪康有限公司 Method of determining parameters in an adaptive audio processing algorithm and an audio processing system
JP2012109643A (en) * 2010-11-15 2012-06-07 National Institute Of Information & Communication Technology Sound reproduction system, sound reproduction device and sound reproduction method
US20140016794A1 (en) * 2012-07-13 2014-01-16 Conexant Systems, Inc. Echo cancellation system and method with multiple microphones and multiple speakers
CN104641659A (en) * 2013-08-19 2015-05-20 雅马哈株式会社 Speaker device and audio signal processing method
CN107123430A (en) * 2017-04-12 2017-09-01 广州视源电子科技股份有限公司 Echo cancel method, device, meeting flat board and computer-readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11205890A (en) * 1998-01-09 1999-07-30 Victor Co Of Japan Ltd Echo canceler
AU2004200802A1 (en) * 1998-07-13 2004-03-25 Telefonaktiebolaget Lm Ericsson (Publ) Digital adaptive filter and acoustic echo canceller using the same
KR20010087713A (en) * 2000-03-08 2001-09-21 서평원 Table Management Method Of Adaptive Echo Cancelier In Switching System
JP2007228069A (en) * 2006-02-21 2007-09-06 Yamaha Corp Sound-absorbing sound-emitting integral device
CN101803402A (en) * 2007-09-21 2010-08-11 雅马哈株式会社 Sound emission/collection device
US20100290635A1 (en) * 2009-05-14 2010-11-18 Harman International Industries, Incorporated System for active noise control with adaptive speaker selection
CN102447992A (en) * 2010-10-06 2012-05-09 奥迪康有限公司 Method of determining parameters in an adaptive audio processing algorithm and an audio processing system
JP2012109643A (en) * 2010-11-15 2012-06-07 National Institute Of Information & Communication Technology Sound reproduction system, sound reproduction device and sound reproduction method
US20140016794A1 (en) * 2012-07-13 2014-01-16 Conexant Systems, Inc. Echo cancellation system and method with multiple microphones and multiple speakers
CN104641659A (en) * 2013-08-19 2015-05-20 雅马哈株式会社 Speaker device and audio signal processing method
CN107123430A (en) * 2017-04-12 2017-09-01 广州视源电子科技股份有限公司 Echo cancel method, device, meeting flat board and computer-readable storage medium

Similar Documents

Publication Publication Date Title
US10827263B2 (en) Adaptive beamforming
US10979805B2 (en) Microphone array auto-directive adaptive wideband beamforming using orientation information from MEMS sensors
EP3375180B1 (en) Double-talk detection for acoustic echo cancellation
US9479885B1 (en) Methods and apparatuses for performing null steering of adaptive microphone array
US8712069B1 (en) Selection of system parameters based on non-acoustic sensor information
US20070273585A1 (en) Adaptive beamformer, sidelobe canceller, handsfree speech communication device
US9966086B1 (en) Signal rate synchronization for remote acoustic echo cancellation
WO2005050618A2 (en) Adaptive beamformer with robustness against uncorrelated noise
US11812237B2 (en) Cascaded adaptive interference cancellation algorithms
CN109102821B (en) Time delay estimation method, time delay estimation system, storage medium and electronic equipment
US9589572B2 (en) Stepsize determination of adaptive filter for cancelling voice portion by combining open-loop and closed-loop approaches
CN110431624B (en) Residual echo detection method, residual echo detection device, voice processing chip and electronic equipment
KR102190833B1 (en) Echo suppression
US10937418B1 (en) Echo cancellation by acoustic playback estimation
CN108156551A (en) Active noise reduction system, active noise reduction earphone and active denoising method
US20150318000A1 (en) Single MIC Detection in Beamformer and Noise Canceller for Speech Enhancement
US9510096B2 (en) Noise energy controlling in noise reduction system with two microphones
US10283106B1 (en) Noise suppression
CN112447175A (en) Echo cancellation method and device
CN109935238B (en) Echo cancellation method, device and terminal equipment
US11483646B1 (en) Beamforming using filter coefficients corresponding to virtual microphones
JP2005513874A (en) Echo canceller with spectral echo tail predictor
JP2000341658A (en) Speaker direction detecting system
EP3949440A1 (en) Dynamic speaker equalization for adaptation to room response
CN111989934A (en) Echo cancellation device, echo cancellation method, signal processing chip, and electronic apparatus

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