tldr/pages.zh/linux/beep.md

25 lines
604 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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}}`