CN1925526A - Device and method for echo elimination - Google Patents

Device and method for echo elimination Download PDF

Info

Publication number
CN1925526A
CN1925526A CN 200510098211 CN200510098211A CN1925526A CN 1925526 A CN1925526 A CN 1925526A CN 200510098211 CN200510098211 CN 200510098211 CN 200510098211 A CN200510098211 A CN 200510098211A CN 1925526 A CN1925526 A CN 1925526A
Authority
CN
China
Prior art keywords
signal
echo signal
residual echo
main
present segment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200510098211
Other languages
Chinese (zh)
Other versions
CN100550951C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2005100982114A priority Critical patent/CN100550951C/en
Publication of CN1925526A publication Critical patent/CN1925526A/en
Application granted granted Critical
Publication of CN100550951C publication Critical patent/CN100550951C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

This invention discloses one echo remove device, which comprises self-adapting filter module, main filter module and first control module. This invention discloses one echo remove method, which comprises the following steps: process self-adaptive adjusting on current memory filter parameters according to front echo signal to get adjusted filter parameters; then processing second self-adapting adjusting on filter parameters according to front echo signal; if these two results meet preset conditions to meet current stored filtered parameter to update current memory filter parameters.

Description

A kind of echo cancelling device and method
Technical field
The present invention relates to the echo field of voice communication system, be specifically related to a kind of echo cancelling device and method.
Background technology
When making a phone call especially toll telephone, oneself the sound after we can hear from telephone receiver sometimes and postpone through a period of time, Here it is echo.Echo can make the people feel under the weather, when serious even conversation can't normally be carried out.
Echo is divided into two kinds according to its mechanism of production: electric echo and acoustic echo.As shown in Figure 1, wherein, R InThe expression remote end input signal, R OutThe remote signaling that the expression near-end receives, S InThe expression near end input signal, S OutThe near end signal that the expression far-end receives.With the far-end is example, and the mechanism of production of electric echo is as follows: far-end speech signal R InAt public switch telephone network (PSTN, when transmitting Public SwitchedTelephone Network), need to use the mixing transformation device to finish of the conversion of four lines of switch to the two wires of user side, understanding some signal in transfer process leaks on the far-end RX path from the far-end transmit path, the signal of this part " leakage " transfers back to far-end again, remote subscriber has just been heard the sound of oneself like this, Here it is electric echo.The mechanism of production of acoustic echo is as follows: the far-end speech signal R that loud speaker receives Out, through the reflection in different path or without any reflection, after being picked up by the near-end microphone, resending to far-end, remote subscriber is heard the voice of oneself as a result, Here it is acoustic echo.
Echo can be felt out to satisfy intensity and two conditions of time delay by the people: the signal that the signal that, feeds back promptly leaks or the signal of reflection should reach certain amplitude; Two, enough propagation delay times will be arranged, promptly speech range reaches certain-length.Along with development of Communication Technique, speech range is more and more longer, and the extensive use of ip voice (VOIP, Voice Over IP) in recent years more makes signal delay increase greatly, thereby echoing is also just more serious.The existence of echo has influenced communication quality, makes the communication system cisco unity malfunction when serious, and the echo that therefore must take effective measure to suppress is improved voice communication quality.
Now, use usually based on the Echo Canceller of adaptive-filtering and eliminate echo, its basic principle is as follows:
Suppose: R In, R Out, S In, S OutImplication identical with the implication of corresponding character among Fig. 1, H represents real echo path unit impulse response, G represents real near end echo signal, S represents the voice signal of near-end user, N represents the background noise of near-end, and h represents the echo path unit impulse response that sef-adapting filter estimates, and g represents the analog echo signal that sef-adapting filter estimates, e represents the residual echo signal after echo is eliminated, simultaneously as can be seen: S In=S+G+N.
With the far-end is example, for acoustic echo, and R OutBe the source signal that produces acoustic echo, G is real acoustic echo signal, and when near-end does not have voice and is S=0, S InBe approximately equal to G, therefore, the basic thought of eliminating based on the acoustic echo of adaptive-filtering is: sef-adapting filter is by making R OutApproach S InAdaptive algorithm to obtain H, when error meets the demands, obtain the echo path h of a simulation, thereby obtain analog echo signal g, last subtracter is from S InIn deduct g and just realized the acoustic echo elimination.The principle that electric echo is eliminated is the same with acoustic echo.
Since echo path H normally unknown with the time become, therefore, the effect key that echo is eliminated depends on sef-adapting filter by the adaptive algorithm simulation and the quality of following the tracks of echo path, promptly whether g can approach G well.For acoustic echo, when having only remote subscriber to speak, owing to S this moment InBe approximately equal to G, so the effect of sef-adapting filter can accept generally, but when remote subscriber and near-end user are talked (double-talk) state simultaneously, this moment S In=S+G+N is because near-end voice signals S and far-end speech signal R OutBe incoherent, therefore, then easily cause algorithm to be dispersed if sef-adapting filter is proceeded the self adaptation adjustment this moment, and it is ineffective that acoustic echo is eliminated.Same reason can make when the double-talk state, and electric echo is eliminated ineffective.In view of above reason, in based on the Echo Canceller of adaptive-filtering, usually need to add the double-talk testing mechanism, sef-adapting filter just stops the self adaptation adjustment when being in the double-talk state when detecting.
Fig. 2 is the structured flowchart that adds the echo cancelling device of double-talk mechanism in the prior art, as shown in Figure 2, this device is to increase a senior filter in based on the Echo Canceller of adaptive-filtering, it mainly comprises: sef-adapting filter 21, first subtracter 22, senior filter 23, second subtracter 24 and control module 25, and operation principle is as follows:
At first, sef-adapting filter 21 sends the request of obtaining filter factor to senior filter 23, senior filter 23 returns the filter coefficient alpha 1 of self preserving to sef-adapting filter 21 after receiving this request, after sef-adapting filter 21 is received this coefficient, be reference signal, be error signal with current echogenicity signal x (i) with the residual echo signals of the last output of first subtracter 22, according to adaptive algorithm α 1 is adjusted, write down adjusted filter coefficient alpha i, and with α iOutput to control module 25, and the adaptive modeling echo signal that estimates according to filter factor and x (i) in the adjustment process outputed to first subtracter 22,22 calculating of first subtracter are mixed with the difference of the present segment input signal d (i) and the adaptive modeling echo signal that sef-adapting filter 21 is exported of echo signal, this difference is self adaptation residual echo signal, and this self adaptation residual echo signal is outputed to control module; Simultaneously, senior filter 23 is according to the filter coefficient alpha 1 of self preserving, present segment echogenicity signal x (i) is carried out filtering to be calculated, and the main analog echo signal that will obtain outputs to second subtracter 24, second subtracter 24 calculates the difference of the main analog echo signal of d (i) and senior filter 23 outputs, this difference is main residual echo signal, and should output to control module 25 by main residual echo signal; Control module 25 is calculated the self adaptation residual echo signal that receives and the average power p0 (i) and the p1 (i) of main residual echo signal correspondence respectively, and whether judges p0 (i) less than p1 (i), if think the current double-talk state that is not in, with α iOutput to senior filter 23, senior filter 23 receives that the back is with α iUpgrade the α 1 that self preserves; Otherwise, think not to be for further processing the current double-talk of being in state.At last, the signal after control module 25 is eliminated main residual echo signal as echo outputs to far-end.
The basic process that the echo of adding double-talk mechanism is eliminated in the prior art is as follows:
01: with current echogenicity signal x (i) is reference signal, self adaptation residual echo signal with the last time is an error signal, filter coefficient alpha 1 to current preservation is carried out the self adaptation adjustment, and in the self adaptation adjustment process, obtain the adaptive modeling echo signal, calculate the current input signal d (i) of echo and the difference of this adaptive modeling echo signal of being mixed with, obtain self adaptation residual echo signal, establish and become α after α 1 adjusts iAccording to α 1, x (i) is carried out filtering calculate simultaneously, obtain main analog echo signal, calculate the difference of d (i) and this main analog echo signal then, obtain main residual echo signal.
02: the average power p0 (i) and the p1 (i) that calculate self adaptation residual echo signal and main residual echo signal correspondence respectively.
03: judge whether p0 (i)≤β p1 (i) sets up, and wherein β is a constant, if think the current double-talk state that is not in, with α iUpgrade the α 1 of current preservation; Otherwise, think to keep α 1 constant by the current double-talk of being in state.
By as can be seen above, the condition of upgrading current filter coefficient alpha 1 is: system is not in the double-talk state.Accuracy to the double-talk state-detection will directly have influence on the effect that echo is eliminated.In said system, the basis that decision-making system is not in the double-talk state is: p0 (i) is less than p1 (i).When satisfying p0 (i) less than p1 (i), system might not be in the double-talk state but in fact.This be because: in practice, in order to improve the accuracy of adaptive algorithm, usually the echogenicity signal of getting a period of time is that reference signal is carried out the self adaptation adjustment, may double-talk appear at last several points of this signal, and mistuning has appearred in the filter factor of this moment, but still satisfy p0 (i) less than p1 (i), according to above-mentioned condition, think that system is not in the double-talk state, the update condition that meets filter factor, the result has preserved the filter factor of mistuning get off.If when filter factor generation mistuning, in time do not stop the adjustment of filter factor, may make adaptive-filtering coefficient adjustment after this always tanglewrack so, so the effect that echo is eliminated can't be guaranteed.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of echo cancelling device and method, with raising double-talk status detection accuracy, thereby improves validity and the reliability that echo is eliminated.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of echo cancelling device, this device comprises: adaptive-filtering module 31, main filtration module 32 and first control module 33,
Adaptive-filtering module 31, when the present segment echogenicity signal of receiving from the outside, the filter factor that main filtration module 32 is preserved carries out a self adaptation adjustment, and will output to first control module 33 according to the preceding self adaptation residual echo signal that the last period of present segment, the echogenicity signal obtained;
Main filtration module 32 when the present segment echogenicity signal of receiving from the outside, will carry out the preceding main residual echo signal that filtering calculates to echogenicity signal the last period of present segment and output to first control module 33;
First control module 33, whether the average power of self adaptation residual echo signal and preceding main residual echo signal satisfies predetermined relationship before judging, if send for adaptive-filtering module 31 and continue the filtering triggering signal, otherwise, send the retention factor triggering signal for main filtration module 32;
Wherein, after adaptive-filtering module 31 is received and is continued the filtering triggering signal, to once adjust the back filter factor and output to main filtration module 32, and carry out the adjustment of secondary self adaptation to once adjusting the back filter factor according to present segment echogenicity signal, the existing self adaptation residual echo signal that obtains is outputed to first control module 33; Main filtration module 32 will carry out the existing main residual echo signal that filtering calculates and output to first control module 33 according to once adjusting back filter factor, present segment echogenicity signal; First control module 33 judges whether the average power of existing self adaptation residual echo signal and existing main residual echo signal satisfies predetermined relationship, if, send the update coefficients triggering signal to main filtration module 32, main filtration module 32 upgrades the filter factor of self preserving once to adjust the back filter factor, and will show main residual echo signal output; Otherwise, sending the retention factor triggering signal to main filtration module 32, main filtration module 32 will be exported according to the existing main residual echo signal that filter factor, the present segment echogenicity signal self preserved obtain.
Described adaptive-filtering module 31 comprises:
Sef-adapting filter 311 is used for obtaining filter factor to main filtration module 32 when the present segment echogenicity signal of receiving from the outside; When receiving the filter factor of main filtration module 32 outputs, be reference signal, be error signal with echogenicity signal the last period with the self adaptation residual echo signals of first subtracter, 312 the last outputs from the present segment of outside, this filter factor is carried out a self adaptation adjustment, according to the filter factor in the self adaptation adjustment process echogenicity signal the last period of present segment being carried out filtering calculates, obtain the analog echo signal, this analog echo signal and preceding adaptive echo sign are outputed to first subtracter 312; Be used for after receiving the continuation filtering triggering signal of first control module 33, with present segment echogenicity signal is reference signal, preceding self adaptation residual echo signal with the 312 the last outputs of first subtracter is an error signal, adjusted filter factor is once carried out the adjustment of secondary self adaptation, according to the filter factor in this self adaptation adjustment process present segment echogenicity signal being carried out filtering calculates, obtain the analog echo signal, this analog echo signal and existing adaptive echo sign are outputed to first subtracter 312;
First subtracter 312, before receiving being designated of sef-adapting filter 311 output during the analog echo signal of adaptive echo, self adaptation residual echo signal before the difference from the input signal that is mixed with echo the last period of the present segment of outside and this analog echo signal that calculating receives obtains, should before self adaptation residual echo signal output to sef-adapting filter 311, and should before self adaptation residual echo signal and preceding self adaptation residual echo identify and output to first control module 33; When receive sef-adapting filter 311 output be designated the analog echo signal of existing adaptive echo the time, what calculating received obtains existing self adaptation residual echo signal from the present segment input signal that is mixed with echo signal of outside and the difference of this analog echo signal, should output to sef-adapting filter 311 by existing self adaptation residual echo signal, and will show self adaptation residual echo signal and existing self adaptation residual echo sign outputs to first control module 33.
Described main filtration module 32 comprises:
Senior filter 321, be used for providing filter factor to adaptive-filtering module 31, and according to this filter factor echogenicity signal the last period from the present segment of outside is carried out filtering and calculate, obtain the analog echo signal, this analog echo signal and preceding main echo sign are outputed to second subtracter 322; Be used for behind filter factor after the once adjustment of receiving 31 outputs of adaptive-filtering module, according to this coefficient the present segment echogenicity signal from the outside being carried out filtering calculates, obtain the analog echo signal, this analog echo signal and existing main echo sign are outputed to second subtracter 322; Then, when receiving the update coefficients triggering signal of first control module, 33 outputs, the back filter factor of once adjusting with 31 outputs of adaptive-filtering module upgrades the filter factor of self preserving, and sends the existing main residual echo triggering signal of output for second subtracter 322; When receiving the retention factor triggering signal of first control module, 33 outputs, according to the filter factor of self preserving, present segment echogenicity signal is carried out filtering again calculate, analog echo signal and the existing main residual echo sign of renewal that obtains outputed to second subtracter 322;
Second subtracter 322, before receiving being designated of senior filter 321 output during the analog echo signal of main echo, main residual echo signal before the difference from the input signal that is mixed with echo the last period of the present segment of outside and this analog echo signal that calculating is received obtains, and should before main residual echo signal and preceding main residual echo identify and output to first control module 33; When receive senior filter 321 output be designated the analog echo signal of existing main echo the time, the present segment from the outside that calculating receives is mixed with the input signal of echo and the difference of this analog echo signal obtains now main residual echo signal, and will show main residual echo signal and existing main residual echo sign outputs to first control module 33, and when the existing main residual echo triggering signal of the output that receives senior filter 321, will show main residual echo signal output; When receive senior filter 321 output be designated the analog echo signal that upgrades existing main residual echo the time, the present segment that calculating receives is mixed with the difference of the input signal and the analog echo signal of echo, upgrade existing main residual echo signal with this difference, and should existing main residual echo signal output.
Described device further comprises:
Backup filtration module 34 is used for according to the filter factor of self preserving present segment echogenicity signal being carried out filtering and calculates, and the backup residual echo signal that obtains is outputed to second control module 35 and comparison module 36; Be used for when receiving the filter factor of second control module, 35 outputs, upgrading the filter factor of self preserving with this filter factor;
Second control module 35, be used for calculating respectively the average power of the existing main residual echo signal and the backup residual echo signal that backup filtration module 34 is exported of main filtration module 32 outputs that receive, when this two average power satisfied predetermined relationship, the filter factor of main filtration module 32 outputs that then will receive outputed to backup filtration module 34;
Comparison module 36 is used for the size of the backup residual echo signal of the main residual echo signal of more main filtration module 32 outputs and 34 outputs of backup filtration module, the signal output after signal less in the two is eliminated as echo;
Main filtration module 32 is further used for, and when receiving the update coefficients triggering signal of first control module 33, will show main residual echo signal and output to second control module 35 and comparison module 36; When receiving the retention factor triggering signal of first control module 33, the coefficient that will preserve according to self carries out the existing main residual echo signal that filtering obtains to present segment echogenicity signal and outputs to second control module 35 and comparison module 36.
Described backup filtration module 34 comprises:
Backup filter 341 is used for according to the filter factor of self preserving the present segment echogenicity signal from the outside being carried out filtering and calculates, and the analog echo signal that obtains is outputed to the 3rd subtracter 342; Be used for when receiving the filter factor of second control module, 35 outputs, upgrading the filter factor of self preserving with this filter factor;
The 3rd subtracter 342, be used to calculate the difference that present segment from the outside is mixed with the analog echo signal of the input signal of echo and 341 outputs of backup filter and obtain backing up the residual echo signal, should back up the residual echo signal and output to second control module 35 and comparison module 36.
A kind of echo cancel method, this method comprises:
A, according to the main filter factor of current preservation, present segment the last period the echogenicity signal and the input signal that is mixed with echo the last period of present segment obtain before main residual echo signal; While is according to echogenicity signal the last period of present segment, main filter factor to current preservation carries out a self adaptation adjustment, according to the filter factor in the self adaptation adjustment process, present segment the last period the echogenicity signal and the input signal that is mixed with echo the last period of present segment obtain before self adaptation residual echo signal, and the once adjusted filter factor of record;
Whether the average power of main residual echo signal and the average power of preceding self adaptation residual echo signal satisfy predetermined relationship before B, the judgement, if, execution in step C; Otherwise, execution in step D.
C, the input signal that is mixed with echo according to once adjusted filter factor, present segment echogenicity signal and present segment in the steps A obtain now main residual echo signal; Simultaneously according to present segment echogenicity signal, this is once adjusted the back filter factor carry out the adjustment of secondary self adaptation, the input signal that is mixed with echo according to the filter factor in this secondary adjustment process, present segment echogenicity signal and present segment obtains existing self adaptation residual echo signal, judge whether the average power of existing main residual echo signal and the average power of existing self adaptation residual echo signal satisfy predetermined relationship, if, once to adjust the main filter factor of the current preservation among the filter factor step of updating A of back, execution in step E then in the steps A; Otherwise, execution in step D;
D, according to the main filter factor of current preservation, the input signal that present segment echogenicity signal and present segment are mixed with echo obtains now main residual echo signal;
E, will show the signal after main residual echo signal is eliminated as echo.
The described main filter factor of steps A, present segment according to current preservation the last period the echogenicity signal and the input signal that is mixed with echo the last period of present segment obtain before the step of main residual echo signal comprise:
According to the main filter factor of current preservation, echogenicity signal the last period of present segment is carried out filtering calculate, obtain the analog echo signal, the input signal that is mixed with echo the last period of present segment is deducted this analog echo signal, main residual echo signal before obtaining;
Steps A described according to the filter factor in the self adaptation adjustment process, present segment the last period the echogenicity signal and the input signal that is mixed with echo the last period of present segment obtain before the step of self adaptation residual echo signal be:
According to the filter factor in the self adaptation adjustment process, echogenicity signal the last period to present segment carries out filtering calculating, obtain the analog echo signal, the input signal that is mixed with echo the last period of present segment is deducted this analog echo signal, self adaptation residual echo signal before obtaining;
The step that the described input signal that is mixed with echo according to once adjusted filter factor, present segment echogenicity signal and present segment in the steps A of step C obtains now main residual echo signal is:
According to the once adjusted filter factor in the steps A, present segment echogenicity signal is carried out filtering calculate, obtain the analog echo signal, the input signal that present segment is mixed with echo deducts this analog echo signal, obtains now main residual echo signal;
The step that the described input signal that is mixed with echo according to the filter factor in the self adaptation adjustment process, present segment echogenicity signal and present segment of step C obtains existing self adaptation residual echo signal is:
According to the filter factor in the self adaptation adjustment process, present segment echogenicity signal is carried out filtering calculate, obtain the analog echo signal, the input signal that present segment is mixed with echo deducts this analog echo signal, obtains existing self adaptation residual echo signal.
The current backup filter factor of preserving, and, further comprise after the described step D, before the step e:
The backup filter factor of D1, this current preservation of basis carries out filtering to present segment echogenicity signal and calculates, obtain the analog echo signal, the input signal that present segment is mixed with echo deducts this analog echo signal and obtains backing up the residual echo signal, and calculates the average power of this backup residual echo signal correspondence; Judge whether continuously certain number of times satisfies predetermined relationship for the average power of backup residual echo signal and the average power of existing main residual echo signal, if, upgrade the backup filter factor of this current preservation, execution in step D2 then with adjusted filter factor in the steps A; Otherwise, direct execution in step D2;
Whether D2, judgement back up the residual echo signal less than existing main residual echo signal, if, with the existing main residual echo signal of backup residual echo signal update; Otherwise, keep existing main residual echo signal constant.
The predetermined relationship that the average power of the average power of the described backup residual echo of step D1 signal and existing main residual echo signal satisfies is: the average power of existing main residual echo signal and the product of predetermined constant are less than or equal to the average power of backup residual echo signal.
The predetermined relationship that the average power of the average power of self adaptation residual echo signal and preceding main residual echo signal need satisfy before step B was described is: the average power of main residual echo signal and the product of predetermined constant before the average power of preceding self adaptation residual echo signal is less than or equal to;
The predetermined relationship that the average power of the described existing self adaptation residual echo signal of step C and the average power of existing main residual echo signal satisfy is: the average power of existing self adaptation residual echo signal is less than or equal to the product of the average power and the predetermined constant of now main residual echo signal.
Compared with prior art, main filtration module is according to the filter factor of current preservation, present segment the last period the echogenicity signal and the input signal that is mixed with echo the last period of present segment obtain before main residual echo, the adaptive-filtering module is a reference signal with echogenicity signal the last period of present segment simultaneously, the filter factor of current preservation is carried out a self adaptation adjustment obtain once adjusted filter factor, and according to the filter factor in the self adaptation adjustment process, present segment the last period the echogenicity signal and the input signal that is mixed with echo the last period of present segment obtain before self adaptation residual echo signal, after the average power of preceding main residual echo signal and preceding self adaptation residual echo signal satisfies predetermined condition, main filtration module is again according to adjusted filter factor once, the input signal that present segment echogenicity signal and present segment are mixed with echo obtains now main residual echo signal, the adaptive-filtering module is a reference signal with present segment echogenicity signal simultaneously, adjusted filter factor is once carried out the adjustment of secondary self adaptation, obtain the adjusted filter factor of secondary, and according to the filter factor in the self adaptation adjustment process, the input signal that present segment echogenicity signal and present segment are mixed with echo obtains now main residual echo signal, if the average power of existing main residual echo signal and existing self adaptation residual echo signal still satisfies predetermined condition, then upgrade the filter factor of current preservation with adjusted filter factor once.The present invention passes through the further checking to the predetermined condition of update coefficients, has guaranteed the reliability of the filter factor of preservation, thereby has guaranteed the effect that echo is eliminated.Simultaneously, filter factor must continue certain number of times and satisfy predetermined relationship, could finally further be preserved, guaranteed the accuracy of the filter factor preserved more, and will show less signal after eliminating as echo in main residual echo signal and the backup residual echo signal, further guarantee the reliability that echo is eliminated.
Description of drawings
Fig. 1 is an echo mechanism of production schematic diagram;
Fig. 2 is the structured flowchart that adds the Echo Canceller of double-talk testing mechanism in the prior art;
Fig. 3 is the structured flowchart of the specific embodiment one of realization echo provided by the invention elimination;
Fig. 4 is the structured flowchart of the specific embodiment two of realization echo provided by the invention elimination;
Fig. 5 is the structured flowchart of the specific embodiment three of realization echo provided by the invention elimination;
Fig. 6 is the structured flowchart of the specific embodiment four of realization echo provided by the invention elimination;
Fig. 7 is the flow chart of the specific embodiment one of realization echo provided by the invention elimination;
Fig. 8 is the flow chart of the specific embodiment two of realization echo provided by the invention elimination.
Embodiment
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
Fig. 3 is the structured flowchart of the specific embodiment one of echo cancelling device provided by the invention, and the x among the figure (i) is echogenic signal, is called the echogenicity signal, i.e. the signal from far-end of near-end reception; G (i) is an echo signal; V (i) is a voice signal, and promptly near-end will send to the voice signal of far-end; D (n) is the voice signal that is mixed with echo, i.e. d (i)=v (i)+g (i), as can be seen, and when v (i)=0, d (i)=g (i), as shown in Figure 3, it mainly comprises:
Adaptive-filtering module 31: be used for when the present segment echogenicity signal x (i) that receives from the outside, preserve x (i), and to main filtration module 32 transmission request coefficient triggering signals, when receiving the filter coefficient alpha 1 of main filtration module 32 outputs, according to echogenicity signal x the last period (i-1) that has preserved α 1 is carried out a self adaptation adjustment from the present segment of outside, obtain preceding adaptive modeling echo signal according to the filter factor in x (i-1) and the self adaptation adjustment process, self adaptation residual echo signal before obtaining according to this analog echo signal with from the input signal d (i-1) that is mixed with echo the last period of the present segment of outside then, and preceding self adaptation residual echo signal and preceding self adaptation residual echo sign 00 outputed to first control module 33, establish α 1 and after adjusting, become α I-1
When receiving the continuation filtering triggering signal 0 of first control module 33, with α I-1Output to main filtration module 32, and according to present segment echogenicity signal x (i), to the filter coefficient alpha of record I-1Carry out the adjustment of secondary self adaptation, and obtain existing adaptive modeling echo signal according to the filter factor in x (i) and the self adaptation adjustment process, obtain existing self adaptation residual echo signal according to this analog echo signal with from the input signal d (i) that the present segment of outside is mixed with echo, and should output to first control module 33 with existing self adaptation residual echo sign 01 by existing self adaptation residual echo signal, establish α I-1After adjusting, become α i
The concrete length of every segment signal can be determined according to actual needs, but should satisfy: the adaptive-filtering module is identical with the length of every segment signal that main filtration module is provided with.
Main filtration module 32: after the request coefficient triggering signal that receives adaptive-filtering module 31, the filter coefficient alpha 1 of self preserving is outputed to adaptive-filtering module 31;
When the present segment echogenicity signal x (i) that receives from the outside, preserve x (i), and carry out filtering according to signal x the last period (i-1) that 1 pair of the filter coefficient alpha that self preserves has been preserved and calculate from the present segment of outside, main analog echo signal before obtaining, main residual echo signal before obtaining according to this analog echo signal and d (i-1) then, and should before main residual echo signal and preceding main residual echo identify 10 and output to first control module 33;
Be used to be received from the filter coefficient alpha of adaptive filtering module output I-1, and according to α I-1The present segment echogenicity signal x (i) from the outside that receives and preserve is carried out filtering to be calculated, obtain now main analog echo signal, obtain now main residual echo signal according to this analog echo signal and d (i) then, and should output to first control module 33 with existing main residual echo sign 11 by existing main residual echo signal;
When receiving the update coefficients triggering signal 0 of first control module, 33 outputs, with the filter coefficient alpha of adaptive-filtering module 31 outputs I-1Upgrade the filter coefficient alpha 1 of self preserving, and the signal that will show after main residual echo signal is eliminated as echo outputs to far-end or near-end;
When receiving the retention factor triggering signal 1 of first control module, 33 outputs, carrying out filtering according to 1 pair of present segment echogenicity of the filter coefficient alpha signal x (i) that self preserves calculates, obtain new existing main analog echo signal, obtain new existing main residual echo signal according to this analog echo signal and d (i) then, and the signal that will be somebody's turn to do after new existing main residual echo signal is eliminated as echo with the existing main residual echo sign 12 of renewal outputs to far-end.
First control module 33: be used for calculating respectively the preceding self adaptation residual echo signal of adaptive-filtering module 31 outputs and the average power p0 (i-1) and the p1 (i-1) of the preceding main residual echo signal that main filtration module 32 is exported, if p0 (i-1) and p1 (i-1) satisfy predetermined relationship, send for adaptive-filtering module 31 and continue filtering triggering signal 0, otherwise, send retention factor triggering signal 1 for main filtration module 32; Be used for calculating respectively the existing self adaptation residual echo signal of adaptive-filtering module 31 outputs and the average power p0 (i) and the p1 (i) of the existing main residual echo signal that main filtration module 32 is exported, if p0 (i) and p1 (i) satisfy predetermined relationship, send update coefficients triggering signal 0 for main filtration module 32; Otherwise, send retention factor triggering signal 1 for main filtration module 32.
Fig. 4 is the structured flowchart of the specific embodiment two of echo cancelling device provided by the invention, and as shown in Figure 4, this figure compares with Fig. 3,
Adaptive-filtering module 31 comprises:
Sef-adapting filter 311:
One, when the present segment echogenicity signal x (i) that receives from the outside, preserves x (i), and send request coefficient triggering signals to senior filter 321;
Two, when receiving the filter coefficient alpha 1 of senior filter 321 outputs, be reference signal, be error signal with echogenicity signal x the last period (i-1) that has preserved with the self adaptation residual echo signals of first subtracter, 312 the last outputs from the present segment of outside, α 1 is carried out a self adaptation adjustment, go out preceding adaptive modeling echo signal according to the filter coefficient estimation in x (i-1) and the self adaptation adjustment process, this analog echo signal and preceding adaptive echo sign 00 are outputed to first subtracter 312, establish α 1 and after adjusting, become α I-1
Three, after the continuation filtering triggering signal 0 that receives first control module 33, with α I-1Outputing to senior filter 321, and be reference signal with present segment echogenicity signal x (i), is error signal with the preceding self adaptation residual echo signals of first subtracter, the 312 the last outputs that receive, to α I-1Carry out the adjustment of secondary self adaptation, the adaptive modeling echo signal occurs, this analog echo signal and existing adaptive echo sign 01 are outputed to first subtracter 312, establish α according to the filter coefficient estimation in x (i) and the self adaptation adjustment process I-1After adjusting, become α i
First subtracter 312:
One, when receive sef-adapting filter 311 output be designated 00 preceding adaptive modeling echo signal the time, calculating receive from the input signal d (i-1) that is mixed with echo the last period of the present segment of outside and the difference of this analog echo signal, this difference is preceding self adaptation residual echo signal, should before self adaptation residual echo signal output to sef-adapting filter 311, and should before self adaptation residual echo signal and preceding self adaptation residual echo identify 00 and output to first control module 33;
Two, when receive sef-adapting filter 311 output be designated 01 existing adaptive modeling echo signal the time, the present segment from the outside that calculating receives is mixed with the input signal d (i) of echo and the difference of this analog echo signal, this difference is existing self adaptation residual echo signal, should output to sef-adapting filter 311 by existing self adaptation residual echo signal, and should output to first control module 33 with existing self adaptation residual echo sign 01 by existing self adaptation residual echo signal.
Main filtration module 32 comprises:
Senior filter 321:
One, when receiving the request coefficient triggering signal of sef-adapting filter 311, the filter coefficient alpha 1 of self preserving is outputed to sef-adapting filter 311;
Two, when the present segment echogenicity signal x (i) that receives from the outside, preserve x (i), and carry out filtering according to echogenicity signal x the last period (i-1) from the present segment of outside that 1 pair of the filter coefficient alpha that self preserves has been preserved and calculate, preceding main analog echo signal and the preceding main echo sign 10 that obtains outputed to second subtracter 322;
Three, be used to receive and preserve the filter coefficient alpha of sef-adapting filter 311 outputs I-1, according to this filter factor the present segment echogenicity signal x (i) from the outside that receives and preserve is carried out filtering and calculate, existing main analog echo signal and the existing main echo sign 11 that obtains outputed to second subtracter 322; And when receiving the update coefficients triggering signal 0 of first control module, 33 outputs, with filter coefficient alpha I-1Upgrade the filter coefficient alpha 1 of self preserving, and send the existing main residual echo triggering signal 0 of output for second subtracter 322.
Four, when receiving the retention factor triggering signal 1 of first control module, 33 outputs, according to the filter coefficient alpha 1 of self preserving, present segment echogenicity signal x (i) is carried out filtering calculate, new existing main analog echo signal and the existing main residual echo sign 12 of renewal that obtains outputed to second subtracter 322.
Second subtracter 322:
One, when receive senior filter 321 output be designated 10 preceding main analog echo signal the time, calculating receive from the input signal d (i-1) that is mixed with echo the last period of the present segment of outside and the difference of this analog echo signal, this difference is preceding main residual echo signal, and should before main residual echo signal and preceding main residual echo sign 10 output to first control module 33;
Two, when receive senior filter 321 output be designated 11 existing main analog echo signal the time, the present segment from the outside that calculating receives is mixed with the input signal d (i) of echo and the difference of this analog echo signal, this difference is now main residual echo signal, and should output to first control module 33 with existing main residual echo sign 11 by existing main residual echo signal, and when the existing main residual echo triggering signal 0 of the output that receives senior filter 321, the signal after existing main residual echo signal eliminated as echo outputs to far-end.
Three, when receive senior filter 321 output be designated 12 new existing main analog echo signal the time, the present segment that calculating receives is mixed with the input signal d (i) of echo and the difference of this analog echo signal, this difference is new existing main residual echo signal, and the signal that will be somebody's turn to do after new existing main residual echo signal is eliminated as echo outputs to far-end.
First control module 33: be used for calculating respectively the preceding self adaptation residual echo signal of first subtracter, 312 outputs that receive and the average power p0 (i-1) and the p1 (i-1) of the preceding main residual echo signal that second subtracter 322 is exported, and judge whether p0 (i-1) and p1 (i-1) satisfy predetermined relationship, if send for sef-adapting filter 311 and continue the filtering triggering signal; Otherwise, send retention factor triggering signal 1 for senior filter 321; Be used for calculating respectively the existing self adaptation residual echo signal of first subtracter, 312 outputs that receive and the average power p0 (i) and the p1 (i) of the existing main residual echo signal correspondence that second subtracter 322 is exported, and judge whether p0 (i) and p1 (i) satisfy predetermined relationship, if send update coefficients triggering signal 0 for senior filter 321; Otherwise, send retention factor triggering signal 1 for senior filter 321.
Fig. 5 is the structured flowchart of the specific embodiment three of echo cancelling device provided by the invention, and as shown in Figure 5, this figure compares with Fig. 3, further comprises:
Backup filtration module 34: be used for when receiving the filter coefficient alpha 1 of second control module, 35 outputs, upgrading the filter coefficient alpha 2 of self preserving with α 1; Being used for carrying out filtering according to the present segment echogenicity signal x (i) from the outside that 2 couples of α have received calculates, obtain backing up the analog echo signal, obtain backing up the residual echo signal according to this analog echo signal with from the d (i) of outside, should back up the residual echo signal and output to second control module 35 and comparison module 36.
The length of every segment signal that the backup filtration module is provided with is identical with main filtration module with the adaptive-filtering module.
Second control module 35: the filter coefficient alpha 1 that is used to receive main filtration module 32 outputs, calculate the existing main residual echo signal of main filtration module 32 outputs that receive and the average power p1 (i) and the p2 (i) of the backup residual echo signal correspondence that backup filtration module 34 is exported respectively, when p1 (i) and p2 (i) continuous N time satisfy predetermined relationship, then filter coefficient alpha 1 is outputed to backup filtration module 34.
Here, M is predefined value.
Comparison module 36: be used for the size of the main residual echo signal and the backup residual echo signal that backup filtration module 34 is exported of more main filtration module 32 outputs, the signal after signal less in the two is eliminated as echo outputs to far-end.
Simultaneously, main filtration module 32 is further used for:
One, when receiving the update coefficients triggering signal 0 of first control module 33, will show main residual echo signal and output to second control module 35 and comparison module 36.
Two, when receiving the retention factor triggering signal 1 of first control module 33, newly existing main residual echo signal is outputed to second control module 35 and comparison module 36.
Fig. 6 is the structured flowchart of the specific embodiment four of echo cancelling device provided by the invention, and as shown in Figure 6, the adaptive-filtering module 31 of this figure, main filtration module 32, first control module 33 are identical with Fig. 4, compare with Fig. 5,
Backup filtration module 34 comprises:
Backup filter 341: be used for when receiving the filter coefficient alpha 1 of second control module, 35 outputs, upgrading the filter coefficient alpha 2 of self preserving with α 1; Be used for carrying out filtering and calculate, obtain backing up the analog echo signal, this analog echo signal is outputed to the 3rd subtracter 342 according to 2 couples of present segment echogenicity signal x (i) of α from the outside.
The 3rd subtracter 342: be used to calculate the difference that is mixed with the input signal d (i) and the backup analog echo signal that backup filter 341 is exported of echo from the present segment of outside, this difference is backup residual echo signal, should back up the residual echo signal and output to second control module 35 and comparison module 36.
Fig. 7 is the flow chart of the specific embodiment one of realization echo provided by the invention elimination, and as shown in Figure 7, its concrete steps are as follows:
701: echogenicity signal x the last period (i-1) with present segment is a reference signal, self adaptation residual echo signal with the last time is an error signal, filter coefficient alpha 1 to current preservation is carried out a self adaptation adjustment, obtain preceding adaptive modeling echo signal according to filter factor in the self adaptation adjustment process and x (i-1), the difference of calculating d (i-1) and this analog echo signal obtains preceding self adaptation residual echo signal, and establish after the self adaptation adjustment finishes, α 1 becomes α I-1According to α 1, x (i-1) is carried out filtering calculate simultaneously, main analog echo signal before obtaining calculates the input signal d (i-1) that is mixed with echo the last period of present segment and the difference of this analog echo signal then, main residual echo signal before obtaining.
The concrete length of every segment signal can set in advance according to actual needs.
702: the average power p0 (i-1) and the p1 (i-1) of self adaptation residual echo signal and preceding main residual echo signal correspondence before calculating respectively.
703: judge whether p0 (i-1)≤β 1p1 (i-1) sets up, and wherein, β 1 is a constant, if, execution in step 704; Otherwise, execution in step 708.
Step 704: with present segment echogenicity signal x (i) is reference signal, is error signal with the self adaptation residual echo signal of the last time, to α I-1Carry out the adjustment of secondary self adaptation, obtain existing adaptive modeling echo signal according to filter factor in the self adaptation adjustment process and x (i), the difference of calculating d (i) and this analog echo signal obtains existing self adaptation residual echo signal.After if the self adaptation adjustment finishes, α I-1Become α iSimultaneously according to filter coefficient alpha I-1, x (i) is carried out filtering calculate, obtain now main analog echo signal, calculate present segment then and be mixed with the input signal d (i) of echo and the difference of this analog echo signal, obtain now main residual echo signal.
705: the average power p0 (i) and the p1 (i) that calculate existing self adaptation residual echo signal and existing main residual echo signal correspondence respectively.
706: judge whether p0 (i)≤β 2p1 (i) sets up, and wherein, β 2 is a constant, if judge the current double-talk state that is not in, execution in step 707; Otherwise, execution in step 708.
707: with α I-1Upgrade the α 1 of current preservation, and will show the signal after main residual echo signal is eliminated as echo, this flow process finishes.
708: again x (i) is carried out filtering according to filter coefficient alpha 1 and calculate, obtain newly existing main analog echo signal, the difference of calculating d (i) and this analog echo signal obtains new existing main residual echo signal, the signal after this newly existing main residual echo signal is eliminated as echo.
As can be seen from the above step, after judging that p0 (i-1)≤β 1p1 (i-1) sets up, not immediately with α I-1Upgrade the filter coefficient alpha 1 of current preservation, this be because: only can not whether be in the double-talk state by full confirmation x (i-1), at this moment might be in the double-talk state but still satisfy p0 (i-1)≤β 1p1 (i-1) at last several points of x (i-1) according to p0 (i-1)≤β 1p1 (i-1).Therefore, continue α according to x (i) here I-1Carry out the self adaptation adjustment, by judging whether p0 (i)≤β 2p1 (i) sets up, confirm further whether x (i-1) is not in the double-talk state then.Owing to carried out back check, can reduce the probability that mistake is preserved filter factor effectively.
The method that provides from Fig. 7 as can be seen, the present invention has carried out further checking before the filter factor that upgrades current preservation, can reduce the probability that the filter factor mistake is preserved like this.Reasoning according to this can be learnt: if further the filter factor that satisfies update condition is verified, can further reduce the probability that the filter factor mistake is preserved so.With Fig. 8 is that example specifies this process, and Fig. 8 compares with Fig. 7:
Step 801~802 are identical with step 701~702.
Step 803 is: judge whether p0 (i-1)≤β 1p1 (i-1) sets up, if, execution in step 804; Otherwise, execution in step 808.
Step 804~805 are identical with step 704~705.
Step 806 is: judge whether p0 (i)≤β 2p1 (i) sets up, if judge the current double-talk state that is not in, execution in step 807; Otherwise, execution in step 808.
Step 807 with the difference of step 707 is: will not show the signal after main residual echo signal is eliminated as echo, but go to step 810.
Step 808 with the difference of step 708 is: after calculating new existing main residual echo signal, signal after it not being eliminated as echo, but replace existing main residual echo signal with this newly existing main residual echo signal, and calculate its corresponding average power p1 (i), go to step 810 then.
809: according to the filter coefficient alpha 2 of current preservation, present segment echogenicity signal x (i) is carried out filtering to be calculated, obtain backing up the analog echo signal, and the difference of calculating d (i) and this analog echo signal obtains backing up the residual echo signal, calculates the average power P2 (i) of this backup residual echo signal correspondence then.
Step 809 and step 801~808 can be carried out simultaneously.
810: judge whether γ p1 (i)<p2 (i) sets up, and wherein, γ is a constant, if, execution in step 812; Otherwise, execution in step 811.
811: make m=0, execution in step 815 then.
M is used for the number of times that inequality γ p1 (the i)<p2 (i) of markers step 810 sets up continuously.
812: write down the number of times m that this inequality is set up continuously.
When calculating the number of times of the continuous establishment of this inequality, to judge at first whether the last inequality is set up, if, continue the number of times that the inquiry inequality has been set up, this number of times is added 1 just obtain m; Otherwise, m=1.Preserve the value of m and the sign whether inequality is set up, use when inquiring about in order to next time.
813: judge whether m<M sets up, if, execution in step 815; Otherwise, execution in step 814.
M is predefined integer.
814: make m=0, upgrade α 2 with filter coefficient alpha 1 simultaneously.
815: whether judge p1 (i) less than p2 (i), if, execution in step 816; Otherwise, execution in step 817.
816: will show the signal after main residual echo signal is eliminated as echo, this flow process finishes.
817: will back up the signal after the residual echo signal is eliminated as echo.
By above step 810~817 as can be seen, only when continuing to satisfy for M time predetermined condition γ p1 (i)<p2 (i), could upgrade α 2 with filter coefficient alpha 1, this has further reduced the probability that α 2 mistakes are preserved, to show less signal after eliminating as echo in main residual echo signal and the backup residual echo signal simultaneously, further guarantee the effect that echo is eliminated.
The present invention can be applicable to the electric echo elimination and acoustic echo is eliminated.
The above only is process of the present invention and method embodiment, in order to restriction the present invention, all any modifications of being made within the spirit and principles in the present invention, is not equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1, a kind of echo cancelling device is characterized in that, this device comprises: adaptive-filtering module (31), main filtration module (32) and first control module (33),
Adaptive-filtering module (31), when the present segment echogenicity signal of receiving from the outside, the filter factor that main filtration module (32) is preserved carries out a self adaptation adjustment, and will output to first control module (33) according to the preceding self adaptation residual echo signal that the last period of present segment, the echogenicity signal obtained;
Main filtration module (32) when the present segment echogenicity signal of receiving from the outside, will carry out the preceding main residual echo signal that filtering calculates to echogenicity signal the last period of present segment and output to first control module (33);
First control module (33), whether the average power of self adaptation residual echo signal and preceding main residual echo signal satisfies predetermined relationship before judging, if send for adaptive-filtering module (31) and continue the filtering triggering signal, otherwise, send the retention factor triggering signal for main filtration module (32);
Wherein, after adaptive-filtering module (31) is received and is continued the filtering triggering signal, to once adjust the back filter factor and output to main filtration module (32), and carry out the adjustment of secondary self adaptation to once adjusting the back filter factor according to present segment echogenicity signal, the existing self adaptation residual echo signal that obtains is outputed to first control module (33); Main filtration module (32) will carry out the existing main residual echo signal that filtering calculates and output to first control module (33) according to once adjusting back filter factor, present segment echogenicity signal; First control module (33) judges whether the average power of existing self adaptation residual echo signal and existing main residual echo signal satisfies predetermined relationship, if, send the update coefficients triggering signal to main filtration module (32), main filtration module (32) upgrades the filter factor of self preserving once to adjust the back filter factor, and will show main residual echo signal output; Otherwise, sending the retention factor triggering signal to main filtration module (32), main filtration module (32) will be exported according to the existing main residual echo signal that filter factor, the present segment echogenicity signal self preserved obtain.
2, device as claimed in claim 1 is characterized in that, described adaptive-filtering module (31) comprising:
Sef-adapting filter (311) is used for obtaining filter factor to main filtration module (32) when the present segment echogenicity signal of receiving from the outside; When receiving the filter factor of main filtration module (32) output, be reference signal, be error signal with echogenicity signal the last period with the self adaptation residual echo signal of the last output of first subtracter (312) from the present segment of outside, this filter factor is carried out a self adaptation adjustment, according to the filter factor in the self adaptation adjustment process echogenicity signal the last period of present segment being carried out filtering calculates, obtain the analog echo signal, this analog echo signal and preceding adaptive echo sign are outputed to first subtracter (312); Be used for after receiving the continuation filtering triggering signal of first control module (33), with present segment echogenicity signal is reference signal, preceding self adaptation residual echo signal with the last output of first subtracter (312) is an error signal, adjusted filter factor is once carried out the adjustment of secondary self adaptation, according to the filter factor in this self adaptation adjustment process present segment echogenicity signal being carried out filtering calculates, obtain the analog echo signal, this analog echo signal and existing adaptive echo sign are outputed to first subtracter (312);
First subtracter (312), before receiving being designated of sef-adapting filter (311) output during the analog echo signal of adaptive echo, self adaptation residual echo signal before the difference from the input signal that is mixed with echo the last period of the present segment of outside and this analog echo signal that calculating receives obtains, should before self adaptation residual echo signal output to sef-adapting filter (311), and should before self adaptation residual echo signal and preceding self adaptation residual echo identify and output to first control module (33); When receive sef-adapting filter (311) output be designated the analog echo signal of existing adaptive echo the time, what calculating received obtains existing self adaptation residual echo signal from the present segment input signal that is mixed with echo signal of outside and the difference of this analog echo signal, should output to sef-adapting filter (311) by existing self adaptation residual echo signal, and will show self adaptation residual echo signal and existing self adaptation residual echo sign outputs to first control module (33).
3, device as claimed in claim 1 is characterized in that, described main filtration module (32) comprising:
Senior filter (321), be used for providing filter factor to adaptive-filtering module (31), and according to this filter factor echogenicity signal the last period from the present segment of outside is carried out filtering and calculate, obtain the analog echo signal, this analog echo signal and preceding main echo sign are outputed to second subtracter (322); Be used for behind filter factor after the once adjustment of receiving adaptive-filtering module (31) output, according to this coefficient the present segment echogenicity signal from the outside being carried out filtering calculates, obtain the analog echo signal, this analog echo signal and existing main echo sign are outputed to second subtracter (322); Then, when receiving the update coefficients triggering signal of first control module (33) output, the back filter factor of once adjusting with adaptive-filtering module (31) output upgrades the filter factor of self preserving, and sends the existing main residual echo triggering signal of output for second subtracter (322); When receiving the retention factor triggering signal of first control module (33) output, according to the filter factor of self preserving, present segment echogenicity signal is carried out filtering again calculate, analog echo signal and the existing main residual echo sign of renewal that obtains outputed to second subtracter (322);
Second subtracter (322), before receiving being designated of senior filter (321) output during the analog echo signal of main echo, main residual echo signal before the difference from the input signal that is mixed with echo the last period of the present segment of outside and this analog echo signal that calculating is received obtains, and should before main residual echo signal and preceding main residual echo identify and output to first control module (33); When receive senior filter (321) output be designated the analog echo signal of existing main echo the time, the present segment from the outside that calculating receives is mixed with the input signal of echo and the difference of this analog echo signal obtains now main residual echo signal, and will show main residual echo signal and existing main residual echo sign outputs to first control module (33), and when the existing main residual echo triggering signal of the output that receives senior filter (321), will show main residual echo signal output; When receive senior filter (321) output be designated the analog echo signal that upgrades existing main residual echo the time, the present segment that calculating receives is mixed with the difference of the input signal and the analog echo signal of echo, upgrade existing main residual echo signal with this difference, and should existing main residual echo signal output.
4, device as claimed in claim 1 is characterized in that, described device further comprises:
Backup filtration module (34) is used for according to the filter factor of self preserving present segment echogenicity signal being carried out filtering and calculates, and the backup residual echo signal that obtains is outputed to second control module (35) and comparison module (36); Be used for when receiving the filter factor of second control module (35) output, upgrading the filter factor of self preserving with this filter factor;
Second control module (35), be used for calculating respectively the average power of the existing main residual echo signal and the backup residual echo signal that backup filtration module (34) is exported of main filtration module (32) output that receives, when this two average power satisfied predetermined relationship, the filter factor of main filtration module (32) output that then will receive outputed to backup filtration module (34);
Comparison module (36) is used for the size of the backup residual echo signal of the main residual echo signal of more main filtration module (32) output and backup filtration module (34) output, the signal output after signal less in the two is eliminated as echo;
Main filtration module (32) is further used for, and when receiving the update coefficients triggering signal of first control module (33), will show main residual echo signal and output to second control module (35) and comparison module (36); When receiving the retention factor triggering signal of first control module (33), the coefficient that will preserve according to self carries out the existing main residual echo signal that filtering obtains to present segment echogenicity signal and outputs to second control module (35) and comparison module (36).
5, device as claimed in claim 4 is characterized in that, described backup filtration module (34) comprising:
Backup filter (341) is used for according to the filter factor of self preserving the present segment echogenicity signal from the outside being carried out filtering and calculates, and the analog echo signal that obtains is outputed to the 3rd subtracter (342); Be used for when receiving the filter factor of second control module (35) output, upgrading the filter factor of self preserving with this filter factor;
The 3rd subtracter (342), be used to calculate the difference that present segment from the outside is mixed with the analog echo signal of the input signal of echo and backup filter (341) output and obtain backing up the residual echo signal, should back up the residual echo signal and output to second control module (35) and comparison module (36).
6, a kind of echo cancel method is characterized in that, this method comprises:
A, according to the main filter factor of current preservation, present segment the last period the echogenicity signal and the input signal that is mixed with echo the last period of present segment obtain before main residual echo signal; While is according to echogenicity signal the last period of present segment, main filter factor to current preservation carries out a self adaptation adjustment, according to the filter factor in the self adaptation adjustment process, present segment the last period the echogenicity signal and the input signal that is mixed with echo the last period of present segment obtain before self adaptation residual echo signal, and the once adjusted filter factor of record;
Whether the average power of main residual echo signal and the average power of preceding self adaptation residual echo signal satisfy predetermined relationship before B, the judgement, if, execution in step C; Otherwise, execution in step D.
C, the input signal that is mixed with echo according to once adjusted filter factor, present segment echogenicity signal and present segment in the steps A obtain now main residual echo signal; Simultaneously according to present segment echogenicity signal, this is once adjusted the back filter factor carry out the adjustment of secondary self adaptation, the input signal that is mixed with echo according to the filter factor in this secondary adjustment process, present segment echogenicity signal and present segment obtains existing self adaptation residual echo signal, judge whether the average power of existing main residual echo signal and the average power of existing self adaptation residual echo signal satisfy predetermined relationship, if, once to adjust the main filter factor of the current preservation among the filter factor step of updating A of back, execution in step E then in the steps A; Otherwise, execution in step D;
D, according to the main filter factor of current preservation, the input signal that present segment echogenicity signal and present segment are mixed with echo obtains now main residual echo signal;
E, will show the signal after main residual echo signal is eliminated as echo.
7, method as claimed in claim 6 is characterized in that,
The described main filter factor of steps A, present segment according to current preservation the last period the echogenicity signal and the input signal that is mixed with echo the last period of present segment obtain before the step of main residual echo signal comprise:
According to the main filter factor of current preservation, echogenicity signal the last period of present segment is carried out filtering calculate, obtain the analog echo signal, the input signal that is mixed with echo the last period of present segment is deducted this analog echo signal, main residual echo signal before obtaining;
Steps A described according to the filter factor in the self adaptation adjustment process, present segment the last period the echogenicity signal and the input signal that is mixed with echo the last period of present segment obtain before the step of self adaptation residual echo signal be:
According to the filter factor in the self adaptation adjustment process, echogenicity signal the last period to present segment carries out filtering calculating, obtain the analog echo signal, the input signal that is mixed with echo the last period of present segment is deducted this analog echo signal, self adaptation residual echo signal before obtaining;
The step that the described input signal that is mixed with echo according to once adjusted filter factor, present segment echogenicity signal and present segment in the steps A of step C obtains now main residual echo signal is:
According to the once adjusted filter factor in the steps A, present segment echogenicity signal is carried out filtering calculate, obtain the analog echo signal, the input signal that present segment is mixed with echo deducts this analog echo signal, obtains now main residual echo signal;
The step that the described input signal that is mixed with echo according to the filter factor in the self adaptation adjustment process, present segment echogenicity signal and present segment of step C obtains existing self adaptation residual echo signal is:
According to the filter factor in the self adaptation adjustment process, present segment echogenicity signal is carried out filtering calculate, obtain the analog echo signal, the input signal that present segment is mixed with echo deducts this analog echo signal, obtains existing self adaptation residual echo signal.
8, method as claimed in claim 6 is characterized in that, the current backup filter factor of preserving, and, further comprise after the described step D, before the step e:
The backup filter factor of D1, this current preservation of basis carries out filtering to present segment echogenicity signal and calculates, obtain the analog echo signal, the input signal that present segment is mixed with echo deducts this analog echo signal and obtains backing up the residual echo signal, and calculates the average power of this backup residual echo signal correspondence; Judge whether continuously certain number of times satisfies predetermined relationship for the average power of backup residual echo signal and the average power of existing main residual echo signal, if, upgrade the backup filter factor of this current preservation, execution in step D2 then with adjusted filter factor in the steps A; Otherwise, direct execution in step D2;
Whether D2, judgement back up the residual echo signal less than existing main residual echo signal, if, with the existing main residual echo signal of backup residual echo signal update; Otherwise, keep existing main residual echo signal constant.
9, method as claimed in claim 8, it is characterized in that the predetermined relationship that the average power of the average power of the described backup residual echo of step D1 signal and existing main residual echo signal satisfies is: the average power of existing main residual echo signal and the product of predetermined constant are less than or equal to the average power of backup residual echo signal.
10, method as claimed in claim 6, it is characterized in that the predetermined relationship that the average power of the average power of self adaptation residual echo signal and preceding main residual echo signal need satisfy before step B was described is: the average power of main residual echo signal and the product of predetermined constant before the average power of preceding self adaptation residual echo signal is less than or equal to;
The predetermined relationship that the average power of the described existing self adaptation residual echo signal of step C and the average power of existing main residual echo signal satisfy is: the average power of existing self adaptation residual echo signal is less than or equal to the product of the average power and the predetermined constant of now main residual echo signal.
CNB2005100982114A 2005-09-01 2005-09-01 A kind of echo cancelling device and method Expired - Fee Related CN100550951C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100982114A CN100550951C (en) 2005-09-01 2005-09-01 A kind of echo cancelling device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100982114A CN100550951C (en) 2005-09-01 2005-09-01 A kind of echo cancelling device and method

