Now the Linux desktop has developed very well, playing music in the desktop operation is very simple. So we remember how we played the music when the desktop wasn't so good? Hey, I can't remember, it's too hard.
But now we can install a small software, and then through the command line to use the software to play music, it feels good to drop.
This software is called: SOX, supports many formats of audio files, such as Wav,mp3,mpg,ogg,flac and so on. It's enough to meet our daily use.
Well, first of all, we need to install it into our system in the first step.
1. Open a terminal (ctrl+alt+t) and enter the following command:
sudo apt-get Install Sox
2. The administrator password is required to install the software to the system. Enter the password and return.
3, in the installation when asked if you continue to enter Y to confirm the continuation of the installation.
4, OK, just wait for it to complete the installation. Once the installation is complete, we can use the following command to enable SOX to play the audio format files it supports:
sudo apt-get install Sox Libsox-fmt-all
5. OK, now you can use SOX to play the audio files on our computer.
6, for example, to play all the audio files in the system, we can use this command:
Play *mp3
7. If you want to play a particular file, then use this command:
Play File-name.extension
Like what:
Play Aqua_barbie_girl.mp3
You can only play Aqua_barbie_girl.mp3 this MP3.
8, when playing, we can press CTRL + C to the end of the current audio playback to go to the next audio.
9. For more SOX operation commands we can use the man command to see a detailed description. I hope we can find something.
Man Sox
Commands for playing music under the Linux Terminal command line (Ubuntu)