search for: speex_echo_set_sampling_rate

Displaying 17 results from an estimated 17 matches for "speex_echo_set_sampling_rate".

2007 Dec 10
2
AEC gets worse as sample rate increases
Hi all, I am attempting to test AEC behavior at various sample rates. I ran a little experiment: I recorded a 10 seconds voice clip and the resampled at 8000, 11025, 16000, 22050, 24000, 32000, 44100 and 48000. I have a small applications that plays a wave file, records whatever comes in from the microphone and applies the Speex AEC and preprocessor on the input. It then saves the raw
2008 Aug 23
1
Echo canceller
...ufferSize()); output is the frame audio to sound (different that the 'output' in capture) buffer store the last frame audio to be used later on capture (look on capture) Echo and preprocess states are conveniently initiated using speex_echo_state_init(fpb,fpb*25) and speex_echo_ctl(es,SPEEX_ECHO_SET_SAMPLING_RATE,&sr) (and, of course speex_preprocess_state_init) Echo state is associated with preprocess state using SPEEX_PREPROCESS_SET_ECHO_STATE What is wrong?
2010 Feb 09
1
Stereo AEC
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(preproces...
2006 Sep 21
2
AEC in WB mode fixed yet ?
> Today's Topics: > > 1. AEC with WB mode (Jean-Christophe.Berge@etu.enseeiht.fr) > 2. Multiple frame encode and decode (Reza Fatahillah) > 3. cant link speex_echo.h (jesus) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 20 Sep 2006 08:46:03 +0200 (CEST) > From:
2006 Nov 02
1
echo cancellation on PDA
...done in 1ms, but for the previous PDA (TI OMAP 168Mhz), it take more than 100ms! Though EAC could run 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*>(re...
2010 Jun 28
1
ACE does not work for me at all.
...e Speex ACE work. here is how I initialize it: /** * Configurations : * #define BITS_PER_SAMPLE (16) * #define SAMPLE_RATE (8000) * #define CHANNEL_NB (1) * #define DURATION (20) * SPEEX_MODEID_NB */ _eco_state = speex_echo_state_init(_encframe_size, 10*_encframe_size); speex_echo_ctl(_eco_state, SPEEX_ECHO_SET_SAMPLING_RATE, &_sample_rate); _den_state = speex_preprocess_state_init(_encframe_size, _sample_rate); speex_preprocess_ctl(_den_state, SPEEX_PREPROCESS_SET_ECHO_STATE, _eco_state); tmp=1; speex_preprocess_ctl(_den_state, SPEEX_PREPROCESS_SET_DENOISE, &tmp); tmp=1; speex_preprocess_ctl(_den_state, SP...
2010 Jul 20
2
[SPAM] [BombData][alltestmode] Re: Speex Echo Cancellation
As for me - speex_echo_cancellation is a better choise. Try using it in capture thread instead of those speex_echo_capture and speex_echo_playback functions. And please, describe your problem in details. Cause the fact that you "didn get echo cancellation" doesn't mean you are doing smth wrong. Regards, Anton A. Shpakovsky -----Original Message----- From: speex-dev-bounces at
2007 Dec 10
0
AEC gets worse as sample rate increases
Try using SPEEX_ECHO_SET_SAMPLING_RATE to specify your sampling rate. Also, don't forget that the tail need to be longer (proportional to the sampling rate). Last thing, if you use resampling, make sure you use a decent resampler (the Speex one is fine) because otherwise, any aliasing left will not be cancelled. Jean-Marc Mihai B...
2009 Feb 13
0
Why speex echo cancellation is not work
...ne SPEEX_NN 128 #define SPEEX_TAIL 1920 class AECHandler { public: AECHandler(void){ this->st = speex_echo_state_init(SPEEX_NN, SPEEX_TAIL); int tmp = SPEEX_SAMPLERATE; this->den = speex_preprocess_state_init(SPEEX_NN, SPEEX_SAMPLERATE); speex_echo_ctl(st, SPEEX_ECHO_SET_SAMPLING_RATE, &tmp); speex_preprocess_ctl(den, SPEEX_PREPROCESS_SET_ECHO_SUPPRESS_ACTIVE, st); //int tmp1 = 1; //speex_preprocess_ctl(den, SPEEX_PREPROCESS_SET_AGC, &tmp1); } //FILE *echo_fd, *ref_fd, *e_fd; short echo_buf[SPEEX_NN], ref_buf[SPEEX_NN], e_buf[SPEEX_NN]...
2009 Dec 16
1
AEC Troubles
...few problems with Speex AEC. We are using it to process audio data on a real time stream over IP with Speex codec (frame size = 320). We initialize the echo state like this : SpeexEchoState * echo_state; echo_state = speex_echo_state_init(320,512); int sr = 16000; speex_echo_ctl(echo_state, SPEEX_ECHO_SET_SAMPLING_RATE,&sr); We are not really sure about the values in parameters, please tell us if you see something wrong about them. we process the data like this : speex_echo_cancellation(echo_state,target,source,out); the output stream is almost the same as the input one, meaning there is not a really eff...
2010 Feb 10
0
Speex-dev Digest, Vol 69, Issue 8
...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_s...
2011 Jan 10
1
AEC seems to distort voice
Hi, I've set up speex AEC in our application. The echo's seem to be canceling, but the captured voice is distorted somehow. It sounds to me like low and/or high frequencies are removed. This happens even if I set my playback(echo) data to only zero's. Is this "normal" for the AEC? As far as I understand, if I send 0's as playback/echo data, the resulting data should be
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
2010 Jul 20
0
[SPAM] [BombData][alltestmode] Re: Speex Echo Cancellation
...ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &hz); int quality= 8; speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&quality); quality = 2; speex_encoder_ctl(enc_state, SPEEX_SET_COMPLEXITY, &quality); echo_state = speex_echo_state_init(20,320*10); speex_echo_ctl(echo_state,SPEEX_ECHO_SET_SAMPLING_RATE,&hz); preprocess_state = speex_preprocess_state_init(20 /*frame size in ms*/, hz); speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_ECHO_STATE,echo_state); /* int value = -226; if (preprocess_state != NULL) { speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCE...
2011 Jun 22
1
Acoustic echo cancellation
On 06/22/2011 09:30 AM, Steve Kann wrote: > Speaking of AEC (thought not quite on topic for this thread), > > Has anyone on this list played with the GIPS code that google just > open-sourced? It looks like their AEC also has code to handle > differential sample rates, though I haven't really evaluated it > thoroughly. > > There is really a lot of code in the drop ?
2008 Aug 22
2
Digital speech within 100 Hz bandwidth
HA! Just when I was getting ready to drop myself from this list, along comes a ham radio question! Shoving digital voice down a 100 Hz pipe would be mighty darned tough/impossible. N0YMV has a good suggestion. Try those WSJT modes. They use narrow bandwidth and are fun to play with. There are documented instances where moon-bounce QSOs have been completed with these modes. No, it's
2010 Jul 20
1
[BombData][alltestmode] Re: [SPAM] [BombData][alltestmode] Re: Speex EchoCancellation
...ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &hz); int quality= 8; speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&quality); quality = 2; speex_encoder_ctl(enc_state, SPEEX_SET_COMPLEXITY, &quality); echo_state = speex_echo_state_init(20,320*10); speex_echo_ctl(echo_state,SPEEX_ECHO_SET_SAMPLING_RATE,&hz); preprocess_state = speex_preprocess_state_init(20 /*frame size in ms*/, hz); speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_ECHO_STATE,echo_state); /* int value = -226; if (preprocess_state != NULL) { speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCE...