If you need to play obscure music formats, you can pull out the jack of all trades of media players, vlc. It has a huge number of command line options. There is also the command line-oriented variation, cvlc, which plays media without bringing up the GUI.
The simplest case:
cvlc
will play a file, just as mpg123 does... except that it will play just about any imaginable audio format.
Oops -- the media file name should also be on that command line! I tried to put the meta-thing in of the name in angle brackets but the forum software ate it!
If you need to play obscure music formats, you can pull out the jack of all trades of media players, vlc. It has a huge number of command line options. There is also the command line-oriented variation, cvlc, which plays media without bringing up the GUI.
The simplest case:
cvlc
will play a file, just as mpg123 does... except that it will play just about any imaginable audio format.