[Speex-dev] Speex-dev Digest, Vol 69, Issue 8
Kaiyu Jiang
j.equalizer at gmail.com
Wed Feb 10 00:55:50 PST 2010
If the left and right channels are processed separately as you do,
the parameter Mic-Number in speex_echo_state_init_mc should be 1, not 2
On Wed, Feb 10, 2010 at 4:00 AM, <speex-dev-request at xiph.org> wrote:
> Send Speex-dev mailing list submissions to
> speex-dev at xiph.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.xiph.org/mailman/listinfo/speex-dev
> or, via email, send a message with subject or body 'help' to
> speex-dev-request at xiph.org
>
> You can reach the person managing the list at
> speex-dev-owner at xiph.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Speex-dev digest..."
>
>
> Today's Topics:
>
> 1. Stereo AEC (Nicholas Xu)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 9 Feb 2010 22:58:58 +0800
> From: Nicholas Xu <xunich at gmail.com>
> Subject: [Speex-dev] Stereo AEC
> To: speex-dev at xiph.org
> Message-ID:
> <de841d8e1002090658o7c26c4bag20b99bd305c422f9 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> Can anybody show me how to enable stereo AEC, I tried with the
> following code and the result is bad, degraded output.
>
> Init:
>
> ec_state = speex_echo_state_init_mc(frame_size, aec_tail, 2, 2);
> speex_echo_ctl(ec_state, SPEEX_ECHO_SET_SAMPLING_RATE, &sample_rate);
>
> preprocess_state_left = speex_preprocess_state_init(frame_size,
> sample_rate);
> preprocess_state_right = speex_preprocess_state_init(frame_size,
> sample_rate);
>
> speex_preprocess_ctl(preprocess_state_left ,
> SPEEX_PREPROCESS_SET_ECHO_STATE, ec_state );
> speex_preprocess_ctl(preprocess_state_right ,
> SPEEX_PREPROCESS_SET_ECHO_STATE, ec_state );
>
> AEC:
>
> speex_echo_cancellation(ec_state, mic, echo_ref, output);
> speex_preprocess_run(preprocess_state_left, output);
> speex_preprocess_run(preprocess_state_right, output);
>
> Is there anything wrong with my code?
>
> Thanks in advance.
> Nicholas
>
>
> ------------------------------
>
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev
>
>
> End of Speex-dev Digest, Vol 69, Issue 8
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20100210/6fb01c57/attachment.htm
More information about the Speex-dev
mailing list