ESP32-LyraT-Mini_V1.2 运行例程 OPUS编码无法重采样无法设置为单声道
Posted: Fri Jul 26, 2024 6:43 am
Code: Select all
rsp_filter_cfg_t rsp_file_cfg = DEFAULT_RESAMPLE_FILTER_CONFIG();
rsp_file_cfg.src_rate = SAMPLE_RATE;
rsp_file_cfg.src_ch = 2;
rsp_file_cfg.dest_rate = SAMPLE_RATE;
rsp_file_cfg.dest_ch = 1;
rsp_file_cfg.complexity = 0;
rsp_file_cfg.down_ch_idx = 1;
audio_element_handle_t resample = rsp_filter_init(&rsp_file_cfg);