mirror of
https://github.com/m5stack/esp-adf.git
synced 2026-05-20 10:25:46 -07:00
Play a file of selected format from HTTP
The demo plays either AAC, AMR, FLAC, MP3, OGG, OPUS or WAV sample file downloaded from HTTP.
Compatibility
| ESP32-LyraT | ESP32-LyraT-MSC |
|---|---|
![]() |
![]() |
![]() |
![]() |
Usage
Prepare the audio board:
- Connect speakers or headphones to the board.
Configure the example:
- Select compatible audio board in
menuconfig>Audio HAL. - Set up the Wi-Fi connection by running
menuconfig>Example Configurationand filling inWiFi SSIDandWiFi Password.
Load and run the example:
- The audio board will first connect to the Wi-Fi.
- Then the board will start playing automatically.
Changing the audio sample format
-
Select AAC, AMR, FLAC, MP3, OGG, OPUS or WAV decoder by editing the following line:
#define SELECT_AAC_DECODER 1 -
Load and run the example again.



