search for: speex_preprocess_set_agc_level

Displaying 14 results from an estimated 14 matches for "speex_preprocess_set_agc_level".

2005 Jun 03
0
SPEEX_PREPROCESS_SET_AGC_LEVEL
...om 1 to 32768, with the default being 8000. I've been using 70% of the maximum in my application. You should probably experiment to see what works best for you. Tom Marc <maarcc@gmail.com> wrote: > > Hi. > I am trying out 1.1.9. What should be the value range for this > SPEEX_PREPROCESS_SET_AGC_LEVEL?? And the ideal value for a general default is? > Thanks!
2004 Aug 06
5
Memory leak in denoiser + a few questions
...loced in line 167). It's in Speex 1.1.4 by the way. I'm trying to make the denoiser work with my application and has got reasonable noise reduction after applying the denoiser. I, however, haven't been able to find any information of what the purpose of SPEEX_PREPROCESS_SET_AGC and SPEEX_PREPROCESS_SET_AGC_LEVEL is? Kind regards Bjoern D. Rasmussen www.bearware.dk _________________________________________________________________ Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/...
2005 Oct 11
1
noise when passing trougth speex_preprocess
...e = 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, SPEEX_PREPROCESS_SET_VAD, &c); [LOOP] /* Convert from 8 bit unsigned to 16 bit signed */ TEMP_Buffer[tbc] = (spx_int16_t)((int)buffer[c] << 8) - 32640; tbc++; if(tbc > NN) { ret...
2010 Jun 28
1
ACE does not work for me at all.
...eex_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 is not loudy enough by default. 8000 speex_preprocess_ctl(_den_state, SPEEX_PREPROCESS_SET_AGC_LEVEL, &ftmp); tmp=1; speex_preprocess_ctl(_den_state, SPEEX_PREPROCESS_SET_VAD, &tmp); and following is how I cancel echo: I have a player class and a recorder class using windows wavein and waveout with waveInProc and waveOutProc event handlers void __stdcall WFAudioPlayer::WaveOutProc(HWA...
2005 Sep 22
1
Noise :-(
...rocess_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_PREPROCESS_SET_AGC_LEVEL, &t); } c = Modem->vox; speex_preprocess_ctl(Modem->speex_pp_state, SPEEX_PREPROCESS_SET_VAD, &c); /* vai */ for(c=0;c<Modem->buffer_size;c++) { if((Modem->buffer[c] == 0x10)&&(Modem->buffer[c+1] == 0x10)) { /* DLE */ c+=2; DL...
2009 Jan 19
2
error
...error: ?SPEEX_PREPROCESS_SET_AGC? undeclared (first use in this function) msconf.c:97: error: ?Channel? has no member named ?speex_pp? msconf.c:97: error: ?SPEEX_PREPROCESS_SET_AGC_LEVEL? undeclared (first use in this function) msconf.c:106: error: ?Channel? has no member named ?speex_pp? msconf.c:108: error: ?Channel? has no member named ?speex_p...
2004 Aug 06
0
Memory leak in denoiser + a few questions
...39;s in Speex >1.1.4 by the way. > >I'm trying to make the denoiser work with my application and has got >reasonable noise reduction after applying the denoiser. I, however, >haven't been able to find any information of what the purpose of >SPEEX_PREPROCESS_SET_AGC and SPEEX_PREPROCESS_SET_AGC_LEVEL is? > >Kind regards > >Bjoern D. Rasmussen >www.bearware.dk > >_________________________________________________________________ >Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk > >--- >8 ---- >List archives: http://www.xiph.org/archives...
2005 Jun 03
1
Speex 1.1.9 is out -- Try the new echo canceller
Hi everyone, I've just released Speex 1.1.9. The main change in this release is the echo canceller work sponsored by Tipic Inc (http://www.tipic.com/). It is now possible to do acoustic echo cancellation and obtain good attenuation after a short adaptation time. This has been tested at 8 kHz, but it should also work at 16 khz and above, so give it a try. There were also some fixes to the
2008 Mar 18
1
Patch to make SPEEX_PREPROCESS_GET_AGC_GAIN use dB, and _SET_AGC_LEVEL use a int32
...we get a fixed point AGC. Best regards, Thorvald -------------- next part -------------- --- speex/libspeex/preprocess.c 2008-02-21 15:41:54.000000000 +0100 +++ spx/libspeex/preprocess.c 2008-03-18 18:09:30.000000000 +0100 @@ -1067,14 +1067,14 @@ break; #ifndef DISABLE_FLOAT_API case SPEEX_PREPROCESS_SET_AGC_LEVEL: - st->agc_level = (*(float*)ptr); + st->agc_level = (*(spx_int32_t*)ptr); if (st->agc_level<1) st->agc_level=1; if (st->agc_level>32768) st->agc_level=32768; break; case SPEEX_PREPROCESS_GET_AGC_LEVEL: - (*(float*)...
2011 Aug 31
0
How can I use preprocessor standalone with a wav file?
...) { perror(outFile); if (close_in == 1) fclose(fin); exit(1); } st = speex_preprocess_state_init(NN, 22050); i=1; speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_AGC, &i); //enabling AGC; denoise is enabled by default i=8000; speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_AGC_LEVEL, &i); while (1) { int vad; fread(in, sizeof(short), NN, fin); if (feof(fin)) break; vad = speex_preprocess_run(st, in); fwrite(in, sizeof(short), NN, fout); count++; } speex_preprocess_state_destroy(st); fclose(fin); fclose(f...
2008 May 29
0
Again, teach me speex AEC please!
...et_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_DECAY, &yes); speex_preprocess_ctl(pCodec->pPre, SPEEX_PREPROCESS_SET_DEREVERB_LEVEL, &yes); speex_preprocess_...
2007 Oct 04
3
Audio Speed Variability
...SPEEX_PREPROCESS_SET_DEREVERB, &dreverb); speex_preprocess_ctl(preprocessorState, SPEEX_PREPROCESS_SET_DEREVERB_DECAY, &dereverb_decay); speex_preprocess_ctl(preprocessorState, SPEEX_PREPROCESS_SET_DEREVERB_LEVEL, &dereverb_level); speex_preprocess_ctl(preprocessorState, SPEEX_PREPROCESS_SET_AGC_LEVEL, &agcLevel); Thank you for any input you might have! Jamie Stanton
2004 Aug 06
2
Memory leak in denoiser + a few questions
On Mar 28, 2004, at 8:23 PM, Jean-Marc Valin wrote: >> The st->zeta pointer isn't freed in the >> speex_preprocess_state_destroy() >> function of the preprocess.c file (alloced in line 167). It's in >> Speex 1.1.4 >> by the way. > > Oops... Thanks for letting me know. I'll change that for the next > release (in the mean time, the fix is
2004 Aug 06
4
Memory leak in denoiser + a few questions
...control the preprocessor parameters */ int speex_preprocess_ctl(SpeexPreprocessState *st, int request, void *ptr); - +#define SPEEX_PROB_START 0.35 +#define SPEEX_PROB_CONTINUE 0.1 #define SPEEX_PREPROCESS_SET_DENOISE 0 #define SPEEX_PREPROCESS_GET_DENOISE 1 @@ -122,6 +127,12 @@ #define SPEEX_PREPROCESS_SET_AGC_LEVEL 6 #define SPEEX_PREPROCESS_GET_AGC_LEVEL 7 + +#define SPEEX_PREPROCESS_SET_PROB_START 8 +#define SPEEX_PREPROCESS_GET_PROB_START 9 + +#define SPEEX_PREPROCESS_SET_PROB_CONTINUE 10 +#define SPEEX_PREPROCESS_GET_PROB_CONTINUE 11 #ifdef __cplusplus ================================================...