All apps/afplay

afplay

afplay

Command-line audio file player included with macOS.

Runs as afplay|macOS

Command form

ai-draft · 1 task · 4 fields

Play one audio file with optional volume, duration and rate. Debug and leaks analysis are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui afplay
Play audio fileExample values, fixed in this page — nothing here reaches a terminal
Basic
Audio file*
file
Volume
number
TasksEach one presets the form for one job
Play file
filevolume
ParametersOnly these flags are editable in the form
Audio file
path · positional 0
Volume
0 is silent, 1 is normal; up to 255 is very loud.
number
--volume-v
Play for seconds
number
--time-t
Playback rate
Practical limits are about 0.4 (slower) to 3.0 (faster).
number
--rate-r
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed afplay against its version. A form that does not match your version is not offered.