1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/osx/afplay.md
2019-11-16 22:30:24 +00:00

19 lines
367 B
Markdown

# afplay
> Command-line audio player.
- Play a sound file (waits until playback ends):
`afplay {{path/to/file}}`
- Play a sound file at 2x speed (playback rate):
`afplay --rate 2 {{path/to/file}}`
- Play a sound file at half speed:
`afplay --rate 0.5 {{path/to/file}}`
- Play the first N seconds of a sound file:
`afplay --time {{seconds}} {{path/to/file}}`