<p>Hi:<br> I am developing an IP Phone on ARM(samsung 6410; CPU:667MHZ), and use lib mediastreamer.2.6.0 for audio <br> communication, but now the echo occur while talking. In the lib mediastreamer.2.6.0, I find a filter can <br>
 do echo Cancellation by calling lib speex. I active it to filter the collected voice, but the telephone <br> receiver can&#39;t hear any voice. Maybe I setup parameters wrong, the parameters are as follow:</p>
<p>        int ec_tail_len = 100;<br> int ec_delay = 20;<br> int ec_framesize = 0;<br> if (use_ec) {<br>  stream-&gt;ec=ms_filter_new(MS_NEW_SPEEX_EC_ID);<br>  ms_filter_call_method(stream-&gt;ec,MS_FILTER_NEW_SET_SAMPLE_RATE,&amp;pt-&gt;clock_rate);<br>
  //inec_tail_len = 100;<br>  //ec_delay = ;<br>  if (ec_tail_len!=0)<br>   ms_filter_call_method(stream-&gt;ec,MS_ECHO_CANCELLER_SET_TAIL_LENGTH,&amp;ec_tail_len);<br>  if (ec_delay!=0)<br>   ms_filter_call_method(stream-&gt;ec,MS_ECHO_CANCELLER_SET_DELAY,&amp;ec_delay);<br>
  if (ec_framesize!=0)<br>   ms_filter_call_method(stream-&gt;ec,MS_ECHO_CANCELLER_SET_FRAMESIZE,&amp;ec_framesize);<br> }</p>
<p>    Expecting anybody can give me some advices to cancel the hateful echo. <br>    Best regards!</p>