Saturday 11 November 2017

bash - How to make the hardware beep sound in Mac OS X 10.6

itemprop="text">

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



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



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



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




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



Answer




There is no "hardware beep" in
macOS.



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.



(If you're curious about the technical
details of how the PC speaker interface worked, href="https://courses.engr.illinois.edu/ece390/books/labmanual/io-devices-speaker.html"
rel="noreferrer">there are more details
here.)



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.



No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...