BES SDK部分配置修改

随手记录一些BES SDK配置

修改上行音频增益

#define CODEC_SADC_VOL (2)
tgt_hardware.h

修改MIC配置

根据原理图配置2mic、3mic或者更多mic

#if SPEECH_CODEC_CAPTURE_CHANNEL_NUM == 2
//#define CFG_HW_AUD_INPUT_PATH_MAINMIC_DEV   (AUD_CHANNEL_MAP_CH0 | AUD_CHANNEL_MAP_CH1 | VMIC_MAP_CFG)
#define CFG_HW_AUD_INPUT_PATH_MAINMIC_DEV   (AUD_CHANNEL_MAP_CH0 | AUD_CHANNEL_MAP_CH4 | AUD_VMIC_MAP_VMIC3 | AUD_VMIC_MAP_VMIC5)
#define CFG_HW_AUD_INPUT_PATH_FARMIC_DEV    (AUD_CHANNEL_MAP_CH1 | AUD_CHANNEL_MAP_CH2 | AUD_VMIC_MAP_VMIC5)
#elif SPEECH_CODEC_CAPTURE_CHANNEL_NUM == 3
// #define CFG_HW_AUD_INPUT_PATH_MAINMIC_DEV   (AUD_CHANNEL_MAP_CH0 | AUD_CHANNEL_MAP_CH1 | AUD_CHANNEL_MAP_CH4 | VMIC_MAP_CFG)
#define CFG_HW_AUD_INPUT_PATH_MAINMIC_DEV   (AUD_CHANNEL_MAP_CH0 | AUD_CHANNEL_MAP_CH1 | AUD_CHANNEL_MAP_CH4 | AUD_VMIC_MAP_VMIC3 | AUD_VMIC_MAP_VMIC5)
#define CFG_HW_AUD_INPUT_PATH_FARMIC_DEV    (AUD_CHANNEL_MAP_CH0 | AUD_CHANNEL_MAP_CH1 | AUD_CHANNEL_MAP_CH2 | AUD_VMIC_MAP_VMIC5)
#else
#define CFG_HW_AUD_INPUT_PATH_MAINMIC_DEV   (AUD_CHANNEL_MAP_CH0 | VMIC_MAP_CFG)
#endif
tgt_hardware.c

发表回复

电子邮件地址不会被公开。必填项已用 * 标注