1 //初始化ES8388,更改为双麦 2 ESP_LOGI(TAG, "[ 2 ] Start codec chip"); 3 audio_hal_codec_config_t audio_hal_codec_cfg = AUDIO_HAL_ES8388_DEFAULT(); 4 audio_hal_handle_t hal = audio_hal_init(&audio_hal_codec_cfg, 0); 5 audio_hal_ctrl_codec(hal, AUDIO_HAL_CODEC_MODE_ENCODE, AUDIO_HAL_CTRL_START);
固件启动后,会自动录音20S,完成后在SD卡根目录保存一个REC.wav文件。