[svlug] Non-Console Beep

Bevan Schroeder bevan at foo.net
Tue Nov 3 14:36:39 PST 1998


On Sat, 31 Oct 1998, Javilk wrote:

>      Is there some simple means of beeping the computer itself, rather
> than asking a console driver to beep the computer? 

I once found a program called "console_beep", I still had it on my system
so I re-tarred it:
http://maxx.foo.net/ftp/incoming/console_beep-0.1.tgz

I believe it talks to the raw speaker device.  At any rate, I'm pretty
sure it will do what you need (look at beep.direct.c).

On a related note, I recently wrote a perl script that (best when run from
procmail) figures out who a new message is from, looks up their name in my
.addressbook, and speaks it on my sound card via Festival.  Festival is a
decent speech synthesizer, though not good and very difficult to install.
I recommend just getting and installing ALL the rpms.  If you don't have
redhat (I don't), get rpm and use the festival rpms anyway.  It is worth
installing, since it's the best speech program I know of for linux.  Until
I can get Creative to port Dr. Sbaitso... :)

On another related note, I added a printk to my kernel that would log the
process name, #, etc. of every beep, so I wouldn't have to try to guess
whether a beep was from a talkd or a biff or something else.
Unfortunately, X-Windows must use a raw beep like the above, because any
beeps caused by X programs (e.g. xbiff) didn't get logged.

I have some other fun scripts, like a random background loader and random
sound player...  I'll put 'em all online someday.

-bevan


--
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe



More information about the svlug mailing list