2016-12-28

Pi, CLI Audio.

Link reference 1: https://www.raspberrypi.org/documentation/configuration/audio-config.md
Link reference 2: https://www.raspberrypi.org/documentation/usage/audio/

Switch audio output.
# amixer cset numid = 2     (2 is HDMI, 1 is Headphone jack, 0 is automatic by default )

Audio player.
# omxplayer example.mp3
# omxplayer -o hdmi example.mp3     (force output over HDMI)
# omxplayer -o local example.mp3     (force output over headphone jack)

Repeat playback
============
# omxplayer --loop example.mp3

[ Sys Reply ]
Audio codec mp3 channels 1 samplerate 11025 bitspersample 16
Subtitle count: 0, state: off, index: 1, delay: 0
Seek to: 00:00:00
Seek to: 00:00:00
Seek to: 00:00:00

[Ctrl + C] Quit player.

沒有留言:

張貼留言