
@hamed
on Feb. 12, 2025, 4:44 p.m.
Playing audio files on the Linux command line
You can play audio files on the Linux command line using the play command from sox.
To install sox, open a terminal and type:
sudo apt install sox
To play MP3 files, you need to install the libsox-fmt-mp3 package as well:
sudo apt install libsox-fmt-mp3
Once you have installed the necessary packages, you can play any audio file by typing play followed by the name of the file. For example, to play the file track.mp3, you would type:
play track.mp3
You can also use the play command to play audio files from other sources, such as URLs or audio devices. For more information, see the play man page.
Leave a Comment
0 Comments
No comments yet.