This example will download an mp3 file from HTTP and decode it into PCM format, then push it to the BT Speaker through BT Source to play it.
To run this example you need a compatible audio board and BT Speaker (or you can use another audio board to run the pipeline_bt_sink example as a BT Speaker).
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 and the BT Speaker:
- Connect speakers or headphones to the board.
- Switch the BT Speaker on.
Configure the example:
- Select compatible audio board in
menuconfig
>Audio HAL
. - Set up the Wi-Fi and BT connection in
menuconfig
->Example Configuration
-> Fill inWi-Fi SSID
&WiFi Password
andBT remote device name
.
Load and run the example:
- The audio board will first connect to the Wi-Fi and the BT Speaker.
- Then the audio board will start transmitting to play on the BT Speaker.