Emacspeak Demo (JSAPI version)

This demo implements a JSAPI text-to-speech server that can be used with Emacspeak. For the non-JSAPI version, please refer to FreeTTS Emacspeak.

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:

Doing so will create bin/EmacspeakServer.jar under the top level directory. You can run the demo using java -jar (see "Running the Server" below).

Running the Server

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

This runs the TTS Server at port 2222. To change the port, modify the "port" system property:

The following should appear:

Specifying a Voice

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:

(*) You must setup and install MBROLA before using MBROLA voices.

Specifying Speaking Rate

By default, this application will use the default speaking rate of a voice. To change the speaking rate, you must specify the voice as the first parameter on the command line (as above) and then specify the speaking rate as the second parameter. The speaking rate is nominally the words per minute:

Connecting to the Server from Emacspeak

In your emacspeak (i.e., emacs with emacspeak running), type the following command:

When you are prompted with "Remote host:", specify the machine the Emacspeak TTS Server is running. The port is 2222 by default. Emacspeak should connect to the TTS Server.

At this point, you should hear "Connecting to server on host..." at your emacspeak client. You should see the following on the server-side:


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