FreeTTS HelloWorld Demo
This demo provides a very simple example of how to use FreeTTS without requiring the Java Speech API.
To build this demo, merely type the following in a shell from any directory in the FreeTTS hierarchy:
ant -find demo.xml
Doing so will create
bin/FreeTTSHelloWorld.jar under the top level
directory. You can run the demo
java -jar (see "Running" below).
To run this demo, type the following command from a command window at the top level FreeTTS directory:
java -jar bin/FreeTTSHelloWorld.jar
You will hear:
"Thank you for giving me a voice. I'm so glad to say hello to this world."
By default, this application will use the "kevin16" voice that comes with the lib/cmu_us_kal.jar file. You can, however, specify a voice by passing the name of a voice as the first (and only) parameter on the command line:
java -jar bin/FreeTTSHelloWorld.jar kevin
java -jar bin/FreeTTSHelloWorld.jar kevin16
java -Dmbrola.base=/usr/local/mbrola -jar
bin/FreeTTSHelloWorld.jar mbrola_us1 (*)
(*) You must setup and install MBROLA before using MBROLA voices.
See the license terms
Copyright 2001,2003 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.