usb_audio_class_example
Source path: example\cherryusb\device\audio_v1_mic
Supported Platforms
sf32lb52-lcd_n16r8
Overview
This example demonstrates USB microphone recording and speaker audio playback functionality based on USB audio class, including:
The host can connect to devices via USB to enable microphone recording and speaker playback.
Usage Instructions
Hardware Requirements
Before running this example, you need to prepare:
A development board supported by this example (Supported Platforms).
A USB-A to Type-C data cable with data transfer capability.
A host device that supports USB.
Compilation and Flashing
Switch to the example project directory and run the scons command to compile:
scons --board=sf32lb52-lcd_n16r8 -j32
Switch to the example project/build_xx directory and run uart_download.bat, then follow the prompts to select the port for downloading:
$ ./uart_download.bat
Uart Download
please input the serial port num:
For detailed steps on compilation and downloading, please refer to the relevant introduction in Quick Start.
Expected Results
After the example starts: When the host connects to the board via the data cable, a new microphone device (SiFli UAC DEMO) and speaker device (SiFli UAC DEMO) will appear in the audio input and output section of the host’s device manager. After the host opens the recording device, it can select the microphone device for normal recording. In the sound output section, you can select SiFli UAC DEMO as the output device for audio playback.
Troubleshooting
Reference Documents
Change Log
Version |
Date |
Release Notes |
|---|---|---|
0.0.1 |
09/2025 |
Initial version |



