There were little changes when I activate "echo cancel" without AGC. And activating "echo cancel" with AGC results poor voice quality. The relationship between input frame and echo frame is written to "very important" in SpeeX 1.1.11.1 manual. And I use "previous decoded data" for echo frame. <<<<---- no problem??? I show you again my code about "echo cancel". // Initialize echo-canceller echo_state = speex_echo_state_init(framesize, framesize*16/*filterLength*/); speex_echo_cancel(echo_state, input_data, decoded_data, echo_canceled_data, residue); Preprocess(preprocess_state, echo_canceled_data, residue); -----Original Message----- From: Jean-Marc Valin [mailto:Jean-Marc.Valin@USherbrooke.ca] Sent: Tuesday, January 31, 2006 7:35 AM To: ??? Cc: speex-dev@xiph.org Subject: Re: [Speex-dev] About echo cancelling Try first without AGC or anything like that. Jean-Marc Le jeudi 26 janvier 2006 ? 13:54 +0900, ??? a ?crit :> Hi. > > I've implemented "echo cancel" to voip project. > But it doesn't work well . (I cannot feel the enhancement with > activated AGC) > > My encode settings : > 1. frame size : 320 bytes. > 2. sampling rate : 16000 Hz (WB) > 3. mono > > echo state initialized like this : > > echo_state = speex_echo_state_init(framesize, framesize*16); > > and befor encode : > > speex_echo_cancel(echo_state, input_data, decoded_data, > echo_canceled_data, residue); > > input_data : recorded data > decoded_data : previous decoded data > echo_canceled_data : echo cancel output data > > Is there any faults for my "echo cancel" usage? > > P.S : Dear Jean-Marc. > Thank you for kind answers. > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev