afplay
Command-line audio player. tldr-pages
On macOS
macOS
Play a sound file (waits until playback ends)
afplay path/to/fileIdentifyPlay a sound file at 2x speed (playback rate)
afplay --rate 2 path/to/fileIdentifyPlay a sound file at half speed
afplay --rate 0.5 path/to/fileIdentifyPlay the first n seconds of a sound file
afplay --time n path/to/fileIdentify