本文介绍了如何在 Mac OS X 10.6 中发出硬件提示音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只希望 Mac OS X 10.6 发出硬件哔声,就像在 open suse 和其他发行版中一样.我尝试了以下方法

I just want that Mac OS X 10.6 does a hardware beep sound like in open suse and other distributions. I tried following approaches

终端 -> beep = -bash: beep: command not found

Terminal -> beep = -bash: beep: command not found

终端 -> 说哔 = 声音发出哔哔声(不是硬件哔声,但很棒;))

Terminal -> say beep = voice speaks out beep (Not a Hardware beep but awesome ;) )

applescript -> beep = Macintosh bell(我想要硬件哔!)

applescript -> beep = Macintosh bell (I want a Hardware beep!)

有人知道如何在 bin/bash 或 applescript 中使硬件发出哔哔声吗?

Does anybody know how to make the Hardware beep in bin/bash or applescript?

推荐答案

macOS 中没有硬件哔".

There is no "hardware beep" in macOS.

您想到的功能是非常古老(1990 年代之前)IBM PC 兼容硬件的产物.在大多数计算机配备声卡之前,大多数计算机都有一个连接到定时器芯片通道之一的小型扬声器或压电蜂鸣器.这可用于生成简单的音调或蜂鸣声.即使在许多计算机集成了声卡之后,在相当长的一段时间内,计算机仍然很普遍地将此输出路由到单独的内部扬声器.最近,许多计算机,尤其是笔记本电脑,已将此功能集成到板载声卡中.

The functionality you're thinking of is an artifact of very old (pre-1990s) IBM PC-compatible hardware. Before most computers had sound cards, most machines had a small speaker or piezo buzzer connected to one of the channels of a timer chip. This could be used to generate simple tones or beeps. Even after many computers integrated sound cards, it remained common for quite some time for computers to route this output to a separate internal speaker. More recently, many computers, especially laptops, have integrated this functionality into the onboard sound card.

(如果您对 PC 扬声器接口如何工作的技术细节感到好奇,这里有更多细节.)

(If you're curious about the technical details of how the PC speaker interface worked, there are more details here.)

Apple 计算机中从未存在过这种硬件.唯一可用的音频输出是通过声卡,而 macOS 中唯一的系统提示音是用户的警报声.

This hardware has never existed in Apple computers. The only audio output available is through the sound card, and the only system beep in macOS is the user's alert sound.

这篇关于如何在 Mac OS X 10.6 中发出硬件提示音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 06:16