Skip to content

Latest commit

 

History

History
 
 

play_mp3_control

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Play mp3 file with playback control

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.

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.

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