[Speex-dev] FW: Echo Cancellation

Ard van Breemen ard at kwaak.net
Thu Aug 26 02:58:11 PDT 2004


On Thu, Aug 26, 2004 at 11:54:19AM +0200, Ard van Breemen wrote:
> Try this patch.
> It effectively disables the adaption rate adjustment, and it uses
> a lower adaption rate. Play with that rate. Suddenly you almost
> concurred the Borg. (Until the Borg adapts of-course :-) ).

Sigh... It is early I guess :-)
-------------- next part --------------
--- mdf.c.org	2004-08-18 11:26:51.000000000 +0200
+++ mdf.c	2004-08-18 11:27:26.000000000 +0200
@@ -57,7 +57,7 @@
    N = st->window_size;
    M = st->M = (filter_length+N-1)/frame_size;
    st->cancel_count=0;
-   st->adapt_rate = .01f;
+   st->adapt_rate = .001f;
 
    st->fft_lookup = (struct drft_lookup*)speex_alloc(sizeof(struct drft_lookup));
    drft_init(st->fft_lookup, N);
@@ -310,6 +310,7 @@
    }
 
    /* Adjust adaptation rate */
+#if 0
    if (st->cancel_count>2*M)
    {
       if (st->cancel_count<8*M)
@@ -329,6 +330,7 @@
       }
    } else
       st->adapt_rate = .0f;
+#endif
 
    /* Update weights */
    for (i=0;i<M*N;i++)


More information about the Speex-dev mailing list