search for: echo_st

Displaying 20 results from an estimated 35 matches for "echo_st".

Did you mean: echo_t
2006 Nov 02
1
echo cancellation on PDA
I did the test on another PDA which runs XScale 416Mhz CPU, the EAC arithmetic could be 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(de...
2006 Nov 02
2
echo cancellation on PDA
...20 ms frame! > > Are you by any chance using an insane sampling rate and/or tail length. > Try a sampling rate of 8000 Hz, 128-sample frame size and 1028-sample > tail length. In my appliation, the sampling rate is 8000 Hz, and time stamp is 20ms, doesn't it mean I should initialize echo_state like speex_echo_init_state(160,n*160)? > > > I've defined the FIXED_POINT macro. Is there anyway to do some > > optimization? > > Probably. With the params above, the AEC should be able to run in > real-time on an ARM CPU. > > Jean-Marc > >
2008 Jul 22
1
FW: SPEEX_PREPROCESS_GET_ECHO_STATE broken
All, The implementation of SPEEX_PREPROCESS_GET_ECHO_STATE in preprocess.c seems to be broken. The value of the echo_state pointer is assigned to the stack variable rather than to the memory location pointed to by the stack variable. Code snippet from preprocess.c: case SPEEX_PREPROCESS_GET_ECHO_STATE: ptr = (void*)st->echo_state; b...
2009 Dec 16
1
AEC Troubles
Hello, We are experiencing a 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_cancell...
2006 Jan 25
1
About echo cancelling
Hi. I've implemented "echo cancel" to voip project. But it doesn't work well . (I cannot feel the enhancement with activated AGC) My encode settings : 1. frame size : 320 bytes. 2. sampling rate : 16000 Hz (WB) 3. mono echo state initialized like this : echo_state = speex_echo_state_init(framesize, framesize*16); and befor encode : speex_echo_cancel(echo_state, input_data, decoded_data, echo_canceled_data, residue); input_data : recorded data decoded_data : previous decoded data echo_canceled_data : echo cancel output data Is there any faults for...
2006 Jan 31
0
About echo cancelling
...e relationship between input frame and echo frame is written to "very important" in SpeeX 1.1.11.1 manual. And I use "previous decoded data" for echo frame. <<<<---- no problem??? I show you again my code about "echo cancel". // Initialize echo-canceller echo_state = speex_echo_state_init(framesize, framesize*16/*filterLength*/); speex_echo_cancel(echo_state, input_data, decoded_data, echo_canceled_data, residue); Preprocess(preprocess_state, echo_canceled_data, residue); -----Original Message----- From: Jean-Marc Valin [mailto:Jean-Marc.Valin@USherbroo...
2006 Sep 21
1
echo cancellation causes assertion
...peex_echo_capture() or speex_echo_playback() causes an assertion failed, it seens that there is a delete in any where. i've encapsulated echo canceller in a class that storage the state and simply call the functions: void EchoCanceller::Playback(short *echo_frame) { speex_echo_playback(echo_state, echo_frame); } void EchoCanceller::Capture(short *input_frame, short *output_frame, int* residue) { speex_echo_capture(echo_state, input_frame, output_frame, residue); } the class has been tested, and the problem is in the calls. has any body had the same problem? than you.
2007 Sep 14
0
Speex echo canceller creating some problems. No voice coming.
...x so please redirect me to some links if the question is repetative. Just for testing the echo canceller performance, I have added mdf,fftwrap,misc,kiss_fftr,kiss_fft source files to my project. Now In my multithread application when I receive packets from mice, I calls speex_echo_capture(echo_state, input_frame, output_frame,Youtput_frame) with input_frame as data received from mice(160 bytes as I am using G711 codec) and I send data out received from second argument output_frame. Also when I get packet to play from remote(far) end, I calls speex_echo_playback(echo_state, echo_fram...
2008 Feb 08
1
Echo Canceller on Windows Mobile
...ing without echo canceller code. Simply adding the following 2 functions whether the echo cancellation is wired in (ie we use the output frame ) or not performance becomes terrible. Note 2 separate threads are used to handle audio. Playing Audio thread: Write to codec speex_echo_playback(echo_state, echo_frame); Capturing audio thread: Receive buffer speex_echo_capture(echo_state, input_frame, output_frame); We have compiled for fixed point. We are using codec buffer size of 256 bytes ie 128, 16bit samples. SpeexEchoState* iEchoState = speex_echo_state_init(ECHO_F...
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
2009 Oct 08
1
2 weeks lost in the AEC world
...) { wxMutexLocker lock(mx_eco_state); if(ecosize >= tam+DELAY*8*2) // pass delay(milliseconds) to bytes { short *eco = (short*)bufeco+ecosize-tam-DELAY*8; // take from the last 10 frames - delay // pass entire packet --> heap corruption // speex_echo_cancellation(echo_state, (short*)buffer, eco, (short*)salida); // pass each 20 ms packet for(int i=0;i<1600;i+=160) { speex_echo_cancellation(echo_state, (short*)buffer+i, eco+i, (short*)salida+i); } // manage the buffer ecosize -= tam; if(ecosize >...
2008 Jul 25
2
Problem in Echocancelation
Hi, We are using your speex codec in our VirtuvalClassRoom product. It's working good but we have problem using your echo canceller. Can you send me some code samples which use the echo cancelation? thanks suresh A Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/ -------------- next part -------------- An HTML
2010 Jul 20
0
[SPAM] [BombData][alltestmode] Re: Speex Echo Cancellation
...; // For Wideband speex_wb_mode ,Narrowband speex_nb_mode speex_encoder_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 = -22...
2006 Jun 07
7
AEC frame size
? hi all, i am using the Acoustic Echo Cancellation from "Speex 1.1.12 version" in my VOIP application. Is it that the frame length to be chosen should always be 20ms or can i have flexibility in chosing the frame lenght? on what parameters does the frame length choise depends? thank you all, Shri. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2010 Jul 20
1
[BombData][alltestmode] Re: [SPAM] [BombData][alltestmode] Re: Speex EchoCancellation
Well, I'm not a professional in AEC theory, but what I've mentioned is: speex_echo_state_init(20, 320*10) - frame size should correspond to 20ms. At your sampling rate (16000hz) is should be 16K*0.02 = 320. The same I can notice about echo tail. 100ms: 16000*0.3 = 4800, not 3200 as you has. But that's not crucial I think. Just wanna you get the point. "Internally, speex_e...
2006 Jun 07
0
Echo canceller problem
Welcome everybody. I am new here on the list. Thank you very much for speex encoder and decoder. They are working great. I compile speex coded for str911 Arm processor. But I have a big problem with echo canceller from 1.1.12 speex package. I create echo canceler state: SpeexEchoState * echo_state = speex_echo_state_init(FRAME_SIZE, FRAME_SIZE * 5); FRAME_SIZE is in my project 160 samples. I have 8000ksaples/s, so I must call echo canceler every 20ms. and later in the loop I call it: speex_echo_cancel(echo_state, (short *)Samples, (short *)SamplesSpeaker, (short *)SamplesOut, NULL);...
2007 Dec 06
1
Echo cancellor on Windows, a few questions.
...like this: Segment *pseg = (Segment *)phead; waveOutUnprepareHeader(waveOut, phead, sizeof(WAVEHDR)); memcpy(remote, pseg->samples, 160 * sizeof(short)); Second, each time i get samples from the mic, i do the echo cancellation like this: if (nsamples == 160){ speex_echo_cancellation(echo_state, (short *)pseg->samples, remote, unechoed); q = unechoed; } I have also initialized the echo cancellor like this: echo_state = speex_echo_state_init(160, 8000); My issue is simply that the echo cancelleor is making almost no difference to my echo at all. any ideas? Q1. is there a w...
2009 Jan 26
2
speex_echo_cancel, please help!
Hello, Need some help using the speex_echo_cancel. I've read the documentation about the speex_echo_cancellation function: speex_echo_cancellation(echo_state, input_frame, echo_frame, output_frame); (in) echo_state => speex internal state. (in) input_frame => audio captured by mic. (in) echo_frame => the signal that was played in the speaker. (out) output_frame => the signal with echo removed. I'm under linux and using port...
2009 Jun 21
0
Speex AEC for Coldfire
...x=/home/uclinux/uClinux-dist --enable-fixed-point LDFLAGS='-Wl,-elf2flt' The library builds fine (or appears to) an is placed in the subdir 'lib' of the prefix shown above; my routine does pick up all functions from the library, again and builds fine, however when the function 'echo_state=speex_echo_state_init(FRAME_SIZE, 10*FRAME_SIZE);' is executed, the software hangs - as far as I can tell it's getting to the routine in mfc.c, but hangs when it actually does anything. I also have the following: #define FRAME_SIZE 320 SpeexEchoState *echo_state; I think that I'm p...
2009 Sep 29
1
SPEEX_PREPROCESS_SET_ECHO_STATE produces heap corruption
Hi, when I use preprocessor with AEC, VC++ alerts me about heap corruption. I have protected speex_echo_playback, speex_echo_capture and speex_preprocess_run with mutexes, to avoid echo_state being used at the same time, but it still happens. Any help about this ussue? Thank you.