Unix

james collins james.collins75 at gmail.com
Mon Aug 3 12:15:08 EDT 2009


Hello,
I had the script working but now when I run it at the command line my  
computer says as the script is running

Starting yasr.
connect: Connection refused

When I manually enter the java and yasr commands it works I don't know  
what is wrong?

Sent from my iPhone

On Jul 31, 2009, at 4:40 PM, Michael Whapples <mwhapples at aim.com> wrote:

> I hope the script works as well (I am sorry I am not quite keeping  
> up with messages as quick as I could, I have the list on digest mode  
> so either have to look on the archives or wait sometime before  
> recieving the message).
>
> To exit yasr then just run the command:
> exit
>
> When using my script it should also clean up freetts as well when  
> you type exit. That is another reason for using a script, it can do  
> all that automatically for you. To stop freetts manually you will  
> need to look through the list of processes and killing the correct  
> one to stop it (or possibly closing the terminal might stop it as  
> well).
>
> Michael Whapples
> On 31/07/09 21:22, Michael Whapples 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
>>>
>>
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup



More information about the Speakup mailing list