Thursday, 31 August 2017

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



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, 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

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...