search for: agc_level

Displaying 18 results from an estimated 18 matches for "agc_level".

2005 Sep 22
1
Noise :-(
...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_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->buff...
2008 Mar 18
1
Patch to make SPEEX_PREPROCESS_GET_AGC_GAIN use dB, and _SET_AGC_LEVEL use a int32
Hi, The attached patch fixes an incistency in my earlier patch. Whereas the rest of the AGC ctls are in dB, GET_AGC_GAIN was linear. This patch fixes that. It also changes the API for _GET and _SET_AGC_LEVEL to use a int32 instead of a float, meaning we don't need to do a API change when 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.0000...
2005 Oct 11
1
noise when passing trougth speex_preprocess
...ERATE 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, 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) -...
2009 Feb 24
2
complie speex on pxa-270
Hi, Speex-dev: ? I have some problems about complie speex on pxa-270. I use libspeex.so.1.4.0 at my platform after complie speex and all function is ok, but the cpu loading is 99%. How can i do to reduce the cpu loading? ? note: 1. My Platform are os: linux 2.6.19 , cc: gcc-2.95.3 , cpu: pxa-270, ogg: libogg-1.1.3, speex: speex-1.2beta3 2. I configure speex by the follow command. ./configure
2014 Jan 08
1
Some Speex AGC Questions
...ntu. The version of speex is 1.2rc1. When I run with the default settings, the audio seems OK. It's not clear if preprocess is actually doing anything. If I turn AGC on, the sound level becomes almost inaudible. When I print the control parameters (the defaults), I get: DENOISE = 1 AGC = 0 AGC_LEVEL = 1174011904 AGC_INCREMENT = 12 AGC_DECREMENT = -40 AGC_MAX_GAIN = 30 VAD = 0 DEREVERB = 0 NOISE_SUPPRESS = -15 QUESTION number 1: Is there a guide to "tuning" the AGC? Is there a document that tells what they really mean and how to adjust them? QUESTION number 2: I see that VAD, DEREV...
2007 Feb 27
2
Preprocessor denoise. Does it work?
...a if the maximum sample in a frame is less than 4% of saturation or 20% of the maximum sample yet seen. It's about 8 lines of code. I'm using the 32KHz ultra wide band mode with 16 bit sample data and am setting all of AGC, VAD, DEREVERB and DENOISE to 1 using speex_preprocess_ctl(). AGC_LEVEL is set to 20000.0. Any thoughts? Andy
2005 Jun 20
1
Speech detection in preprocessor with echo
...it from 1) exceeding a specified level of amplification and 2) enable and disable adaptation, so I can freeze it at a certain level while speech is not detected. It's mostly just a matter of doing this at the end of speex_compute_agc(): if (!st->agc_frozen) { agc_gain = st->agc_level/st->loudness2; /*fprintf (stderr, "%f %f %f %f\n", active_bands, st->loudness, st->loudness2, agc_gain);*/ if (agc_gain>st->agc_max_gain) /* was 200 */ agc_gain = st->agc_max_gain; /* was 200*/ } else agc_gain = st->agc_gain; st->agc_gain...
2005 Jun 22
1
Speech detection in preprocessor with echo
...> > and disable adaptation, so I can freeze it at a certain level while > > speech is not detected. It's mostly just a matter of doing this at the > > end of speex_compute_agc(): > > > > if (!st->agc_frozen) > > { > > agc_gain = st->agc_level/st->loudness2; > > /*fprintf (stderr, "%f %f %f %f\n", active_bands, st->loudness, st->loudness2, agc_gain);*/ > > if (agc_gain>st->agc_max_gain) /* was 200 */ > > agc_gain = st->agc_max_gain; /* was 200*/ > > } > > else &...
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
2007 Feb 27
0
Preprocessor denoise. Does it work?
...iculty with speech enhancement because you've got all kinds of noise, and you never know what the mic recording level is. > I'm using the 32KHz ultra wide band mode with 16 bit sample data and > am setting all of AGC, VAD, DEREVERB and DENOISE to 1 using > speex_preprocess_ctl(). AGC_LEVEL is set to 20000.0. Are you using a frame size in the 10-20 ms range? Jean-Marc
2008 Feb 21
0
st->nb_loudness_adapt removal patch
...max_gain; /**< Maximum gain allowed */ float max_increase_step; /**< Maximum increase in gain from one frame to another */ float max_decrease_step; /**< Maximum decrease in gain from one frame to another */ @@ -516,7 +515,6 @@ /*st->loudness = pow(AMP_SCALE*st->agc_level,LOUDNESS_EXP);*/ st->loudness = 1e-15; st->agc_gain = 1; - st->nb_loudness_adapt = 0; st->max_gain = 30; st->max_increase_step = exp(0.11513f * 12.*st->frame_size / st->sampling_rate); st->max_decrease_step = exp(-0.11513f * 40.*st->frame_size / st-&...
2008 May 07
0
how i can use agc function
hi, 1. I usr speex wb ,and find voice volume too small , my setting is : st->agc_enabled = 1; st->agc_level = 8000; I feel the agc function not work,how can i enhance the volume. 2. I test encode with 16.8K WB mode and decode with 23.8 WB mode, and find voice not good! with continues electric current sound . why? please help me. thanks a lot. tanger. -------------------...
2009 Mar 31
0
AGC at different sampling rate
Hi Jean-Marc and all, I was playing with the AGC with different sampling rate and I experienced smaller volume level when I increase the sample rate. Should I use a different value for AGC_LEVEL when using different sample rate? I'm using speex-1.2rc1.tar.gz Tks, Aymeric MOIZARD / ANTISIP amsip - http://www.antisip.com osip2 - http://www.osip.org eXosip2 - http://savannah.nongnu.org/projects/exosip/
2014 Jan 04
0
Some Speex AGC Questions
...ntu. The version of speex is 1.2rc1. When I run with the default settings, the audio seems OK. It's not clear if preprocess is actually doing anything. If I turn AGC on, the sound level becomes almost inaudible. When I print the control parameters (the defaults), I get: DENOISE = 1 AGC = 0 AGC_LEVEL = 1174011904 AGC_INCREMENT = 12 AGC_DECREMENT = -40 AGC_MAX_GAIN = 30 VAD = 0 DEREVERB = 0 NOISE_SUPPRESS = -15 QUESTION number 1: Is there a guide to "tuning" the AGC? Is there a document that tells what they really mean and how to adjust them? QUESTION number 2: I see that VAD, DEREV...
2009 May 28
1
DC component coming back after AGC
I'm getting confused, what's the problem exactly? The AGC doesn't remove the DC or it adds one? Jean-Marc Aymeric Moizard a ?crit : > Hi Jean-Marc & all, > > I'm currently working on a wav file with very low volume. > This wav also contains a DC component. > > Using testdenoise with modification (AGC turned on with > 20000.0 value) I'm able to
2004 Aug 06
4
Memory leak in denoiser + a few questions
...======================================== RCS file: /home/UniServ/dls/CVS/hms/app_conference/libspeex/preprocess.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- preprocess.c 2003/11/07 23:40:23 1.2 +++ preprocess.c 2004/02/06 17:10:24 1.3 @@ -145,6 +145,9 @@ st->agc_level = 8000; st->vad_enabled = 0; + st->speech_prob_start = SPEEX_PROB_START ; + st->speech_prob_continue = SPEEX_PROB_CONTINUE ; + st->frame = (float*)speex_alloc(2*N*sizeof(float)); st->ps = (float*)speex_alloc(N*sizeof(float)); st->gain2 = (float*)speex_allo...
2009 Jan 08
2
how to fix high freq noise?
Hi Jean-Marc, Thanks for the quick response! I am resending this mail hopefully in plain text. The following three version have been tried and all of them have the high frequency tones. speex-svn-14525 speex-1.2rc speex-svn-15540 I've isolated this down to the Speex encode/decode by sending silence (i.e. all zeros) to the encoder and displaying the decoder output in addition to
2004 Aug 06
1
More Speex (pre-processing) Options
Tom, You can look in my archives for my posts on this topic, but what I've found is that the echo canceller works to some extent, but if you're also using the other preprocessing (which you'd definitely need to do _after_ ec, otherwise ec probably won't work at all), the AGC function ends up reversing the effect of ec. That is, while ec reduces the echo, it doesn't