Skip to content

Latest commit

 

History

History
 
 

pipeline_http_select_decoder

Play a file of selected format from HTTP

The example plays either AAC, AMR, FLAC, MP3, OGG, OPUS or WAV sample file downloaded from HTTP.

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.
  • Set up the Wi-Fi connection by running menuconfig > Example Configuration and filling in WiFi SSID and WiFi 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.