Files
tldr/pages.zh/linux/beep.md
2021-10-14 10:48:22 +02:00

25 lines
604 B
Markdown
Raw 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.

# beep
> 让电脑扬声器发出哔哔声的实用程序。
> 更多信息:<https://github.com/spkr-beep/beep>.
- 播放哔哔声:
`beep`
- 重复播放哔哔声:
`beep -r {{重复次数}}`
- 指定频率Hz和持续时间毫秒播放哔哔声
`beep -f {{频率}} -l {{持续时间}}`
- 将每个新的频率和持续时间作为单独的哔哔声播放:
`beep -f {{频率}} -l {{持续时间}} -n -f {{频率}} -l {{持续时间}}`
- 播放 C 大调:
`beep -f {{262}} -n -f {{294}} -n -f {{330}} -n -f {{349}} -n -f {{392}} -n -f {{440}} -n -f {{494}} -n -f {{523}}`