QUOTE(jmvalin @ Mar 2 2006, 16:32)

QUOTE(javaren @ Feb 27 2006, 10:56 AM)
In the source there is a function:speex_echo_cancel(st, ref_buf, echo_buf, e_buf, noise).In these parameters, the "echo_buf" means the speaker signal from what is captured by the microphone.My question is how could I get the echo and record it to a file.

The only way for echo cancellation to work correctly is when both ref_buf and echo_buf are obtained simultaneously and go through the same soundcard. Otherwise, sampling rate drift will make that impossible.
Hello! You just told that "both ref_buf and echo_buf are obtained simultaneously and go through the same soundcard." But in full duplex,how do u abtain 2 signal from a "same" soundcard? It is impossible! Two signal,one is refence signal ,which is transimitted from far side by network, captured by "that" far Mic , sampled and encoded by "that" far side codec,decoded by "this" near side codec. Another signal, it is echo signal,captured by" this" near side Mic and sampled by this codec. How does this 2 signal go through the same soundcard?
Can u kindly explian it?
now I am studying a PBFDAF AEC with full duplex mode in PC/PDA ,encounting some difficulty. Maybe "sampling rate drift "can open my heart . Later,I would study speex AEC and impelment it.