• Playing a sound file without lots of text output.
    4 replies, posted
Sup /Linux! So, I'm looking for a small, lightweight, non-bloated app that will play a sound-file without emitting tons of garbage to the terminal. It's mainly for shell scripting, and I know, I know, i could very well use the system beep to do that, but if i hear that darned beep again, I'll rip my ears off. Bonus if it has the possibility to play a variety of sound formats, and is available on my package manager. Also, before "Ask Google" and "RTFM", i did check for something like this but alas found nothing.
You could use the aplay command from the ALSA lib?
man -k aplay rtfm
[QUOTE=ButtsexV2;19650431]man -k aplay rtfm[/QUOTE] Well, you are indeed right, but it only plays wave now does it... No matter I'm prepared with a converter :D Thanks.
If you're on a distro with mplayer, mplayer'll play a bunch of formats, and when ran from console it's not bloated. mplayer -really-quiet /path/to/file > /dev/null (gets rid of all the console output) If you just wanna play mp3s and wav files, yeah, there's aplayer, and also "mpg123 -q"
Sorry, you need to Log In to post a reply to this thread.