Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

On linux I can play a sound file with the aplay program. I can also send audio data to /dev/dsp in some cases.

What is the Darwin analog of the aplay program? I need something that is purely a CLI-based solution.

share|improve this question

1 Answer 1

Check out qtplay.

Edit: Oops, I forgot about the built-in afplay(1). The man page tells you less than the usage statement, though.

$ afplay -h

Usage:
afplay [option...] audio_file

Options: (may appear before or after arguments)
  {-v | --volume} VOLUME
    set the volume for playback of the file
  {-h | --help}
    print help
  { --leaks}
    run leaks analysis  {-t | --time} TIME
    play for TIME seconds
  {-r | --rate} RATE
    play at playback rate
  {-q | --rQuality} QUALITY
    set the quality used for rate-scaled playback (default is 0 - low quality, 1 - high quality)
  {-d | --debug}
    debug print output
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.