[Speex-dev] Stereo AEC
Jean-Marc Valin
jean-marc.valin at usherbrooke.ca
Tue Feb 9 16:54:50 PST 2010
Hi,
The preprocessor doesn't work yet with the multi-channel AEC.
Jean-Marc
On 2010-02-09 09:58, Nicholas Xu wrote:
> 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
>
>
More information about the Speex-dev
mailing list