View previous topic :: View next topic |
Author |
Message |
thebassist n00b
Joined: 31 May 2003 Posts: 12
|
Posted: Mon Aug 04, 2003 8:50 am Post subject: write to PC speaker |
|
|
Is there a way to just send a simple command to the PC speaker. You know how alerts and such make the speaker yell at you.
I'm running a file server headless, and I'd like to be notified when my emerges are done.
So is there a Unix hook to send an alert or something simple like that, or would it be more difficult. is there a /dev device for the PC speaker?
I'd like to do something like
emerge world && beepwhendone
this would be handy on my other machines as well, since the screen saver usually kicks in before it's done, and I can't see the progress, I've been just looking at the hard drive light, to see if it's blinking or not. That is just madness, since I usually have enough memory to handl an emerge.
Anyway
suggestions.
Thanks
L8er |
|
Back to top |
|
|
zhenlin Veteran
Joined: 09 Nov 2002 Posts: 1361
|
Posted: Mon Aug 04, 2003 10:33 am Post subject: |
|
|
Code: |
emerge beep && beep -f 2000 -l 2000
|
Producing a 2000Hz beep for 2 seconds. |
|
Back to top |
|
|
thebassist n00b
Joined: 31 May 2003 Posts: 12
|
Posted: Mon Aug 04, 2003 7:50 pm Post subject: |
|
|
Thank you
works like a charm |
|
Back to top |
|
|
wonderbread n00b
Joined: 04 Nov 2002 Posts: 28
|
Posted: Tue Aug 05, 2003 2:10 am Post subject: |
|
|
echo -e "\a" |
|
Back to top |
|
|
b0fh Guru
Joined: 16 Jun 2003 Posts: 426
|
Posted: Tue Aug 05, 2003 12:39 pm Post subject: |
|
|
I had a windows 3.1 driver which allowed you to play .wav files over the pc speaker. Okay, it sounded crunchy, but is there something like that for linux? Would be cool |
|
Back to top |
|
|
zhenlin Veteran
Joined: 09 Nov 2002 Posts: 1361
|
Posted: Tue Aug 05, 2003 12:50 pm Post subject: |
|
|
esdplay
artsplay (Or artsdsp play)
play
aplay
... |
|
Back to top |
|
|
b0fh Guru
Joined: 16 Jun 2003 Posts: 426
|
Posted: Tue Aug 05, 2003 5:39 pm Post subject: |
|
|
a question to beep:
I emerged beep, but it doesn't beep when I call it At bootup my speaker beeps, so it's connected and working. I've got a soundcard in my PC which actually has a mixer control for "PC Speaker":
Code: | Simple mixer control 'PC Speaker',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 15
Mono: Playback 15 [100%] [on]
|
It's on and at full volume, but no "beep" |
|
Back to top |
|
|
scriptkiddie l33t
Joined: 30 Mar 2003 Posts: 955
|
Posted: Tue Aug 05, 2003 6:42 pm Post subject: |
|
|
just install something like festival and add .wav files so that it talks when application is done |
|
Back to top |
|
|
pantherace Tux's lil' helper
Joined: 18 Mar 2003 Posts: 79
|
Posted: Wed Aug 06, 2003 5:20 pm Post subject: |
|
|
b0fh wrote: | I had a windows 3.1 driver which allowed you to play .wav files over the pc speaker. Okay, it sounded crunchy, but is there something like that for linux? Would be cool |
There is, unfortunately it looks woefully out of date (at least the one I know about) it's here: ftp://ftp.infradead.org/pub/pcsp/
Ok some more searching leads to http://www.geocities.com/stssppnn/pcsp.html which has one for 2.4.20 (vs the latest being 2.4.0-test above)
Edit: forgot to mention that things like this can sound ok, but as an example my Zaurus which does this (5500, all the others have built in speakers) it sounds fine for some music, but human voices go bad, If you play around with it would you give some feedback as to how it sounds? |
|
Back to top |
|
|
b0fh Guru
Joined: 16 Jun 2003 Posts: 426
|
Posted: Wed Aug 06, 2003 5:37 pm Post subject: |
|
|
Too bad it's just for 2.4.20
Anyone got any tipps to handle my amixer problem with the "PC Speaker" switch? I still get no "beeps"... |
|
Back to top |
|
|
b0fh Guru
Joined: 16 Jun 2003 Posts: 426
|
Posted: Mon Aug 18, 2003 6:57 pm Post subject: |
|
|
b0fh wrote: | a question to beep:
I emerged beep, but it doesn't beep when I call it At bootup my speaker beeps, so it's connected and working. I've got a soundcard in my PC which actually has a mixer control for "PC Speaker":
Code: | Simple mixer control 'PC Speaker',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 15
Mono: Playback 15 [100%] [on]
|
It's on and at full volume, but no "beep" |
*push* Still no idea why I won't beep? |
|
Back to top |
|
|
|