XCORE SDK
XCORE Software Development Kit
Macros
Pre-defined AGC configuration profiles

Macros

#define AGC_PROFILE_ASR
 AGC profile tuned for Automatic Speech Recognition (ASR). More...
 
#define AGC_PROFILE_FIXED_GAIN
 AGC profile tuned to apply a fixed gain. More...
 

Detailed Description

Macro Definition Documentation

◆ AGC_PROFILE_ASR

#define AGC_PROFILE_ASR
Value:
.adapt = 1, \
.adapt_on_vad = 1, \
.soft_clipping = 1, \
.gain = float_to_float_s32(500), \
.max_gain = float_to_float_s32(1000), \
.min_gain = float_to_float_s32(0), \
.upper_threshold = float_to_float_s32(0.9999), \
.lower_threshold = float_to_float_s32(0.7000), \
.gain_inc = float_to_float_s32(1.197), \
.gain_dec = float_to_float_s32(0.87), \
.lc_enabled = 0, \
.lc_n_frame_far = 0, \
.lc_n_frame_near = 0, \
.lc_corr_threshold = float_to_float_s32(0), \
.lc_bg_power_gamma = float_to_float_s32(0), \
.lc_gamma_inc = float_to_float_s32(0), \
.lc_gamma_dec = float_to_float_s32(0), \
.lc_far_delta = float_to_float_s32(0), \
.lc_near_delta = float_to_float_s32(0), \
.lc_near_delta_far_active = float_to_float_s32(0), \
.lc_gain_max = float_to_float_s32(0), \
.lc_gain_double_talk = float_to_float_s32(0), \
.lc_gain_silence = float_to_float_s32(0), \
.lc_gain_min = float_to_float_s32(0), \
}
float_s32_t float_to_float_s32(const float x)
Convert an IEEE754 float to a float_s32_t.
Definition: xs3_scalar_float_s32.c:44
AGC configuration structure.
Definition: agc_api.h:38

AGC profile tuned for Automatic Speech Recognition (ASR).

◆ AGC_PROFILE_FIXED_GAIN

#define AGC_PROFILE_FIXED_GAIN
Value:
.adapt = 0, \
.adapt_on_vad = 0, \
.soft_clipping = 0, \
.gain = float_to_float_s32(25), \
.max_gain = float_to_float_s32(0), \
.min_gain = float_to_float_s32(0), \
.upper_threshold = float_to_float_s32(0), \
.lower_threshold = float_to_float_s32(0), \
.gain_inc = float_to_float_s32(0), \
.gain_dec = float_to_float_s32(0), \
.lc_enabled = 0, \
.lc_n_frame_far = 0, \
.lc_n_frame_near = 0, \
.lc_corr_threshold = float_to_float_s32(0), \
.lc_bg_power_gamma = float_to_float_s32(0), \
.lc_gamma_inc = float_to_float_s32(0), \
.lc_gamma_dec = float_to_float_s32(0), \
.lc_far_delta = float_to_float_s32(0), \
.lc_near_delta = float_to_float_s32(0), \
.lc_near_delta_far_active = float_to_float_s32(0), \
.lc_gain_max = float_to_float_s32(0), \
.lc_gain_double_talk = float_to_float_s32(0), \
.lc_gain_silence = float_to_float_s32(0), \
.lc_gain_min = float_to_float_s32(0), \
}

AGC profile tuned to apply a fixed gain.