The example records 10 seconds WAV and AMR(AMR-NB or AMR-WB) audio file to microSD card via audio pipeline API.
This example is will run on boards marked with green checkbox. Please remember to select the board in menuconfig as discussed is section Usage below.
Board Name | Getting Started | Chip | Compatible |
---|---|---|---|
ESP32-LyraT | |||
ESP32-LyraTD-MSC | |||
ESP32-LyraT-Mini | |||
ESP32-Korvo-DU1906 | |||
ESP32-S2-Kaluga-1 Kit |
Prepare the audio board:
- Insert a microSD card required memory of 1 MB into board's SD card slot.
Configure the example:
- Select compatible audio board in
menuconfig
>Audio HAL
. - You may select encoders between AMR-NB and AMR-WB in
menuconfig
>Example configuration
>Audio encoder file type
.
Load and run the example:
- Speak to the board once prompted on the serial monitor.
- After finish, you can open
/sdcard/rec_out.wav
and/sdcard/rec_out.amr
(or/sdcard/rec_out.Wamr
) to hear the recorded file.