<div>If the left and right channels are processed separately as you do,</div>
<div> </div>
<div>the parameter Mic-Number in speex_echo_state_init_mc should be 1, not 2<br><br></div>
<div class="gmail_quote">On Wed, Feb 10, 2010 at 4:00 AM, <span dir="ltr">&lt;<a href="mailto:speex-dev-request@xiph.org">speex-dev-request@xiph.org</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Send Speex-dev mailing list submissions to<br>       <a href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</a><br>
<br>To subscribe or unsubscribe via the World Wide Web, visit<br>       <a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>or, via email, send a message with subject or body &#39;help&#39; to<br>
       <a href="mailto:speex-dev-request@xiph.org">speex-dev-request@xiph.org</a><br><br>You can reach the person managing the list at<br>       <a href="mailto:speex-dev-owner@xiph.org">speex-dev-owner@xiph.org</a><br><br>
When replying, please edit your Subject line so it is more specific<br>than &quot;Re: Contents of Speex-dev digest...&quot;<br><br><br>Today&#39;s Topics:<br><br>  1. Stereo AEC (Nicholas Xu)<br><br><br>----------------------------------------------------------------------<br>
<br>Message: 1<br>Date: Tue, 9 Feb 2010 22:58:58 +0800<br>From: Nicholas Xu &lt;<a href="mailto:xunich@gmail.com">xunich@gmail.com</a>&gt;<br>Subject: [Speex-dev] Stereo AEC<br>To: <a href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</a><br>
Message-ID:<br>       &lt;<a href="mailto:de841d8e1002090658o7c26c4bag20b99bd305c422f9@mail.gmail.com">de841d8e1002090658o7c26c4bag20b99bd305c422f9@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1<br>
<br>Hi,<br><br>Can anybody show me how to enable stereo AEC, I tried with the<br>following code and the result is bad, degraded output.<br><br>Init:<br><br>ec_state = speex_echo_state_init_mc(frame_size, aec_tail, 2, 2);<br>
speex_echo_ctl(ec_state, SPEEX_ECHO_SET_SAMPLING_RATE, &amp;sample_rate);<br><br>preprocess_state_left = speex_preprocess_state_init(frame_size, sample_rate);<br>preprocess_state_right = speex_preprocess_state_init(frame_size, sample_rate);<br>
<br>speex_preprocess_ctl(preprocess_state_left ,<br>SPEEX_PREPROCESS_SET_ECHO_STATE, ec_state );<br>speex_preprocess_ctl(preprocess_state_right ,<br>SPEEX_PREPROCESS_SET_ECHO_STATE, ec_state );<br><br>AEC:<br><br>speex_echo_cancellation(ec_state, mic, echo_ref, output);<br>
speex_preprocess_run(preprocess_state_left, output);<br>speex_preprocess_run(preprocess_state_right, output);<br><br>Is there anything wrong with my code?<br><br>Thanks in advance.<br>Nicholas<br><br><br>------------------------------<br>
<br>_______________________________________________<br>Speex-dev mailing list<br><a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br><a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
<br><br>End of Speex-dev Digest, Vol 69, Issue 8<br>****************************************<br></blockquote></div><br>