MP3 Local Music Player
Source path: example/zbt/bap_broadcast_src
Supported Platforms
sf32lb52 letter series
Overview
This example demonstrates the BLE Audio Source side, flashed to sf32lb52 letter series boards, such as 52j or 52D. It cannot be flashed to 525 boards. This example will play mp3 files from the disk directory. The local speaker will not sound, but will transmit audio to another sink device board for playback. Another sink device can be found at example/zbt/bap_broadcast_sink. You need to compile the sink project and flash it to another device.
Example Usage
Hardware Requirements
Before running this example, you need to prepare:
One development board supported by this example (Supported platforms).
Speaker.
Compilation and Programming
Switch to the example project directory and run the scons command to execute compilation:
scons --board=sf32lb52-nano_52j -j8
Switch to the example project/build_xx
directory and run uart_download.bat
, select the port as prompted to download:
$ ./uart_download.bat
Uart Download
please input the serial port num:5
For detailed steps on compilation and downloading, please refer to the relevant introduction in Quick Start.
Expected Results
After the example runs, it will decode mp3 files from the disk directory and transmit them via BLE to connected BLE Audio sink devices for playback. The local source device speaker will not play.
Exception Diagnosis
Reference Documentation
Update Log
Version |
Date |
Release Notes |
---|---|---|
0.0.1 |
6/2025 |
Initial version |