Displaying 2 results from an estimated 2 matches for "encoded_buf".
Did you mean:
encodebuf
2006 Nov 02
2
echo cancellation on PDA
2006/11/2, Jean-Marc Valin <jean-marc.valin@usherbrooke.ca>:
> > Today I tried speex echo cancellation on my VoIP application running
> > on a windows mobile based PDA (OMAP1510 168MHz). The result is
> > disappointing: it takes 150-250 ms to do echo cancellation (by calling
> > speex_echo_capture() ) for a 20 ms frame!
>
> Are you by any chance using an insane
2006 Nov 02
1
echo cancellation on PDA
...in time on the new PDA, it did no help to cancel
the echo, here is my test scenario:
Init echo_state:
echo_state=speex_echo_state_init(160,1120);
int tmp=8000;
speex_echo_ctl(echo_state,SPEEX_ECHO_SET_SAMPLING_RATE,&tmp);
In playing thread:
receive incoming RTP packet;
decode(encoded_buf,decoded_buf);
speex_echo_playback(echo_state,decoded_buf);
add_in_play_queue(decoded_buf)
In Recording thread
wait for recorded data coming (every 20ms);
short* mic = reinterpret_cast<short*>(recorded_buf);
speex_echo_capture(echo_state,mic,mic,NULL);
decode(recorded_buf...