Ich möchte mit sox
Musik im Terminal abspielen.
# install sox/lame
Sudo apt-get install sox
Sudo apt-get install lame
# play music
play music.mp3
# play FAIL formats: no handler for file extension `mp3'
# mp3 -> wav
lame --decode music.mp3 music.wav
# play music
play music.wav
~ $ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
~ $ sox --version
sox: SoX v14.3.2
Die Größe von music.wav
ist +10 mal größer als music.mp3
.
Ich möchte nicht den gesamten *.mp3
in *.wav
konvertieren.
Kann man sox mp3-handler hinzufügen?
Rohr?
lame --decode music.mp3 - | play -
Hinterlässt keine Spuren.
Installieren Sie libsox-fmt-mp3:
Sudo apt-get install libsox-fmt-mp3