If you’re a command line aficionado and you want to play an audio file, there’s no need to leave the Terminal. There are Terminal commands …
If you’re a command line aficionado and you want to play an audio file, there’s no need to leave the Terminal. There are Terminal commands you can use to not just play audio, but to convert files as well. We’ll go over the afplay, afinfo, and afconvert audio commands in this article. There’s not much in the way of help available for these new commands; their man pages are pretty much empty. You can get more help for afplay and afconvert by running them with the -h option (type afplay -h or afconvert -h into Terminal). Thankfully, usage of all three commands is relatively straightforward. To play an audio file, type the afplay command followed by the path of file. For example: afplay /Users/macworld/Desktop/Opening.aif Once a song starts, you can stop it by pressing Control-C to terminate the afplay command. If you’d like to close the Terminal window after starting a song, you can do so by appending & disown after the path to the audio file.