Local Music Example for stereo speaker
Source code path: example/multimedia/audio/dual_adc_dac
Supported Platforms
sf32lb58-lcd series
Overview
This example demonstrates local music playback, including:
Preset a wav audio file in the root partition.
Play the preset wav file.
Example Usage
Hardware Requirements
Before running this example, prepare:
A 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=sf32lb58-lcd_n16r32n1_a1_dpi_hcpu -j8
Switch to the example project/build_xx directory and run uart_download.bat, select the port as prompted for download:
$ ./uart_download.bat
Uart Download
please input the serial port num:5
For detailed steps on compilation and download, please refer to the relevant introduction in Quick Start.
Expected Results of Example
After the example starts: Play the preset stereo.wav audio file once. Expected to different voice from two speakers. input command by serial tools mic2file mic2speaker
Exception Diagnosis
Reference Documents
Update History
Version |
Date |
Release Notes |
|---|---|---|
0.0.1 |
10/2024 |
Initial version |




