Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tired of beep?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Krigare
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2003
Posts: 92
Location: ::1

PostPosted: Sun Jan 11, 2004 11:42 am    Post subject: Tired of beep? Reply with quote

Recently there was a thread about how to get your headless computer (aka server for example) sound whenever it's finnished with booting itself up. They said things about how to use app-misc/beep but nothing about using real sounds, so i checked it up and found out you could cat .wav-files to your sound-device so therefrom I got this idea. I have not tested this with .mp3s but i suppose it wont work since they're compressed.

# echo "cat /some/cool/sound.wav > /dev/dsp" >> /etc/conf.d/local.start
# reboot

Next time your computer starts it will play that soundfile. Neat eh?
_________________
Together we are strong.
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Sun Jan 11, 2004 1:08 pm    Post subject: Reply with quote

You can use mp3's if you emerge "mpg123" with the following command:
Code:
echo "mpg123 /some/cool/sound.mp3" >> /etc/conf.d/local.start

You can use ogg's if you emerge "ogg123" with the following command:
Code:
echo "ogg123 /some/cool/sound.ogg" >> /etc/conf.d/local.start

_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
Krigare
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2003
Posts: 92
Location: ::1

PostPosted: Sun Jan 11, 2004 8:27 pm    Post subject: Reply with quote

Great!
_________________
Together we are strong.
Back to top
View user's profile Send private message
jekyl
n00b
n00b


Joined: 02 Aug 2003
Posts: 24
Location: Norway

PostPosted: Sun Jan 11, 2004 10:06 pm    Post subject: Reply with quote

Using cat sound.wav > /dev/dsp I get som crazy screaming sound which seem to continue forever(don't know if it's forever, cause it so enoying that i press ctrl-c after a few seconds :wink: )! So I solved it with emerging sox and used
Code:
play /some/sound.wav

in local.start
Back to top
View user's profile Send private message
wolvenwraith
n00b
n00b


Joined: 28 Dec 2003
Posts: 67
Location: Someplace, Somewhere

PostPosted: Mon Jan 12, 2004 1:11 am    Post subject: Reply with quote

whether or not you can just cat a soundfile over depends on a couple of things, such as Hz, your soundcard, and others.
Back to top
View user's profile Send private message
viperlin
Veteran
Veteran


Joined: 15 Apr 2003
Posts: 1317
Location: UK

PostPosted: Mon Jan 12, 2004 1:25 am    Post subject: Reply with quote

my server has no soundcard, anyway i can make the bios speaker play sound :-) i remember ages ago i could do it in dos or windows or something.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Mon Jan 12, 2004 2:46 am    Post subject: Reply with quote

You can't do this with all .wav files. Only raw PCM ones.
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
Krigare
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2003
Posts: 92
Location: ::1

PostPosted: Mon Jan 12, 2004 9:47 am    Post subject: Reply with quote

Thanks for all your replies, I will personally convert my soundfile to mp3 since those .waves are so big. By the way, what sound are you guys using?
_________________
Together we are strong.
Back to top
View user's profile Send private message
khazad-dum
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2003
Posts: 148
Location: Moria

PostPosted: Mon Jan 12, 2004 11:01 am    Post subject: Reply with quote

Or..with festival & speechd:

(in local-start)

Code:

echo "Hello Master, Welcome Back. Your Linux Box is now Up and Running. Please, Log In" > /dev/speechd


speechd must to set in a default mode init.

Enjoy :)

khazad-dum
Back to top
View user's profile Send private message
Krigare
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2003
Posts: 92
Location: ::1

PostPosted: Mon Jan 12, 2004 11:35 am    Post subject: Reply with quote

Awesome.. I can see a new light shining. Thanks! :D
_________________
Together we are strong.
Back to top
View user's profile Send private message
b0fh
Guru
Guru


Joined: 16 Jun 2003
Posts: 426

PostPosted: Mon Jan 12, 2004 8:42 pm    Post subject: Reply with quote

viperlin wrote:
my server has no soundcard, anyway i can make the bios speaker play sound :-) i remember ages ago i could do it in dos or windows or something.


Yep, which server has a soundcard? :) Do you acutally HAVE a tool which can play through speaker?
Back to top
View user's profile Send private message
viperlin
Veteran
Veteran


Joined: 15 Apr 2003
Posts: 1317
Location: UK

PostPosted: Mon Jan 12, 2004 8:56 pm    Post subject: Reply with quote

b0fh wrote:
viperlin wrote:
my server has no soundcard, anyway i can make the bios speaker play sound :-) i remember ages ago i could do it in dos or windows or something.


Yep, which server has a soundcard? :) Do you acutally HAVE a tool which can play through speaker?


oops, i completely said that wrong
i meant:

my server has no soundcard, anyway can i make the bios speaker play sound :-) i remember ages ago i could do it in dos or windows or something.
:oops: and i got a C on my english tests :oops:
Back to top
View user's profile Send private message
b0fh
Guru
Guru


Joined: 16 Jun 2003
Posts: 426

PostPosted: Mon Jan 12, 2004 9:30 pm    Post subject: Reply with quote

Ah, now I undestand what you meant :) Yes, there is such a driver, but just for 2.2 and early 2.4 kernels... look here: https://forums.gentoo.org/viewtopic.php?t=100150

I still hope someone ports this to 2.6 :)
Back to top
View user's profile Send private message
viperlin
Veteran
Veteran


Joined: 15 Apr 2003
Posts: 1317
Location: UK

PostPosted: Mon Jan 12, 2004 9:41 pm    Post subject: Reply with quote

b0fh wrote:
Ah, now I undestand what you meant :) Yes, there is such a driver, but just for 2.2 and early 2.4 kernels... look here: https://forums.gentoo.org/viewtopic.php?t=100150

I still hope someone ports this to 2.6 :)


my servers on 2.4.24, so thats not early 2.4 :-(

lets hope it does get into 2.6.2 :-) maybe then i will have 2.6 on my server
Back to top
View user's profile Send private message
b0fh
Guru
Guru


Joined: 16 Jun 2003
Posts: 426

PostPosted: Tue Jan 13, 2004 7:00 am    Post subject: Reply with quote

Or try this one: http://www.geocities.com/stssppnn/pcsp.html
Back to top
View user's profile Send private message
Krigare
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2003
Posts: 92
Location: ::1

PostPosted: Tue Jan 13, 2004 8:48 am    Post subject: Reply with quote

I've tried speechd, but there seems to be something that is wrong, the voice that talks is talking in nearly the speed of light, is this configurable?
_________________
Together we are strong.
Back to top
View user's profile Send private message
b0fh
Guru
Guru


Joined: 16 Jun 2003
Posts: 426

PostPosted: Tue Jan 13, 2004 7:13 pm    Post subject: Reply with quote

Good news everyone, I asked the developer of pcsp and he says he plans to port it to 2.6 soon.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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