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
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:
- 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.
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.