Command to play audio in linux

[Closed]
Report
-
 Hemant Devrani -
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

3 replies


hye to open music file on command type:

play my_file.mp3


to know more: https://www.lifewire.com/linux-4781560
7
Thank you

A few words of thanks would be greatly appreciated. Add comment

CCM 2821 users have said thank you to us this month


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!
Posts
142
Registration date
Friday July 31, 2009
Status
Member
Last seen
August 7, 2009
16
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 :)