Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
write to PC speaker
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
thebassist
n00b
n00b


Joined: 31 May 2003
Posts: 12

PostPosted: Mon Aug 04, 2003 8:50 am    Post subject: write to PC speaker Reply with quote

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
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Mon Aug 04, 2003 10:33 am    Post subject: Reply with quote

Code:

emerge beep && beep -f 2000 -l 2000


Producing a 2000Hz beep for 2 seconds.
Back to top
View user's profile Send private message
thebassist
n00b
n00b


Joined: 31 May 2003
Posts: 12

PostPosted: Mon Aug 04, 2003 7:50 pm    Post subject: Reply with quote

Thank you
works like a charm
Back to top
View user's profile Send private message
wonderbread
n00b
n00b


Joined: 04 Nov 2002
Posts: 28

PostPosted: Tue Aug 05, 2003 2:10 am    Post subject: Reply with quote

echo -e "\a"
Back to top
View user's profile Send private message
b0fh
Guru
Guru


Joined: 16 Jun 2003
Posts: 426

PostPosted: Tue Aug 05, 2003 12:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Tue Aug 05, 2003 12:50 pm    Post subject: Reply with quote

esdplay
artsplay (Or artsdsp play)
play
aplay
...
Back to top
View user's profile Send private message
b0fh
Guru
Guru


Joined: 16 Jun 2003
Posts: 426

PostPosted: Tue Aug 05, 2003 5:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
scriptkiddie
l33t
l33t


Joined: 30 Mar 2003
Posts: 955

PostPosted: Tue Aug 05, 2003 6:42 pm    Post subject: Reply with quote

just install something like festival and add .wav files so that it talks when application is done
Back to top
View user's profile Send private message
pantherace
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 79

PostPosted: Wed Aug 06, 2003 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
b0fh
Guru
Guru


Joined: 16 Jun 2003
Posts: 426

PostPosted: Wed Aug 06, 2003 5:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
b0fh
Guru
Guru


Joined: 16 Jun 2003
Posts: 426

PostPosted: Mon Aug 18, 2003 6:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum