search for: speex_preprocess_ctl

Displaying 20 results from an estimated 68 matches for "speex_preprocess_ctl".

2009 Jun 18
2
Speex problem installing on CentOS 5.3
...tfully slogging my way through installing and configuring Asterisk 1.6.1.1 on CentOS 5.3. I'm learning lots and admiring the product but I'm having a problem getting speex to install and I would very much like to use it. It is not available in menuselect and the problem appears to be with speex_preprocess_ctl: [root at pbx01 asterisk-1.6.1.1]# grep -i speex config.log configure:43813: checking for speex_encode in -lspeex configure:43848: gcc -o conftest -g -O2 conftest.c -lspeex -lm >&5 configure:43906: checking speex/speex.h usability configure:43947: checking speex/speex.h presence configu...
2010 Jun 28
1
ACE does not work for me at all.
...E (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, SPEEX_PREPROCESS_SET_AGC, &tmp); ftmp=24000; // actually default is 8000(0,32768),here make it louder for voice...
2005 Oct 11
1
noise when passing trougth speex_preprocess
...all, as in subject, speex_preprocess inject noise in my data. Someone can help ? Here's the way that i'm using: #define NN 160 /* 20msec di audio */ #define AUDIO_SAMPLERATE 8000 spx_int16_t TEMP_Buffer[NN]; speex_pp_state = speex_preprocess_state_init(NN,AUDIO_SAMPLERATE); c = denoise; speex_preprocess_ctl(speex_pp_state, SPEEX_PREPROCESS_SET_DENOISE,&c); c = agc; speex_preprocess_ctl(speex_pp_state, SPEEX_PREPROCESS_SET_AGC, &c); if(agc) { float t; t = agc_level * 3276; speex_preprocess_ctl(speex_pp_state,SPEEX_PREPROCESS_SET_AGC_LEVEL,&t); } c = vox; speex_preprocess_ctl(speex_pp_state,...
2007 Oct 29
1
[patch] speex_preprocess_ctl
There is a problem in speex_preprocess_ctl. Both speech_prob_start and speech_prob_continue are set to 327.67 for all input values except 0 which results in 0. This is in floating point mode. I think the included patch fixes the problem. Mikael -------------- next part -------------- Index: libspeex/preprocess.c ========================...
2005 Sep 22
1
Noise :-(
...TEMP_Buffer[NN]; char DLECODE; /* Inizializza il preprocessore Speex se non inizializzato */ if(Modem->speex_pp_state == NULL) { Modem->speex_pp_state = speex_preprocess_state_init(NN,AUDIO_SAMPLERATE); } /* Modifica i parametri di Speex */ c = Modem->denoise; speex_preprocess_ctl(Modem->speex_pp_state, SPEEX_PREPROCESS_SET_DENOISE, &c); c = Modem->agc; speex_preprocess_ctl(Modem->speex_pp_state, SPEEX_PREPROCESS_SET_AGC, &c); if(Modem->agc) { float t; t = Modem->agc_level * 3276; speex_preprocess_ctl(Modem->speex_pp_state, SPEEX_PREP...
2004 Aug 06
2
Question about SPEEX_PREPROCESS_SET_DENOISE
Unlivable. I fix it. I forgot the speex_preprocess(m_pPreprocess, buf, NULL) need to do enough samples too. Tks a lot! And speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_DEREVERB, &tmp); f=.4; speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_DEREVERB_DECAY, &f); f=.3; speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_DEREVERB_LEVEL, &f); What are these source code...
2007 Jan 08
1
VAD in preprocessor
...SET_PROB_START, SPEEX_PREPROCESS_SET_PROB_CONTINUE parameters or other anything useful? int param_enabled = 1; int param_disabled = 0; int sampling_rate = 8000; SpeexPreprocessState *preprocess; preprocess = speex_preprocess_state_init(frame_size, sampling_rate); /* frame_size = 160 */ speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_DENOISE, &param_enabled); speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_VAD, &param_enabled); speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_AGC, &param_disabled); /* inputAdd is address of captured input voice (short *). is_speech...
2007 Nov 05
0
[patch] speex_preprocess_ctl
...h? >> It seems to me that it fixes a valid issue, but I'm not an expert. >> Anyways, I didn't see and follow-up or reply... >> >> Cheers, >> Mihai >> >> On Oct 29, 2007, at 7:14 PM, Mikael Magnusson wrote: >> >>> There is a problem in speex_preprocess_ctl. Both speech_prob_start >>> and speech_prob_continue are set to 327.67 for all input values >>> except 0 which results in 0. This is in floating point mode. >>> >>> I think the included patch fixes the problem. >>> >>> Mikael >>> Index:...
2007 Nov 05
2
[patch] speex_preprocess_ctl
...anything happen to this patch? > It seems to me that it fixes a valid issue, but I'm not an expert. > Anyways, I didn't see and follow-up or reply... > > Cheers, > Mihai > > On Oct 29, 2007, at 7:14 PM, Mikael Magnusson wrote: > > > There is a problem in speex_preprocess_ctl. Both speech_prob_start > > and speech_prob_continue are set to 327.67 for all input values > > except 0 which results in 0. This is in floating point mode. > > > > I think the included patch fixes the problem. > > > > Mikael > > Index: libspeex/preproc...
2010 Apr 05
2
Regarding problem with encoding / decoding
Hi, Tank you for your reply. I have tried the sample programs given the manual and done encoding and decoding a wave file. That is working fine. I have already read the manual and API reference. But this problem did not occured with the wave file encoding/decoding. While capturing the data from MIC and encoding/decoding is giving this problem. Thanks and Regards, Vijender Reddy, -----
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
2
Question about SPEEX_PREPROCESS_SET_DENOISE
I just download the 1.1.5. And it is working well. I try the xxx_int functions at least it works. But I did not find the performance improvement. But when I try this: m_pPreprocess= speex_preprocess_state_init(m_nSamplesPerFrame, m_nSampleRate); speex_preprocess_ctl(m_pPreprocess, SPEEX_PREPROCESS_SET_DENOISE, &tmp); and add speex_preprocess(m_pPreprocess, buf, NULL); before encode. The result is really unacceptable. I think there must be something wrong. And for the encode I did not use abr or vbr because I can not make them work. Does the...
2008 Dec 11
1
preprocessor VAD only rocognize between silence and not silence
...nt dtx = 0; speex_encoder_ctl(enc_state, SPEEX_SET_DTX, &dtx); int vbr = 0; speex_encoder_ctl(enc_state, SPEEX_SET_VBR, &vbr); // PREPROCESADOR pre_state = speex_preprocess_state_init(frame_size, samplingrate); int denoise = 1; speex_preprocess_ctl(pre_state, SPEEX_PREPROCESS_SET_DENOISE, &denoise); int pvad = 1; speex_preprocess_ctl(pre_state, SPEEX_PREPROCESS_SET_VAD, &pvad); int agc = 1; speex_preprocess_ctl(pre_state, SPEEX_PREPROCESS_SET_AGC, &agc); inicializado = true; } _...
2008 Feb 15
3
Voice activity detection
This must be a simple issue, but I cannot figure it out. I want to use VAD, but I don't know how to check if the actual frame has voice in it or not. So, in my code, I do: int tmp = 1; speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_VAD, &tmp); speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_DENOISE, &tmp); then later, for each frame speex_preprocess_run(preprocess_state, shortPointer); but how do I know if the frame contained voice? I tried if (preprocess_state-&...
2007 Oct 04
3
Audio Speed Variability
...n. The preprocessor state is being set as follows: preprocessorState = speex_preprocess_state_init(320, 16000); //640, 32000 int denoise = 0; int agc = 0; int vad = 0; int dreverb = 0; float agcLevel = 8000; float dereverb_decay = .5f; float dereverb_level = .2f; speex_preprocess_ctl(preprocessorState, SPEEX_PREPROCESS_SET_DENOISE, &denoise); speex_preprocess_ctl(preprocessorState, SPEEX_PREPROCESS_SET_AGC, &agc); speex_preprocess_ctl(preprocessorState, SPEEX_PREPROCESS_SET_VAD, &vad); speex_preprocess_ctl(preprocessorState, SPEEX_PREPROCESS_SET_DEREVE...
2010 Jul 20
0
[SPAM] [BombData][alltestmode] Re: Speex Echo Cancellation
...p;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_PREPROCESS_SET_ECHO_SUPPRESS, &value); speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_ECHO_SUPPRESS_A...
2007 Jun 26
2
Residual Echo Suppression by the Preprocessor
...he following initialization code (along with my already-working code that calls the AEC and preprocessor) to get the echo suppressor working? (Some declarations omitted, to save labor.) // m_EchoState = speex_echo_state_init( ... ); // m_PreProc = speex_preprocess_state_init( ... ); speex_preprocess_ctl( m_PreProc, SPEEX_PREPROCESS_SET_ECHO_STATE, m_EchoState ); //optional: INT32 maxEchoAttenuationDB = -40; //use negative; default is -40 speex_preprocess_ctl( m_PreProc, PREPROCESS_SET_ECHO_SUPPRESS, &maxEchoAttenuationDB ); INT32 maxNearEndEchoAttenuationDB...
2008 May 29
0
Again, teach me speex AEC please!
...ts_init(&pCodec->bits); pCodec->type = TYPE_ENCODE; pCodec->pSt = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB)); pCodec->pPre = speex_preprocess_state_init(DSP_FRAME_SIZE, FRAME_RATE); speex_encoder_ctl(pCodec->pSt, SPEEX_SET_QUALITY, &quality); speex_preprocess_ctl(pCodec->pPre, SPEEX_PREPROCESS_SET_AGC, &yes); speex_preprocess_ctl(pCodec->pPre, SPEEX_PREPROCESS_SET_AGC_LEVEL, &rate); speex_preprocess_ctl(pCodec->pPre, SPEEX_PREPROCESS_SET_DEREVERB, &yes); speex_preprocess_ctl(pCodec->pPre, SPEEX_PREPROCESS_SET_DEREVERB_DE...
2010 Feb 09
1
Stereo AEC
...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(preprocess_state_right , SPEEX_PREPROCESS_SET_ECHO_STATE, ec_state ); AEC: speex_echo_cancellation(ec_state, mic, echo_ref, output); speex_preprocess_run(preprocess_state_left, output); speex_preprocess_run(...
2010 Apr 20
0
Regarding problem with encoding / decoding
...uffer i am getting full noise. I am hearing voice with very low sound, noise is dominating the speech. I didn't talk also i am hearing lot of noise from speakers after decoding. I used following preprocess functions also but no use. int noise_sup=2; // from 2 to 40 and -ve numbers also no use speex_preprocess_ctl(preprocess_state,SPEEX_PREPROCESS_SET_NOISE_SUPPRESS, &noise_sup); int noise= 1; speex_preprocess_ctl(preprocess_state,SPEEX_PREPROCESS_SET_NOISE_SUPPRESS, &noise); int denoise=1; speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_DENOISE, &denoise); int agc=1; speex_preprocess...