play is a command line utility for playing audio files. You can specify paths to sound files either as command line arguments or through stdin. play should be compatible with all audio file formats supported by Quicktime, but has not been extensively tested in this respect. play is distributed as freeware and can be redistributed as part of your own projects.
Plays all audio file formats compatible with Quicktime. Or should do so.
It's easy to use play in your own projects. You're free to redistribute play as part of your own programs.
The most basic use of play is to provide a path to a sound file.
Leveraging Apple's spotlight search technology, this is how you can listen to the first 10 seconds of each Schubert song on your computer:
Supply the -v option to make play print the name of the currently playing file to stdout. For more information on using play, please refer to the included readme file.
OS X 10.2.8 or later