Personal tools

EBOX-IMX8MM-SPK-OUT

From ICOP tech wiki

Jump to: navigation, search

Headphone SPK-OUT Test

Plug in the cable.

# gst-launch-1.0 playbin uri=file:///path audio-sink=alsasink

The path could be WAV, MP3 or FLAC, etc.

After input the file, you can hear the sound from Headphone or SPK-OUT.

The path could be WAV, MP3 or FLAC, etc.png

If you need to set the PCM volume (Audio decoder’s main volume), the volume range is from 0 to 127.

# amixer set Headphone 80

Recording test

Plug the MIC to the MIC-IN connector, and input the command below, and it will start to record. After the recording is finished, it will generate an audio file named test.wav.

# arecord -D hw:0,0 -r 48000 -c 2 -f S16_LE test.wav

Play the test.wav by the command below.

# aplay test.wav