Patent ID: 7778408

Claim:
A method of a processor of echo cancellation, comprising: (a) providing a fast estimation filter, a slow estimation filter, a saturating counter, and a filter flag; (b) filtering a frame of far-end plus near-end samples with said fast estimation filter to yield a first frame of outputs; (c) filtering said frame of the far-end plus near-end samples with said second slow estimation filter to yield a second frame of the outputs; (d) computing, in said processor, a measure of said first frame and a measure of said frame; (e) when said measure of said first frame plus a predetermined value is less than said measure of said second frame, incrementing said saturating counter; (f) when said measure of said first frame plus another predetermined value is greater than said measure of said second frame, decrementing said saturating counter; (g) when said saturating counter is greater than or equal to a threshold, set said filter flag to said fast estimation filter and adjust slow estimation filter coefficients using fast estimation filter coefficients; (h) when said saturating counter is less than or equal to another threshold, set said filter flag to said slow estimation filter and adjust said fast estimation filter coefficients using said slow estimation filter coefficients; and (i) output said first frame or said second frame according to said filter flag, wherein said filter flag results in an improved echo cancellation as a result of the first estimation filter and the second estimation filter.