Overview
- 3.5mm headphone jack (supports both headphones and microphone)

- On-board microphone

Downloading the Corresponding Image
Download our provided .img image file from the Network Disk🚀 in the System Image/Debian12/ directory.
The image used in this document is: TaishanPi-3M-RK3576_Debian12-Xfce_AP6256-mSATA.img
Basically all images have all audio interfaces enabled by default, so you don't need to specifically download a certain image.
Flashing the Image to the Development Board
Refer to Finished Image Flashing to flash the downloaded image file to the development board.
Connecting the 3.5mm Headphone Interface
First, insert the 3.5mm headphone into the board's headphone jack and start recording:
arecord -D hw:0,0 -f cd -r 44100 -c 2 -V stereo headset_stereo.wavStart recording, speak into the headphone's microphone, and press Ctrl+C to stop recording when done. To play the recording, use the following command:
aplay -D plughw:0,0 headset_stereo.wavYou can hear what you just said being recorded.
Using the On-board Microphone
First, remove the 3.5mm headphone and start recording:
arecord -D hw:0,0 -f cd -r 44100 -c 2 -V stereo board_stereo.wavSpeak into the on-board microphone on the board, and press Ctrl+C to stop recording when done. Insert the 3.5mm headphone again and use the following command to play the recording:
aplay -D plughw:0,0 board_stereo.wavYou can hear the sound recorded through the on-board microphone.