# JSAPI MixedVoices Demo

The MixedVoice demo demonstrates how to use multiple voices and synthesizers in JSAPI. It also demonstrates how to change various synthesizer properties in JSAPI.

NOTE: To build and run this JSAPI demo, you must set up your environment to use JSAPI.

### Building

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/MixedVoices.jar` under the top level directory. You can run the demo using `java -jar` (see "Running" below).

### Running

To run this demo, type the following command from a command window at the top level FreeTTS directory:

`java -jar bin/MixedVoices.jar`

You should see the following output and hear two people speaking playfully:

`** Mixed Voices - JSAPI Demonstration program **`
`Allocating synthesizers...Loading voices...And here we go!`

To see how the synthesizer properties change, append the string `-showPropertyChanges` to the command line:

`java -jar bin/MixedVoices.jar -showPropertyChanges`

To see JSAPI events, append the string `-showEvents` to the command line:

`java -jar bin/MixedVoices.jar -showEvents`

See the license terms and acknowledgments.
Copyright 2001,2003 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.