afplay <command>

Audio File Play

Arguments

NameDescription
commandfilepaths

Options

NameDescription
-v,--volume <command>Set the volume for playback of the file Apple does not define a value range for this, but it appears to accept 0=silent, 1=normal (default) and then up to 255=Very loud. The scale is logarithmic and in addition to (not a replacement for) other volume control(s).
-h,--helpPrint help
--leaksRun leaks analysis
-t,--time <command>Play for `TIME` seconds >0 and < duration of `audio_file`.
-r,--rate <command>Play at playback `RATE`. practical limits are about 0.4 (slower) to 3.0 (faster).
-q,--rQuality <command>Set the quality used for rate-scaled playback (default is 0 - low quality, 1 - high quality).
-d,--debugDebug print output.