Personal tools

PN8M-090T-SPK-OUT

From ICOP tech wiki

Revision as of 10:27, 8 February 2021 by Eveshih0725 (talk | contribs) (Created page with "==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,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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