Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOUND] speechd lets your Computer speak
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Tue Apr 08, 2003 9:08 pm    Post subject: Reply with quote

ack

when booting with the "audio greeting script" it seems to hang my boot proccess. error as follows...

Code:
/sbin/runscript.sh: line 17: command userroot: not found


any ideas?

<edit>
<3 knoppix

found my knoppix cd, mounted the hard drive, chrooted to /mnt/hde3 (i have an ultra 100 card), and deleted the script from the rc_update thing (don't know it's real name, i'm only a n00b! :P). booted back into gentoo, problem solved.

if you can't tell, i'm very proud that i did that all by myself, as two weeks ago, i wouldn't have been able to :)

this still leaves a question as to why the script was halting though. any ideas on that?
</edit>
Back to top
View user's profile Send private message
DefconAlpha
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 151
Location: Alabama

PostPosted: Wed Apr 09, 2003 3:33 am    Post subject: Well... Reply with quote

Why not boot with your Gentoo Stage 1 x86 CD then?

:)
_________________
In the end, the love you get is equal to the love you make
--John Lennon & Paul McCartney (The End - Abbey Road,
Back to top
View user's profile Send private message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Wed Apr 09, 2003 3:46 pm    Post subject: Reply with quote

i had no idea where the gentoo one is, as i've had trouble with RC2 and RC3, and the RC1 disc was no where to be seen. knoppix on the other hand, was sitting in my backpack, so i grabbed that and everything worked :)
Back to top
View user's profile Send private message
peepsalot
n00b
n00b


Joined: 05 Apr 2003
Posts: 52
Location: Texas

PostPosted: Sun Apr 27, 2003 3:59 am    Post subject: Reply with quote

Can anyone figure out a way to make /dev/speech use the mbrola voice(or any other voice for that matter)?

As far as I can tell speechd is relatively small script that just creates the speech device file and somehow assigns festival to it. So it seems like there should be a way to modify it to make it use the different voices available to festival. I looked through it but couldn't find any obvious simple hack to do it, but then again I don't really know how to write scripts like that. :?

Maybe some of you advanced script hackers could figure it out?

Or if anyone could suggest some good script writing tutorials/lessons I would be interested in knowing about them. Then maybe eventually I could understand exactly how speechd works, and figure it out on my own. :)
_________________
Call me butter, 'cause I'm on a roll!
Back to top
View user's profile Send private message
Hiryu
n00b
n00b


Joined: 28 Apr 2003
Posts: 13

PostPosted: Mon Apr 28, 2003 7:47 pm    Post subject: Reply with quote

Quote:
Can anyone figure out a way to make /dev/speech use the mbrola voice(or any other voice for that matter)?


Yes...

vi /usr/lib/festival/festivalrc

uncomment (set! voice_default 'voice_us1_mbrola)
(Or add it if it's not there)
Back to top
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Mon Apr 28, 2003 10:34 pm    Post subject: Reply with quote

Can I change the volume just for the voice? I am usually listening to streaming audio with xmms, and the voice is way too quiet. I couldn't find anything in the man pages or in the doc directory about volume.

I found the two methods in the faq on the festival site, but neither seem to have any effect. Also, uncommenting the line that should change to the female voice also does nothing, even after restarting the speechd script. What do I have to do to have my changes take effect?

Thanks... this is pretty cool.
Back to top
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Mon Apr 28, 2003 11:58 pm    Post subject: Reply with quote

Ok, I got it sorted out. I just had to read a little more carefully and see that the "stop" function in the script would not kill festival. I just added a "killall -9 festival" to the stop portion of the script and started the daemon again.

It is now working perfectly... thank again for the tip.
Back to top
View user's profile Send private message
fith
n00b
n00b


Joined: 01 Apr 2003
Posts: 4

PostPosted: Tue Apr 29, 2003 2:59 am    Post subject: It is really awesome! Reply with quote

:lol: It's coooooool!
Thank you, dude.
_________________
It should be..
Back to top
View user's profile Send private message
aardvark
Guru
Guru


Joined: 30 Jun 2002
Posts: 576

PostPosted: Tue Apr 29, 2003 8:28 pm    Post subject: Reply with quote

Gnufsh wrote:
For some reason I get this:
# /etc/init.d/speechd start
* ERROR: "/etc/init.d/speechd" has syntax errors in it; not executing...


same here. no idea!
Back to top
View user's profile Send private message
aardvark
Guru
Guru


Joined: 30 Jun 2002
Posts: 576

PostPosted: Tue Apr 29, 2003 8:28 pm    Post subject: Reply with quote

Gnufsh wrote:
For some reason I get this:
# /etc/init.d/speechd start
* ERROR: "/etc/init.d/speechd" has syntax errors in it; not executing...


same here. no idea!
Back to top
View user's profile Send private message
panserg
Apprentice
Apprentice


Joined: 16 Apr 2003
Posts: 188

PostPosted: Fri May 02, 2003 9:42 pm    Post subject: Reply with quote

Code:

# emerge media-sound/festival
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/festival-1.4.2-r3 to /
/usr/sbin/ebuild.sh: line 865: /var/tmp/portage/festival-1.4.2-r3/work/speech_tools/eclass-debug.log: No such file or directory
>>> md5 ;-) festival-1.4.2-release.tar.gz
>>> md5 ;-) festlex_CMU.tar.gz
>>> md5 ;-) festlex_OALD.tar.gz
>>> md5 ;-) festlex_POSLEX.tar.gz
>>> md5 ;-) festvox_don.tar.gz
>>> md5 ;-) festvox_ellpc11k.tar.gz
>>> md5 ;-) festvox_kallpc16k.tar.gz
>>> md5 ;-) festvox_kedlpc16k.tar.gz
>>> md5 ;-) festvox_rablpc16k.tar.gz
>>> md5 ;-) festvox_us1.tar.gz
>>> md5 ;-) festvox_us2.tar.gz
>>> md5 ;-) festvox_us3.tar.gz
>>> md5 ;-) speech_tools-1.2.2-release.tar.gz
>>> md5 ;-) festdoc-1.4.2.tar.gz
/usr/sbin/ebuild.sh: line 865: /var/tmp/portage/festival-1.4.2-r3/work/speech_tools/eclass-debug.log: No such file or directory
/usr/sbin/ebuild.sh: line 1171: /var/tmp/portage/festival-1.4.2-r3/work/speech_tools/environment: No such file or directory