Publications (2)

Publication Number Publication Date
CN1925526A true CN1925526A (en) 2007-03-07
CN100550951C CN100550951C (en) 2009-10-14

Family

ID=37817980

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100982114A Expired - Fee Related CN100550951C (en) 2005-09-01 2005-09-01 A kind of echo cancelling device and method

Country Status (1)

Country Link
CN (1) CN100550951C (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954595A (en) * 2015-05-15 2015-09-30 百度在线网络技术(北京)有限公司 Cancellation method and device of residual echo
US9154635B2 (en) 2008-09-26 2015-10-06 Nec Corporation Signal processing method, signal processing device, and signal processing program
CN105323395A (en) * 2014-07-31 2016-02-10 重庆重邮信科通信技术有限公司 Echo eliminator and echo elimination method
CN107277209A (en) * 2017-07-27 2017-10-20 维沃移动通信有限公司 One kind call method of adjustment and mobile terminal
CN107786755A (en) * 2016-08-30 2018-03-09 合肥君正科技有限公司 A kind of double talk detection method and apparatus
CN108712585A (en) * 2018-05-09 2018-10-26 质音通讯科技(深圳)有限公司 Call terminal, the initial method of filter, device, equipment and storage medium
CN111277718A (en) * 2020-01-21 2020-06-12 上海推乐信息技术服务有限公司 Echo cancellation system and method thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9154635B2 (en) 2008-09-26 2015-10-06 Nec Corporation Signal processing method, signal processing device, and signal processing program
CN105323395A (en) * 2014-07-31 2016-02-10 重庆重邮信科通信技术有限公司 Echo eliminator and echo elimination method
CN104954595A (en) * 2015-05-15 2015-09-30 百度在线网络技术(北京)有限公司 Cancellation method and device of residual echo
CN104954595B (en) * 2015-05-15 2017-07-25 百度在线网络技术(北京)有限公司 Residual echo removing method and device
CN107786755A (en) * 2016-08-30 2018-03-09 合肥君正科技有限公司 A kind of double talk detection method and apparatus
CN107277209A (en) * 2017-07-27 2017-10-20 维沃移动通信有限公司 One kind call method of adjustment and mobile terminal
CN107277209B (en) * 2017-07-27 2020-05-29 维沃移动通信有限公司 Call adjustment method and mobile terminal
CN108712585A (en) * 2018-05-09 2018-10-26 质音通讯科技(深圳)有限公司 Call terminal, the initial method of filter, device, equipment and storage medium
CN111277718A (en) * 2020-01-21 2020-06-12 上海推乐信息技术服务有限公司 Echo cancellation system and method thereof
CN111277718B (en) * 2020-01-21 2021-10-08 上海推乐信息技术服务有限公司 Echo cancellation system and method thereof

Also Published As

Publication number Publication date
CN100550951C (en) 2009-10-14

Similar Documents

Publication Publication Date Title
CN1320782C (en) Echo processing appts.
CN1127840C (en) AC-center clipper for noise and echo suppression in communications system
CN1223109C (en) Enhancement of near-end voice signals in an echo suppression system
CN1842110A (en) Echo eliminating device and method
CN1925526A (en) Device and method for echo elimination
AU2011261559B2 (en) Active noise cancellation decisions in a portable audio device
EP2987163B1 (en) Systems and methods for adaptive noise cancellation by biasing anti-noise level
US7046794B2 (en) Double talk activity detector and method for an echo canceler circuit
US5920834A (en) Echo canceller with talk state determination to control speech processor functional elements in a digital telephone system
CN1879393A (en) Two-way communications device having a single transducer
CN1914819A (en) Echo canceller with interference-level controlled step size
CA2451417C (en) Method of capturing constant echo path information in a full duplex speakerphone using default coefficients
CN1595827A (en) Digital adaptive filter and acoustic echo canceller using the same
CN1494229A (en) Echo Eliminator with echo path change detector
CN1917386A (en) Method for detecting both speaking status in operatioon of echo cancel
CN1084977C (en) Echo canceler and its learning method
CN1115039C (en) Handfree phone
CN1512745A (en) Speed communication system suitable for wide band communication and its telephone set
CN1157040C (en) Echo eliminator
CN1736039A (en) Echo suppression device
CN1303180A (en) Method of reducing echo and/or noise
US20080181392A1 (en) Echo cancellation and noise suppression calibration in telephony devices
CN1214171A (en) Appts. and method for non-linear processing in communication system
JP2005142756A (en) Echo canceller
EP2095362B1 (en) Telephone device to cancel background noise at the speaker

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091014