Files
tldr/pages.zh/osx/afplay.md

20 lines
447 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# afplay
> 命令行音频播放器。
> 更多信息:<https://keith.github.io/xcode-man-pages/afplay.1.html>。
- 播放一个音频文件(等待播放结束):
`afplay {{path/to/file}}`
- 以2倍速播放音频文件播放速率
`afplay --rate {{2}} {{path/to/file}}`
- 以半速播放音频文件:
`afplay --rate {{0.5}} {{path/to/file}}`
- 播放音频文件的前N秒
`afplay --time {{seconds}} {{path/to/file}}`