:(
Back to top
View user's profile Send private message
panserg
Apprentice
Apprentice


Joined: 16 Apr 2003
Posts: 188

PostPosted: Fri May 02, 2003 9:52 pm    Post subject: Reply with quote

:oops:
There is a bug, and there is a fix there :D
Back to top
View user's profile Send private message
grafty
n00b
n00b


Joined: 27 Jan 2003
Posts: 33

PostPosted: Sun May 04, 2003 7:51 am    Post subject: Reply with quote

Hiryu wrote:
Quote:
Can anyone figure out a way to make /dev/speech use the mbrola voice(or any other voice for that matter)?


Yes...

vi /usr/lib/festival/festivalrc

uncomment (set! voice_default 'voice_us1_mbrola)
(Or add it if it's not there)


Another way to do this is to put this in your /root/.festivalrc file:
Code:
(set! voice_default 'voice_mwm_diphone)

replace mwm_diphone with whatever voice you want to use.[/code]
Back to top
View user's profile Send private message
theJPster
n00b
n00b


Joined: 24 Sep 2002
Posts: 32
Location: East Midlands, UK

PostPosted: Sun May 04, 2003 4:05 pm    Post subject: Reading sensor output Reply with quote

This is all really cool stuff.

I made up the following quick script, which might prove useful to someone (needs lm_sensors installed and setup):

Code:

#!/bin/bash
# This is /usr/local/bin/saytemp
temp=`/usr/bin/sensors | grep temp2 | sed -r 's/^temp2:.+\+([0-9\.]+).*limit.*$/\1/g'`
if [ -e /dev/speech ]
then
        echo "C P U is at $temp degrees" > /dev/speech;
else
        echo "Speech FIFO /dev/speech does not exist";
fi


'temp2' happens to be my CPU temp. I've not edited sensors.conf much :) The regex is ugly, but it works!
_________________
theJPster
Back to top
View user's profile Send private message
edge3281
n00b
n00b


Joined: 15 Nov 2002
Posts: 18

PostPosted: Sun May 04, 2003 6:11 pm    Post subject: This is really cool Reply with quote

This is really great!! I love this but... Is there anyway to get this to work applications in X. Like in mozilla... say highlighting text and rightclicking on it and having it read to you? Or in gaim saying somone logged on? If you know of anything like that let us know.

Thanks
Back to top
View user's profile Send private message
MrTwister
n00b
n00b


Joined: 18 Apr 2003
Posts: 30

PostPosted: Sun May 04, 2003 6:59 pm    Post subject: Reply with quote

hi,

how can i redirect the output over arts ?? i sometimes get the following output:
echo "Hello World" | festival --tts -
Linux: can't open /dev/dsp
Back to top
View user's profile Send private message
m33sb3w
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 96
Location: Villanova, PA

PostPosted: Sun May 04, 2003 7:00 pm    Post subject: Re: This is really cool Reply with quote

edge3281 wrote:
This is really great!! I love this but... Is there anyway to get this to work applications in X. Like in mozilla... say highlighting text and rightclicking on it and having it read to you? Or in gaim saying somone logged on? If you know of anything like that let us know.


For gaim, you can use buddy pounce and assign a command to it. A very good thing about this is you set the command for each user separately. This means that you can say something like "Person A is online" for person A, "Person B is online" for person B, and so on. You'll know exactly who came online without even looking instead of just knowing that someone came online.

I have a few vague ideas for possibly doing what you want in mozilla (which is a really cool suggestion, by the way). Maybe I'll try working on that later tonight.
Back to top
View user's profile Send private message
edge3281
n00b
n00b


Joined: 15 Nov 2002
Posts: 18

PostPosted: Sun May 04, 2003 7:23 pm    Post subject: Re: This is really cool Reply with quote

m33sb3w wrote:
edge3281 wrote:
This is really great!! I love this but... Is there anyway to get this to work applications in X. Like in mozilla... say highlighting text and rightclicking on it and having it read to you? Or in gaim saying somone logged on? If you know of anything like that let us know.


For gaim, you can use buddy pounce and assign a command to it. A very good thing about this is you set the command for each user separately. This means that you can say something like "Person A is online" for person A, "Person B is online" for person B, and so on. You'll know exactly who came online without even looking instead of just knowing that someone came online.

I have a few vague ideas for possibly doing what you want in mozilla (which is a really cool suggestion, by the way). Maybe I'll try working on that later tonight.

Great idea! I didn't think about the executing a command option in gaim. It works wonderfully now. Thanks!
Back to top
View user's profile Send private message
pregopresto
n00b
n00b


Joined: 05 May 2003
Posts: 46

PostPosted: Tue May 06, 2003 10:44 am    Post subject: Reply with quote

Quote:
For some reason I get this:
# /etc/init.d/speechd start
* ERROR: "/etc/init.d/speechd" has syntax errors in it; not executing...


Please make sure, that you have a blank line at the end of the script. Then it works :D

HTH

Prego :)
Back to top
View user's profile Send private message
bassvandijk
Guru
Guru


Joined: 13 Sep 2002
Posts: 306
Location: Haps, Netherlands

PostPosted: Tue May 06, 2003 2:47 pm    Post subject: Reply with quote

MrTwister wrote:
hi,

how can i redirect the output over arts ?? i sometimes get the following output:
echo "Hello World" | festival --tts -
Linux: can't open /dev/dsp


This explains how you can use a different audio player for festival. If you run the audio player through "artsdsp" then it should solve your problem.
Back to top
View user's profile Send private message
STEDevil
Apprentice
Apprentice


Joined: 24 Apr 2003
Posts: 156

PostPosted: Wed May 07, 2003 11:17 am    Post subject: Reply with quote

Festival supposedly doesn't work with gcc 3.2.2

http://www.cstr.ed.ac.uk/cgi-bin/lists.cgi?config=festival_faq&entry=installing_festival/agcc32.html

Is everybody here that has been able to get it working using an outdated compiler? In that case I wish I'd know 45 minutes ago before I started wasting time with this :D
Back to top
View user's profile Send private message
puke
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2002
Posts: 128

PostPosted: Thu May 08, 2003 3:14 pm    Post subject: This may be a naff question, but.. Reply with quote

:?: Can this use the pc-speaker?

I have a server that sits in the corner without a monitor, I would like it to talk when there are problems, but I don't want to have to load sound drivers etc.
Back to top
View user's profile Send private message
riggagoogoo
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2003
Posts: 108

PostPosted: Thu May 08, 2003 9:21 pm    Post subject: Reply with quote

This is great however is there a way to integrate it in to apps i.e in the kde copy to option could you copy a text file to /dev/speech or perhaps the contents of the clipboard etc - would be great to be able to drag your email to an icon on the desktop and have it read it out.

Rigga
Back to top
View user's profile Send private message
machinelou
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 267

PostPosted: Thu May 08, 2003 9:44 pm    Post subject: Reply with quote

STEDevil wrote:
Festival supposedly doesn't work with gcc 3.2.2

http://www.cstr.ed.ac.uk/cgi-bin/lists.cgi?config=festival_faq&entry=installing_festival/agcc32.html

Is everybody here that has been able to get it working using an outdated compiler? In that case I wish I'd know 45 minutes ago before I started wasting time with this :D


Does anyone know if there's a fix to this? I keep getting errors when compiling festival but I'm sure somebody has a fix. ty
Back to top
View user's profile Send private message
BradB
Apprentice
Apprentice


Joined: 18 Jun 2002
Posts: 190
Location: Christchurch NZ

PostPosted: Thu May 08, 2003 9:59 pm    Post subject: Reply with quote

OK, now for an interesting use of /dev/speech - where abouts would be fun places to symlink it to?
ie ln -s /dev/null with /dev/speech - (urg I'd think)
or could you hook it up so that kernel logs got spoken out?

Probably annoying, but maybe fun :)

Brad
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
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 2 of 6

 
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