Play music through Terminal

SoX is used to play music through commandline. It supports most of the audio formats like wav, mp3, mpg, ogg, flag, etc.

1. In order to use this, first we’ve to install this. Type the following command on the Terminal:

$ sudo apt-get install sox

sox1

2. After installation, run the command below to make SoX play.mp3 or any other audio file format.

$ sudo apt-get install sox libsox-fmt-all

sox2

3. After it is done. Now you are ready to play any audio file from your directory.

4. To play, type following:

/$ play *mp3

5. To play specific file, simply type;

/$ play neon.mp3

6. To play next track Press Ctrl+c once and to stop player, Press Ctrl and hit c twice.

7. To get more information related to SoX, type man sox in the terminal and press enter. You’ll get all here.

🙂

Advertisements

2 thoughts on “Play music through Terminal

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s