Displaying 20 results from an estimated 32 matches for "speex_echo_ctl".
2011 Apr 04
3
[patch] speex AEC state save & restore
...cially
after a process restart or machine reboot. This enables immediate echo
cancellation the second time the AEC is run.
Of course this works only if the acoustic environment of the device
doesn't change and if the soundcard latency is constant.
To use this feature, proceeed as this:
- use speex_echo_ctl() with SPEEX_ECHO_GET_BLOB to obtain a
SpeexEchoStateBlob, at the end of an audio session, when the echo
canceller is supposed to be converged.
- save the blob to a disk file for example, using
speex_echo_state_blob_get_data() and speex_echo_state_blob_get_size() to
retrieve the actual data
To re...
2008 Sep 22
2
Newbie: Get echo cancellation level
...39;m using speex to perform echo cancellation in Windows. I'm aware of the problem about out of sync clocks in record and play sample rates in usual sound cards . In order to have an idea of how good is my echo cancelation working I would like to know if there is any #define thing i can pass to speex_echo_ctl to get the actual level of echo cancellation. If not, how can i extract that value from the library?
By the way, is any software solution for out of sync problem ? I'm trying to keep input and output buffers adjusted by resampling, but it does not work well.
Thanks
-------------- nex...
2010 Sep 29
2
Using Speex Echo Canceller
...lation 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..
Thanks in advance
Chri...
2008 Aug 23
1
Echo canceller
...,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?
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_...
2011 Apr 04
0
[patch] speex AEC state save & restore
...e soundcard latency is constant.
That's probably a fair assumption for a desktop machine, but totally
bogus for a notebook. Is there a clear way to tell the difference, and
make a judgement as to whether this feature should be enabled.
> To use this feature, proceeed as this:
> - use speex_echo_ctl() with SPEEX_ECHO_GET_BLOB to obtain a
> SpeexEchoStateBlob, at the end of an audio session, when the echo
> canceller is supposed to be converged.
> - save the blob to a disk file for example, using
> speex_echo_state_blob_get_data() and speex_echo_state_blob_get_size() to
> retri...
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:
2009 Oct 16
1
Please help in understanding Speex echo cancellation
...the same soundcard for both recording and playback
Speex doesn't seem to cancel any echo at all. My frame size is 20 msec long
(640 samples, ultra-wideband), Filter length is
10 frames (6400 samples). I beleive that I correctly initialize the speex
echo state (sample rate value is being set in speex_echo_ctl, also speex
echo state is registered withing preprocessor state).
Please help someone, or at least send a piece of code which works.
Any help would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/...
2006 Nov 02
1
echo cancellation on PDA
...e 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 for recorded data coming (every 20ms);
short*...
2006 Dec 05
2
problem with echo cancellation
...after pauses in
speech. Looks like the filter re-adapts after each pause. When the delay is at
least 50 ms, the output of echo cancellation doesn?t differ much from mic input.
I use speex1-2beta1 version, and i applied the patch you suggested. I use a
sampling rate of 8000 which i have set with speex_echo_ctl(), a frame size of
128 and tail length of 2048. I have tried other tail lengths (640, 1024, 4096)
with no significant effect. I use the same soundcard for capture and playback,
and quality speakers and microphone to avoid nonlinear distortions.
How much attenuation can the echo canceller norma...
2010 Jun 28
1
ACE does not work for me at all.
...ng 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(_den_state, SPEEX_PREPROCESS_SET_DENOISE, &tmp);
t...
2007 Dec 10
2
AEC gets worse as sample rate increases
...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 input as well as
the processed audio to different wave files. The EC is set up with a
tail of about 200 ms and the EC sample rate is also set via the
speex_echo_ctl intreface. I am also hooking up the EC to the
preprocessor for additional echo reduction.
What I observed is that 8K and 11.025K work very well, but the
quality of the AEC degrades as the sample rate goes up.
I am wondering if this behavior is normal. Has anybody tried to run
the speex AE...
2010 Sep 30
2
[SPAM] [BombData][alltestmode] Using Speex Echo Canceller
...e 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...
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
2006 Dec 05
0
problems with speex_echo_cancel()
...after pauses in
speech. Looks like the filter re-adapts after each pause. When the delay is at
least 50 ms, the output of echo cancellation doesn?t differ much from mic input.
I use speex1-2beta1 version, and i applied the patch you suggested. I use a
sampling rate of 8000 which i have set with speex_echo_ctl(), a frame size of
128 and tail length of 2048. I have tried other tail lengths (640, 1024, 4096)
with no significant effect. I use the same soundcard for capture and playback,
and quality speakers and microphone to avoid nonlinear distortions.
How much attenuation can the echo canceller norma...
2006 Dec 05
0
problem with echo cancellation
...like the filter re-adapts after each pause. When the delay is at
> least 50 ms, the output of echo cancellation doesn?t differ much from mic input.
>
>
>
> I use speex1-2beta1 version, and i applied the patch you suggested. I use a
> sampling rate of 8000 which i have set with speex_echo_ctl(), a frame size of
> 128 and tail length of 2048. I have tried other tail lengths (640, 1024, 4096)
> with no significant effect. I use the same soundcard for capture and playback,
> and quality speakers and microphone to avoid nonlinear distortions.
>
>
>
> How much atten...
2007 Dec 10
0
AEC gets worse as sample rate increases
...e, records whatever
> comes in from the microphone and applies the Speex AEC and preprocessor
> on the input. It then saves the raw input as well as the processed
> audio to different wave files. The EC is set up with a tail of about
> 200 ms and the EC sample rate is also set via the speex_echo_ctl
> intreface. I am also hooking up the EC to the preprocessor for
> additional echo reduction.
>
> What I observed is that 8K and 11.025K work very well, but the quality
> of the AEC degrades as the sample rate goes up.
>
> I am wondering if this behavior is normal. Has anyb...
2008 Feb 12
0
Patch to get impulse response from echo canceller
...st->fft_table, st->wtmp2, st->wtmp);
+#else
+ spx_ifft(st->fft_table, &st->W[j*N], st->wtmp);
+#endif
+ for(i=0;i<n;i++)
+ filt[j*n+i] = PSHR32(MULT16_16(32767,st->wtmp[i]), WEIGHT_SHIFT);
+ }
+ }
+ break;
default:
speex_warning_int("Unknown speex_echo_ctl request: ", request);
return -1;
2009 Feb 13
0
Why speex echo cancellation is not work
...MPLERATE 8000
#define 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], r...
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);
the output stream is almost the same as the...