Sunday 18 March 2012

Play Songs From the Command Line – Linux



First Of all download any song if there is not in ur computer like me :P
TYPE IN GOOGLE
intitle:"index.of" .mp3 punjabi 


now click on first site and download the song of heer.
then after this


You can play any song file from the command line without using any player.but we need a utility called SOX
You can install it in a Debian-based system as follows:
 sudo apt-get install sox 
To play a song from the command line, use: 
play song.mp3 
where song.mp3 is the path to your MP3 file. To stop playback, hit Ctrl+C. If your song’s file name contains spaces, specify the file name within double quotes. For example: 


play "song 2.mp3"
When playing audio files, you can even specify more than one input file as follows: 
play "song 2.mp3" "song 3.mp3" "song 5.mp3"  



No comments:

Post a Comment