Command to play audio in linux

Closed
sravs - Jun 20, 2009 at 11:07 AM
 Hemant Devrani - Jun 2, 2011 at 04:13 PM
Hello,

I have real player installed in my linux.
i prefer listening to songs through command mode
what are the commands to play an mp3 type audio file in linux
Related:

3 responses

Blocked Profile
Jun 20, 2009 at 11:24 AM
hye to open music file on command type:

play my_file.mp3


to know more: https://www.lifewire.com/linux-4781560
7
Hemant Devrani
Jun 2, 2011 at 04:13 PM
Hey!
There are various music related commands in LINUX of which many of us are not aware.
Anyways I'll share some of those with you:

mpg123 songfile.mp3 # plays mp3 file

play sonfile.wav # plays wave file.

Note it may generate an error if the appropriate package is not installed.

sudo apt-get install mpg321 # installs the package

Now the file can be played (If playable )

Enjoy!
1
Tom6 Posts 142 Registration date Friday July 31, 2009 Status Member Last seen August 7, 2009 16
Aug 6, 2009 at 11:41 AM
Hi :)

This forum should be able to help
http://www.linuxquestions.org
as it deals with a huge range of different versions of linux but is dedicated to linux support.

I tried looking up the RedHat User Support Forums but this was the best I could find right now
https://www.redhat.com/en
Hopefully you can navigate to specifically RedHat support for this from there. I also found some documentation to look through
https://access.redhat.com/documentation/en-us/
Good luck with this though!

Regards from
Tom :)
-2