Speech dispatcher again

Chuck Hallenbeck chuckh at hhs48.com
Fri Mar 25 05:39:44 EST 2005


Jim,

Your problem with speechdispatcher has been caused by your execution
path being incompletely set at the time you invoked it. Typically, the
directory /usr/local/bin is not added to the execution path until a
login is completed. That means that your bootup scripts will never look
there for things they need, unless specifically asked to. If you run
speechdispatcher from within a bootup script, such as /etc/rc.d/rc.local,
it will appear to run okay, but will not have the foggiest idea where to
find the "say" command that has been put in /usr/local/bin.

There are two solutions:

1. The poor one: Modify your configuration file to add the exact path to
the "say" command where it is invoked. You did that, it worked, hurray!

but 2: The better one: Add the /usr/local/bin directory to the execution
path just before the speechdispatcher program is invoked, like this:

export PATH=/usr/local/bin:$PATH
nice -n -5 speechdispatcher

That will also work, and will allow you to use the speechdispatcher
dtk-generic.conf file without doctoring it up. It makes upgrading easier
in the future.

But both methods work fine.

Chuck

BTW: You can obtain a script called "speakwith" that allows you to
change synthesizers on the fly by typing as root such commands as these:

speakwith sftsyn
speakwith ltlk
speakwith bns

and so on. The script explains about the path problem in comment
statements. It can be had from:

http://www.mhcable.com/~chuckh/speakwith

HTH




On Thu, 24 Mar 2005, jim grimsby wrote:

> Hi, thank you very much for what ever reason giving it the full path ran
> the thing finally.  Now how  come I had to do it this way when it worked
> fine with out the full path from the command line.  Go figure.   Thanks.
>
> -----Original Message-----
> From: speakup-bounces at braille.uwo.ca
> [mailto:speakup-bounces at braille.uwo.ca] On Behalf Of Luke Yelavich
> Sent: Wednesday, March 23, 2005 8:13 PM
> To: speakup at braille.uwo.ca
> Subject: Re: Speech dispatcher again
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thu, Mar 24, 2005 at 02:28:52PM EST, Kirk Reiser wrote:
>> I may not be helpful here because it has been a long time since I used
>
>> soft dec but I think you need to have a symlink from
>> /usr/local/bin/say to /usr/bin/dtk-say.
>
> This is not the case, with recent versions at least. However what I do,
> is edit my /etc/speech-dispatcher/modules/dtk-generic.conf file and add
> the absolute path to the execution string. So I have the following:
>
> GenericExecuteSynth \
> "echo \"[:n$VOICE][:ra $RATE][:dv ap $PITCH]\" >/tmp/dtk-speak.txt \ &&
> echo \"$DATA\" | fmt >>/tmp/dtk-speak.txt && /usr/local/bin/say -fi
> /tmp/dtk-speak.txt"
> - --
> Luke
>
> Get my public GPG key here: http://www.themuso.com/themuso-gpg-key.txt
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (GNU/Linux)
>
> iD8DBQFCQj5LjVefwtBjIM4RArW5AKCC/uUC8OVmKOgmsVWEiMZ1QoQh3gCgxymX
> 6IXwDyBHfXMKuTC8nXWNlt8=
> =raq7
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>

-- 
The Moon is Full
"Things are in the saddle, and they ride mankind." Ralph Waldo Emerson
Visit my download site at http://www.mhcable.com/~chuckh




More information about the Speakup mailing list