Code: Select all
echo "System security activated to high. Please stand away from the computer" > /dev/speech[/code]There is no chance for the mentally dead but there is a chance for the physically dead....so thats my job! To resurrect the physically dead, by diggin up dem graves!
But everytime I restart the computer and init-Script "speechd" (found in this thread" is load the default male voice is loaded. When I restart the init-Script by "/etc/init.d/speechd restart" everything is working fine.(set! voice default 'voice_us1_mbrola)
Code: Select all
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/local.start,v 1.2 2002/05/12 21:48:18 azarah Exp $
# This is a good place to load any misc.
# programs on startup ( 1>&2 )
if [ -e "/dev/speech" ] ; then
pid=`ps ax | grep "/usr/bin/perl -w /usr/bin/speechd" | grep -v grep | awk '{print $1;}'`
if [ "X${pid}" != "X" ] ; then
date="$(date +%H)"
if [ "$date" -ge "6" -a "$date" -le "12" ] ; then
say "Good morning"
else
if [ "$date" -gt "12" -a "$date" -le "18" ] ; then
say "Good afternoon"
else
if [ "$date" -gt "18" -a "$date" -le "24" ] ; then
say "Good evening"
else
if [ "$date" -gt "0" -a "$date" -lt "6" ] ; then
say "Good night or is it morning already"
fi
fi
fi
fi
sleep 1
say "Gentoo system $HOSTNAME is ready" && sleep 4 && saytime
else
echo 'Error .. speechd not loaded'
fi
else
echo 'Error .. speechd not loaded'
fiCode: Select all
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/local.stop,v 1.2 2002/05/12 21:48:18 azarah Exp $
# This is a good place to unload any misc.
# programs you started above.
# For example, if you are using OSS and have
# "/usr/local/bin/soundon" above, put
# "/usr/local/bin/soundoff" here.
RUNLV=`runlevel | cut -d ' ' -f 2`
if [ -e "/dev/speech" ] ; then
pid=`ps ax | grep "/usr/bin/perl -w /usr/bin/speechd" | grep -v grep | awk '{print $1;}'`
if [ "X${pid}" != "X" ] ; then
if [ "$RUNLV" == "0" ] ; then
say "$HOSTNAME is shutting down" && sleep 3
elif [ "$RUNLV" == "6" ] ; then
say "$HOSTNAME is rebooting now" && sleep 3
else
echo "Found invalid runlevel"
fi
else
echo 'Error .. speechd not loaded'
fi
else
echo 'Error .. speechd not loaded'
fiCode: Select all
# /etc/init.d/speechd stop
* Stopping speechd... [ ok ]
# festival --server
socket: bind failed nephros wrote:thanks, that thing is way cool.
God, this reminds me of old Amiga times!
Now, anyone know how to set up other languages.
I downloaded the German deX packages, and unzipped them to /usr/lib/mbrola/voices/german/de{1..5},
edited voices.scm to include "de1" on top of the listand edited festivalrc to:Code: Select all
(defvar default-voice-priority-list '(de1 en1_mbrola ...
(set! voice_default 'voice_de1)
but that does not work...

Code: Select all
speechd
echo "Welcome to gentoo linux." >/dev/speech
echo "Today is $(date +"%A, %B %-d. The time is %-M minutes after %-I")." >/dev/speech
Code: Select all
if [ -e "/dev/speech" ] ; then
pid=`ps ax | grep "/usr/bin/perl -w /usr/bin/speechd" | grep -v grep | awk '{print $1;}'`
if [ "X${pid}" != "X" ] ; then
echo "Shutting dow the computer at $(date +"%-M minutes after %-I.")" >/dev/speech && sleep 6
fi
fi

I have the same problem. It happen also with xmms, or mpg123. There is a BIG delay till the real sound plays. I almost trying to suicide.nalin wrote: I have a desktop where speechd works fine, I have never noticed a long lag whatsoever, i echo, it talks
Code: Select all
echo $1 | festival --ttsI figured out my problem:nalin wrote:Just a question here, and probably one that is not directly due to speechd, but...
I have a desktop where speechd works fine, I have never noticed a long lag whatsoever, i echo, it talks
I just set this up on my notebook, and sometimes (~50% of the time) it seems to buffer output, so that I echo and speech occurs anywhere from immediately to say a minute down the road. If it occurs a minute down the road and I have echoed multiple things, it says them all at once (in sequence, not concurrently). If I do something else that causes sound it plays as normal and does not suffer this buffering effect, so I dont believe it is a module unloading or arts shutting down, etc.
My question here is whether anyone else has noticed this, and is there something I can do to avoid this lag.
The desktop is using oss drivers for a sblive card, the laptops alsa drivers for an intel ac97 codec card.
Gio wrote:In bugzilla #22053 I updated festival and speech-tools to compile on gcc-3.2.3. Also did some seperation and clean up - comments welcome.
** update ** compiles on gcc 3.3 too.
i tryed "echo /var/log/syslog > /dev/speech"BradB wrote: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

Hi !carrett wrote:hey, this is awesome. when i do: echo "Hello world" > /dev/speech
the system just sits there, no sound comes out and i have to ctl-C to stop the command. however, echo "Hello world" | festival --tts -
works perfectly, anybody know how to make the device work?
Code: Select all
(set! server_access_list '("gentoo"))