Skip to content

Latest commit

 

History

History
 
 

record_while_play

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Example of Playing and Recording at the same time

This example performs a combination of the following two actions at the same time:

  • play mp3 song from SD card or from http server
  • record a wav file to SD card or do speech recognition

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:

  • Connect speakers or headphones to the board.
  • Insert a microSD card loaded with a MP3 file 'test.mp3' into board's slot.

Configure the example:

  • Select compatible audio board in menuconfig > Audio HAL.

Load and run the example:

  • The board will start playing automatically.
  • Press the any button or touch(except Boot and Rst), the board will stop running.

Note

This example uses HTTP by default to play music and voice recognition at the same time. You can configure input and output stream in menuconfig.