AEC Application Functions
APP_AEC API Brief
Application |
Brief |
|---|---|
application for AEC initialize |
|
application for reset app_aec_env environment variable |
|
handle function of process AEC data |
|
fill output PCM data or rx_sco_data to p_aec_env->aec_rin_rb |
|
read out from p_aec_env->aec_out_rb |
|
get filled size of app_aec_env.aec_out_rb ring buffer |
APP_AEC API Reference
Header File
Functions
-
void app_aec_init(int32_t sample_rate, uint32_t adc_enable_ch)
application for AEC initialize
- 参数:
sample_rate – [in] microphone sample rate(etc 16000,8000)
adc_enable_ch – [in] microphone channel aec(acoustic echo cancellation) enable
- 返回:
N/A
-
void app_aec_deinit(void)
application for reset app_aec_env environment variable
- 返回:
N/A
-
void app_aec_process_handle(void)
handle function of process AEC data
- 返回:
N/A
-
void app_aec_fill_rin_buf(uint8_t *buff, uint32_t len)
fill output PCM data or rx_sco_data to p_aec_env->aec_rin_rb
- 参数:
buff – [in] buffer to be write from
len – [in] write size
- 返回:
N/A
-
uint32_t app_aec_read_out_buf(uint8_t *buff, uint32_t len)
read out from p_aec_env->aec_out_rb
Data produced after the AEC to write p_aec_env->aec_out_rb ring buffer
- 参数:
buff – [out] buffer to be read into
len – [out] read size
- 返回:
actually read size
-
uint32_t app_aec_get_fill_buffer_size(void)
get filled size of app_aec_env.aec_out_rb ring buffer
- 返回:
the filled size of ring buffer
Structures
-
struct app_aec_env_t
Macros
-
AEC_ROM
-
AEC_FLASH
-
AEC_MIX
-
AEC_VER
-
AEC_FRAME_LEN
-
TEST1_START
-
TEST1_STOP
-
TEST2_START
-
TEST2_STOP