Functionality extension of play_mp3 example by adding possibility to start, stop, pause and resume playback, as well as adjust volume.
The playback control is done using ESP32 touch pad functionality.
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.
Configure the example:
- Select compatible audio board in
menuconfig
>Audio HAL
.
Load and run the example. Use buttons to control how audio is played:
- Use [Play] to start, pause and resume playback.
- Adjust sound volume with [Vol-] or [Vol+].
- To stop the pipeline press [Set].