Configuring Audio

The device includes 1 audio channel (supports MIC input) and 1 extended speaker output. The Master volume, MIC volume, and Speaker volume are all adjustable, and recording via MIC is supported.

Adjusting Volume

Supports manual adjustment of MIC, Speaker, and Master volumes.

  • If using the Desktop version of the operating system, you can directly adjust the MIC and Master volumes through the desktop icons.

Steps:

  1. Click the part10-7 or part10-8 icon in the upper right corner of the desktop to open the volume control slider.
part10-9
  1. Drag the slider up or down to adjust the volume. Check or uncheck the Mute checkbox to mute or unmute the audio.
  • Both the Desktop and Lite versions of the operating system support opening the volume adjustment interface via the command line to adjust the volume.

Steps:

  1. Execute the following command in the terminal to open the volume adjustment interface.
alsamixer
part10-1
  1. In the opened interface, view the current Master volume value. Use the ↑ and ↓ keys on the keyboard to adjust the volume. Press the M key to mute or unmute the audio.
Keyboard KeyFunction
↑Volume +
↓Volume -
MMute or unmute
  1. Press F6 to open the "Sound Card" interface, then select "default:2 rt5616-codec".

<img src="../../../images/part10-2.jpg" alt=part10-2" style="max-width: 50%;">

  1. Press Enter to open the MIC and Speaker volume interface. Use the ↑ and ↓ keys on the keyboard to adjust the MIC and Speaker volumes respectively. Press the M key to mute or unmute the MIC/Speaker.
Keyboard KeyFunction
↑Volume +
↓Volume -
MMute or unmute

Configuring Recording

Supports recording audio input from the MIC.

Preparation:

A MIC is connected to the audio interface.

Steps:

  1. Execute the following command in the terminal to open the volume adjustment interface.
alsamixer
  1. Press F6 to open the "Sound Card" interface, select "default:2 rt5616-codec", then press Enter to open the MIC and Speaker volume adjustment interface. Ensure that MIC is not muted.

  2. Press Esc to exit back to the terminal, then execute the following command to query the sound card and device numbers used for recording.

arecord -l
part10-3
  1. After obtaining the numbers, execute the following command to start recording an audio file named test.wav, as shown below.
arecord -D hw:2,0 -f S16_LE -r 16000 -c 2 -d 60 test.wav
part10-4
ParameterDescription
-D hw:2,0Indicates sound card 2 and device 0
-f S16_LEIndicates the supported sample format
-r 16000Indicates a sample rate of 16K
-c 2Indicates stereo
-d 60Indicates recording for 60 seconds
test.wavIndicates the recorded file name, user-defined
  1. Press Ctrl+C to stop recording.
  2. Execute the following command to obtain the save path of the recorded file.
pwd
part10-5
  1. Navigate to the directory where the recorded file is located, then execute the following command to play the audio.
aplay test.wav
part10-6