Skip to content

Latest commit

 

History

History
 
 

element_cb_sdcard_amr

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Recoding AMR file to microSD

The example records 10 seconds AMR-NB or AMR-WB audio file to microSD Card. The AMR audio compression format is optimized for speech coding and produces much smaller output files comparing to other popular codecs.

This demo makes use of callback function instead of Message Queue for events. For instance, pipeline_amr_sdcard example uses Message Queue for events.

Compatibility

Compatibility

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 alt text ESP32 alt text
ESP32-LyraTD-MSC alt text ESP32 alt text
ESP32-LyraT-Mini alt text ESP32 alt text
ESP32-Korvo-DU1906 alt text ESP32 alt text
ESP32-S2-Kaluga-1 Kit alt text ESP32-S2 alt text

Usage

Prepare the audio board:

  • Insert a microSD card into board's slot.

Configure the example:

  • Select compatible audio board in menuconfig > Audio HAL.
  • You may change between AMR-NB and AMR-WB encoder 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.amr or /sdcard/rec.Wamr to hear the recorded file.