How to Play a Sound from the macOS Command Line
If you want to play a sound from the macOS command line, you can make use of the afplay command. Simply follow the steps below: Open the Terminal application on your Mac. Type the following command: afplay file.mp3 Replace file.mp3 with the path to the sound file you want to play. Additionally, here are some more options for the afplay command that you can experiment with: Play a sound file and wait until playback ends:...