JSAPI Demo Player

The Player demonstrates the use of JSAPI to build applications. It is capable of performing text-to-speech on ASCII text, ASCII text files, JSML text, and JSML files. Here is a snapshot of the Player:

Building

To build this demo, merely type the following in a shell from any directory in the FreeTTS hierarchy:

Doing so will create bin/Player.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:

The player will find all available voices, including voices in all domains (e.g., general and time), and allow you to select them for synthesizing text. If you want the Player to use MBROLA voices, you must setup and install MBROLA before using MBROLA voices.

Instructions for Use

NOTE: To play any item(s) on the Play List again, simply select it on the Play List and press Play. To clear the text in the text area, press Clear.

Other Features

In addition to text-to-speech, the Player has the following functionality:

  1. Pause and resume the playing of text (Pause button).
  2. Cancel the current utterance (Cancel button).
  3. Change the volume (Volume slider), speaking rate in words per minute (Words/min slider), the pitch (Pitch/Hz slider), and the range (Range slider). The pitch is the base pitch of the voice, where range is amount of pitch variation allowed. Note that these changes will take effect only on the next utterance.
  4. Change to another synthesizer (Synthesizer combo box) and voice (Voice combo box).
  5. Monitor the progress of the text-to-speech process (select menu Monitor, Show).
  6. Change the default look & feel (select Style menu, Look & Feel, and then select the desired look & feel).

Engine Monitor

The Player also includes a Synthesizer Engine Monitor, which allows you to observe the changes in the state of the synthesizer during different stages, e.g., when initializing, performing TTS, etc.. Simply select the Monitor menu, Show) to see it working. To hide it, select the Monitor menu, Hide. Here's a snapshot of the Player with the Monitor:


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