A FreeBSD or a Linux system in which GUI is not installed can play audio files with the help the following tools:
Installation on FreeBSD
mpg123
# pkg_add -r mpg123
mpg321
# pkg_add -r mpg321
ogg123
# pkg_add -r vorbis-tools
Installation on Fedora
mpg123
# yum install mpg123
mpg321
# yum install mpg321
ogg123
# yum install vorbis-tools
Installation on Ubuntu and Debian
mpg123
$ apt-get install mpg123
mpg321
$ apt-get install mpg321
ogg123
$ apt-get install vorbis-tools