Deploying an app that uses freeTTS

I'll get the hang of this soon :-)

I'm trying to deploy an application that uses the FreeTTS Text to speech. I'm using Netbeans IDE. The program runs fine locally, but when I run it via Web Start, it closes with an exception at the point it initialises the FreeTTS, so I guess I'm missing a .jar in the deployment?

I've included 5 .jar files that were included with the FreeTTS download, (and these match the ones I have added to the list of libraries in Netbeans).. the important bits of the exception are:

myapp.Main.StartVoice(Main.java:83)<<- this is my function that initialises

myapp.Main.main(Main.java:45)

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

java.lang.reflect.Method.invoke(Unknown Source)

com.sun.javaws.Launcher.executeApplication(Unknown Source)

com.sun.javaws.Launcher.executeMainClass(Unknown Source)

com.sun.javaws.Launcher.doLaunchApp(Unknown Source)

com.sun.javaws.Launcher.run(Unknown Source)

java.lang.Thread.run(Unknown Source)

So, I guess the first question would be what .jar files do I need to include for a simple program that uses the Kevin16 voice to say "hello", and is the above exception telling me It is missing a .jar file?

Thanks in advance for any help.

Message was edited by:

Forgeuk

[1485 byte] By [Forgeuka] at [2007-11-27 5:52:35]
# 1

After a couple of days of 'dicking around' with WebStart, I finally stumbled on an answer.

So, here it is for anyone else getting stuck on distributing a freeTTS application via webstart, it doesn't seem to mention this in any of the FAQs very clearly, it mentions something similar for the webstart clock app.

I was simply missing a line in the JNLP file:

<property name="freetts.voices" value="com.sun.speech.freetts.en.us.cmu_us_kal.KevinVoiceDirectory"/>

Not entire sure what it does, but it now works!

forgeuka at 2007-7-12 15:43:47 > top of Java-index,Desktop,Deploying...