search for: speex_preprocess_get_agc_gain

Displaying 5 results from an estimated 5 matches for "speex_preprocess_get_agc_gain".

2008 Mar 18
1
Patch to make SPEEX_PREPROCESS_GET_AGC_GAIN use dB, and _SET_AGC_LEVEL use a int32
...(*(float*)ptr) = st->agc_level; + (*(spx_int32_t*)ptr) = st->agc_level; break; #endif /* #ifndef DISABLE_FLOAT_API */ case SPEEX_PREPROCESS_SET_AGC_INCREMENT: @@ -1176,7 +1176,7 @@ (*(spx_int32_t*)ptr) = pow(st->loudness, 1.0/LOUDNESS_EXP); break; case SPEEX_PREPROCESS_GET_AGC_GAIN: - (*(spx_int32_t*)ptr) = (spx_int32_t) (st->agc_gain * 100.f); + (*(spx_int32_t*)ptr) = floor(.5+8.6858*log(st->agc_gain)); break; #endif case SPEEX_PREPROCESS_GET_PSD_SIZE:
2004 Aug 06
1
Proposed AGC additions
...with, gradually rising as it listens for something useful. For example, as I tested this today, the faint sound of birds chirping outside was enough to prevent the AGC from spazzing out! Anyway, what I propose are the following commands to let an application interface a little more with the AGC: SPEEX_PREPROCESS_GET_AGC_GAIN SPEEX_PREPROCESS_GET_AGC_MAX_GAIN SPEEX_PREPROCESS_SET_AGC_MAX_GAIN I've implemented these and use them for the following: 1) I display the current AGC gain to the user. 2) If the AGC gain has reached its maximum, I don't transmit any audio. This condition indicates to me that the AGC ha...
2008 Feb 02
0
Patch to make analysis data available.
...========================== --- include/speex/speex_preprocess.h (revision 14443) +++ include/speex/speex_preprocess.h (working copy) @@ -182,6 +182,26 @@ /** Get loudness */ #define SPEEX_PREPROCESS_GET_AGC_LOUDNESS 33 +/* Can't get gain */ +/** Get current gain (int32 percent) */ +#define SPEEX_PREPROCESS_GET_AGC_GAIN 35 + +/* Can't set spectrum size */ +/** Get spectrum size for power and noise spectrum (int32) */ +#define SPEEX_PREPROCESS_GET_SPECTRUM_SIZE 37 + +/* Can't set power spectrum */ +/** Get power spectrum (int32[] of squared values) */ +#define SPEEX_PREPROCESS_GET_POWER_SPECTRUM 39 + +/*...
2008 Feb 12
0
Second part of data export patch
...x/speex_preprocess.h get_psd/include/speex/speex_preprocess.h --- get_agc_gain/include/speex/speex_preprocess.h 2008-02-12 17:13:04.000000000 +0100 +++ get_psd/include/speex/speex_preprocess.h 2008-02-12 17:15:10.000000000 +0100 @@ -186,6 +186,22 @@ /** Get current gain (int32 percent) */ #define SPEEX_PREPROCESS_GET_AGC_GAIN 35 +/* Can't set spectrum size */ +/** Get spectrum size for power spectrum (int32) */ +#define SPEEX_PREPROCESS_GET_PSD_SIZE 37 + +/* Can't set power spectrum */ +/** Get power spectrum (int32[] of squared values) */ +#define SPEEX_PREPROCESS_GET_PSD 39 + +/* Can't set noise size...
2004 Aug 06
0
C++ wrapper for speex
...dec/tgAudioCodec.zip (This name only reflects the purpose of the classes in my project.) Oh and by the way, should you wish to compile this, you will need a 1.1.x version of Speex since it relies on the Speex preprocessor. And you will also have to remove the getAGCLevel() method or implement SPEEX_PREPROCESS_GET_AGC_GAIN, something I added to Speex for my own use. Good luck, Tom Ronald Madrid (mfcguru@yahoo.com) wrote: > > hi sirs, > > i am only recently studying speex and i'm looking for > a C++ wrapper for speex that has higer-level > implementations for the Encode and Decode functions...