71 #include <sphinxbase/sphinxbase_export.h>
74 #include <sphinxbase/fe.h>
SPHINXBASE_EXPORT float32 agc_get_threshold(agc_t *agc)
Get the current AGC noise threshold.
SPHINXBASE_EXPORT void agc_noise(agc_t *agc, mfcc_t **mfc, int32 n_frame)
Apply AGC using noise threshold to the given block of MFC vectors.
mfcc_t max
Estimated max for current utterance (for AGC_EMAX)
SPHINXBASE_EXPORT void agc_max(agc_t *agc, mfcc_t **mfc, int32 n_frame)
Apply AGC to the given mfc vectors (normalize all C0 mfc coefficients in the given input such that th...
SPHINXBASE_EXPORT const char * agc_type_str[]
String representations of agc_type_t values.
mfcc_t obs_max
Observed max in current utterance.
int32 obs_frame
Whether any data was observed after prev update.
Basic type definitions used in Sphinx.
SPHINXBASE_EXPORT agc_t * agc_init(void)
Initialize AGC structure with default values.
SPHINXBASE_EXPORT void agc_free(agc_t *agc)
Free AGC structure.
enum agc_type_e agc_type_t
Types of acoustic gain control to apply to the features.
int32 obs_utt
Whether any utterances have been observed.
SPHINXBASE_EXPORT void agc_set_threshold(agc_t *agc, float32 threshold)
Set the current AGC noise threshold.
mfcc_t noise_thresh
Noise threshold (for AGC_NOISE only)
SPHINXBASE_EXPORT void agc_emax_set(agc_t *agc, float32 m)
Set the current AGC maximum estimate.
struct agc_s agc_t
Structure holding data for doing AGC.
Structure holding data for doing AGC.
SPHINXBASE_EXPORT void agc_emax_update(agc_t *agc)
Update AGC parameters for next utterance.
SPHINXBASE_EXPORT void agc_emax(agc_t *agc, mfcc_t **mfc, int32 n_frame)
Apply AGC to the given block of MFC vectors.
agc_type_e
Types of acoustic gain control to apply to the features.
SPHINXBASE_EXPORT float32 agc_emax_get(agc_t *agc)
Get the current AGC maximum estimate.
SPHINXBASE_EXPORT agc_type_t agc_type_from_str(const char *str)
Convert string representation (from command-line) to agc_type_t.