From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 24-148-111-2.ip.mhcable.com ([24.148.111.2] helo=smtp.mhcable.com) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1DEmEF-0005n7-00 for ; Fri, 25 Mar 2005 05:39:47 -0500 Received: from localhost (localhost [127.0.0.1]) by deliver.mhcable.com (Postfix) with ESMTP id 5B20DE71FD for ; Fri, 25 Mar 2005 05:39:46 -0500 (EST) Received: from smtp.mhcable.com (localhost [127.0.0.1]) by localhost (VaMailArmor-2.0.1.16) id 20625-7A588698; Fri, 25 Mar 2005 05:39:46 -0500 Received: from hhs48.com (24-105-197-112.cm.mhcable.com [24.105.197.112]) by smtp.mhcable.com (Postfix) with ESMTP id 12A39E71FD for ; Fri, 25 Mar 2005 05:39:46 -0500 (EST) Received: from hhs48.com (localhost [127.0.0.1]) by hhs48.com (8.12.11/8.12.11) with ESMTP id j2PAdjk5015356 for ; Fri, 25 Mar 2005 05:39:45 -0500 Received: from localhost (chuckh@localhost) by hhs48.com (8.12.11/8.12.11/Submit) with ESMTP id j2PAdigD015353 for ; Fri, 25 Mar 2005 05:39:45 -0500 Date: Fri, 25 Mar 2005 05:39:44 -0500 (EST) From: Chuck Hallenbeck To: "Speakup is a screen review system for Linux." In-Reply-To: <000501c53110$25f86240$220110ac@jim> Message-ID: References: <000501c53110$25f86240$220110ac@jim> X-OpenPGP-Fingerprint: 0C589180D4496F1544BAB4308355D1BC33DC7DB46 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-AntiVirus: checked by Vexira MailArmor (version: 2.0.1.16; VAE: 6.28.0.18; VDF: 6.28.0.106; host: smtp.mhcable.com) Subject: RE: Speech dispatcher again X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 10:39:48 -0000 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@braille.uwo.ca > [mailto:speakup-bounces@braille.uwo.ca] On Behalf Of Luke Yelavich > Sent: Wednesday, March 23, 2005 8:13 PM > To: speakup@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@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup > > > > _______________________________________________ > Speakup mailing list > Speakup@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