search for: speex_echo_state_init

Displaying 20 results from an estimated 79 matches for "speex_echo_state_init".

2006 Dec 05
1
Frame size for speex_echo_state_init
The speex manual says: "It is recommended to use a frame size in the order of 20 ms (or equal to the codec frame size) and make sure it is easy to perform an FFT of that size (powers of two are better than prime sizes)." What is the impact of using a non-power-of-two frame size here? Since 20 ms of 8000 (or 16000) is not a power of 2, I have to make a choice. It would be most convenient
2004 Aug 06
2
echo cancel
Hello, I would like to test the echo cancel algorithm available in unstable version 1.1.4. This echo canceller can be used with other codecs like G711? Somebody could send me some documentation or sample, or explain the next functions: SpeexEchoState *speex_echo_state_init(int frame_size, int filter_length); void speex_echo_state_destroy(SpeexEchoState *st); void speex_echo_cancel(SpeexEchoState *st, float *ref, float *echo, float *out, float *Y); Thank you very much. Best regards. G. --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepag...
2010 Jun 28
1
ACE does not work for me at all.
...l. 1) ACE does not work for me I am in a voip project using Speex, failed to have hte 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(_de...
2009 Mar 10
2
frame_size parameter
Hi, I'm using the echo cancellation api and I would like to clarify the 'frame_size' parameter used in speex_echo_state_init(frame_size,filter_length). In the 'docs' it says: "...where frame_size is the amount of data (in samples)you want to process at once..." So... here are my questions: if I use stereo input/output do I have to put the samples doubled ? For example... if I'm using 100 ms on...
2010 Jun 15
2
AEC init crashes
Hello, I've just caught a strange crash in speex_echo_state_init routine. It happened only on one WinXP machine, while on others using XP, Vista and 7 everything is fine. Crash occures in mdf.c line 434: st->spec_average = DIV32_16(SHL32(EXTEND32(st->frame_size), 15), st->sampling_rate); Got any ideas or should I provide more information of the OS...
2009 Mar 11
1
frame_size parameter
...s *per channel*. Also, more than 20 ms frames are a bad > idea. > > Jean-Marc > > danflu at uninet.com.br a ?crit : > >> Hi, >> >> I'm using the echo cancellation api and I would like to >> clarify the 'frame_size' parameter used in >> speex_echo_state_init(frame_size,filter_length). >> >> >> In the 'docs' it says: >> >> "...where frame_size is the amount of data (in samples)you >> want to process at once..." >> >> So... here are my questions: >> >> if I use stereo input/out...
2010 Sep 29
2
Using Speex Echo Canceller
...to use only the speex echo cancellation module w/o using the speex codec? Here's the scenario: 1. I have my voice recorded in PCM audio file format 2. I want to cleanup the recorded voice by removing any echo included in the audio file/buffer 3. can I just use the ff APIs? - SpeexEchoState* speex_echo_state_init() - int speex_echo_ctl() - void speex_echo_capture() 4. then, will it be possible to encode the output buffer from speex_echo_capture() to any codec? Like G711? GSM? etc.... I'm quite new to audio format concepts/development, so if you have any ideas your advice is highly appreciated...
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_echo_play...
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
2004 Aug 06
0
echo cancel
...eller can be used with other codecs like G711? If by "used with other codecs", you mean that you can use the result as input to any codec you like, the answer is yes. > Somebody could send me some documentation or sample, or explain the next > functions: > > SpeexEchoState *speex_echo_state_init(int frame_size, int filter_length); frame size is the number of samples you want to process at once. Recommended is in the order of 256 (ideally a power of 2, but other values will work). filter_length is the approximate length you want your filter to be. For example, if you want a filter that cov...
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 my "echo cancel"...
2006 Jan 31
0
About echo cancelling
...p 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@USherbrooke.ca] Sent: Tuesday, Janu...
2008 Aug 23
1
Echo canceller
...(spx_int16_t*)output); memcopy(buffer,output,settings.bufferSize()); 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?
2009 Jan 28
1
AEC question
Please, I noticed in the AEC module documentation that I can set the sampling rate and the frame size (in samples), but I found nothing regarding to the number of channels, no SET and no GET... So, I 'd like to know how I setup the channel's count on AEC.. if the buffer passed to the echo cancellation function should be mono or stereo... Another question: Is there a preferred
2009 Dec 16
1
Clarification of the AEC parameters
Hi, I would like to have some more information about the parameter of speex_echo_state_init. I have a clear idea of the importance of the filter_length in the echo cancellation, what it is more obscure for me is the role of frame_size and how its value affect the algorithm. Let use, for example, frame_size = 400, would I obtain the same result of using frame_size = 200 but with half metho...
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_cancellation(echo_state,target,source,out); t...
2010 May 26
1
Reseting Echo State
Hello guys, I want to make echo tail parameter in my app changeable during run-time. So my question is:f Should I use speex_echo_state_reset function for this? Just call speex_echo_state_init function with new values after that? Or perform a full de-initialization and initialize echo cancellation with new tail value? I'm also using preprocessor - does the same apply to it? Thanks! Regards, Anton A. Shpakovsky -------------- next part -------------- An HTML attac...
2006 Oct 24
1
fixed point AEC
Thanks Jean, I missed that detail. I have a few more compile errors if you could help me with it => In function speex_echo_state_init in mdf.c I am getting error: "undefined reference to exp". I don't see a fixed point implementation of "exp". Can you point me to the correct files. I am using the following files from speex 1.2 beta1 => mdf.c, math_approx.c, misc.c, fft_wrap.c, kiss_fft.c, config...
2006 Nov 02
1
echo cancellation on PDA
...he 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(decoded_buf) In Recording thread wait f...
2008 Feb 08
1
Echo Canceller on Windows Mobile
...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_FRAME_SIZE, ECHO_FILTER_SIZE); ECHO_FRAME_SIZE = 128 ECHO_FILTER_SIZE = 1024 Any ideas? Do you know whether any one has this running on Windows Mobile platforms successfully. Regards --------------------------------- Sent from Yahoo! &#45; a smarter inb...