Should I be able to use yasr with the command yasr Sent from my iPhone On Aug 4, 2009, at 12:41 PM, Michael Whapples <mwhapples at aim.com> wrote: > I don't think it matters whether there is quote marks around the > 127.0.0.1:2222. The script worked on my system. > > What I guess is happening is that freetts is not started. Either the > time it waits before launching YASR is too short (I wouldn't imagine > 10 seconds being too short, so think this option is unlikely) or > there is something wrong in starting freetts (the more likely > option). The one obvious difference between my system and yours > which may be causing this is the location of the > FreeTTSEmacspeakServer.jar file. Did you edit the line beginning > FREETTS_JAR to point to the correct file? Please note: when I say it > should point to the FreeTTSEmacspeakServer.jar file I mean this must > be the complete absolute path, not a relative path (IE. it should be > the way you could refer to the file from any directory, on windows > this would be things like c:\somedir\freetts-1.2\bin > \FreeTTSEmacspeakServer.jar or on my linux machine it is /freetts/ > freetts-1.2/bin/FreeTTSEmacspeakServer.jar). > > Michael Whapples > > > On -10/01/37 20:59, james collins wrote: >> I was looking at the script, should there be quotes around the last >> line where it >> >> says "127.0.0.1:2222" >> >> I thought I had the script working but now it won't connect to yasr. >> >> >> >> >> Sent from my iPhone >> >> On Jul 31, 2009, at 4:22 PM, Michael Whapples <mwhapples at aim.com> >> wrote: >> >>> Here is a script (attached). Before use you may want to alter some >>> of the locations I have used. The most important one is the >>> location of the FreeTTSEmacspeakServer.jar file. So open the >>> script in any text editor and edit the line which says: >>> FREETTS_JAR="/freetts/freetts-1.2/bin/FreeTTSEmacspeakServer.jar" >>> >>> Change the contents of the quoted part of the line to whatever the >>> absolute filename is for the FreeTTSEmacspeakServer.jar file. >>> >>> You may also need to alter the contents of the quoted parts of the >>> lines beginning JAVA_CMD and YASR_CMD if you can't just give the >>> command java or yasr (probably not needed). >>> >>> To use this script you will need to run it using something like sh >>> (I am making an assumption that sh is the shell on mac), eg. a >>> command like: >>> sh yasr-freetts >>> >>> (assumed that the script is in the directory you are currently in). >>> >>> This script may take a little time to load yasr, that is because >>> it waits for a few seconds to ensure freetts has actually started. >>> You should be able to reduce this time by editing the line: >>> sleep 10 >>> >>> by giving a lower integer value than 10. >>> >>> Hope that works. If editing the script seems risky/something you >>> would prefer not to do then it probably will work if you unzip >>> freetts in a directory /freetts (IE. so that you have the >>> FreeTTSEmacspeakServer.jar file in the location /freetts/ >>> freetts-1.2/bin/FreeTTSEmacspeakServer.jar). >>> >>> Michael Whapples >>> On -10/01/37 20:59, james collins wrote: >>>> That would be great, about the script. >>>> >>>> Sent from my iPhone >>>> >>>> On Jul 31, 2009, at 3:32 PM, Michael Whapples <mwhapples at aim.com> >>>> wrote: >>>> >>>>> Hello James, >>>>> Sounds like you got freetts working fine when you swapped into >>>>> the freetts-1.2 directory (that was the directory I had actually >>>>> meant you to switch to after unpacking the zip file). I wouldn't >>>>> expect freetts to actually say anything when you launch it with >>>>> the command: >>>>> java -jar bin/FreeTTSEmacspeakServer.jar & >>>>> >>>>> but all the output you mentioned which appears on the terminal >>>>> is correct as I would expect. >>>>> >>>>> To get freetts to talk, you need something to tell it what to >>>>> say, that's where yasr comes in, just run the command: >>>>> yasr -s "emacspeak server" -p 127.0.0.1:2222 >>>>> >>>>> (above yasr command should all be on one line and as said by >>>>> someone else the quote marks should be used). >>>>> >>>>> Hopefully after you enter the yasr command you will hear speech, >>>>> in which case yasr works! >>>>> >>>>> If you want I can try and put together a script for you to use >>>>> (the script would need editing to match your systems locations >>>>> of files (eg. where freetts is)). By having this script you >>>>> would only need to run one command and it would be a way of >>>>> getting yasr working with freetts regardless of what your >>>>> yasr.conf file is (IE. you would have a recovery should you >>>>> misconfigure your synth). >>>>> >>>>> Michael Whapples >>>>> _______________________________________________ >>>>> Speakup mailing list >>>>> Speakup at braille.uwo.ca >>>>> http://speech.braille.uwo.ca/mailman/listinfo/speakup >>>> >>> >>> <yasr-freetts> >>> _______________________________________________ >>> 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