1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
6 * Copyright 2001,2003,2005 Sun Microsystems, Inc.
8 * See the file "license.terms" for information on usage and
9 * redistribution of this file, and for a DISCLAIMER OF ALL
16 <head><title>Emacspeak Demo (non-JSAPI version)</title></head>
19 <table bgcolor="#FFCC66" width="100%">
21 <td align=center width="100%">
22 <h1>Emacspeak Demo (non-JSAPI version)</h1>
28 <p>This demo implements a text-to-speech server that can be
29 used with Emacspeak. This is the non-JSAPI version, for the
30 JSAPI version, refer to <a
31 href="../../JSAPI/Emacspeak/README.html">JSAPI Emacspeak</a>
32 (If this link doesn't work, it may be because you have the
33 stripped down "JSAPI Free" version of FreeTTS. To get the
34 full version, go to <a href="http://freetts.sourceforge.net/">
35 http://freetts.sourceforge.net</a>).
38 <p>To build this demo, merely type the following in a shell from
39 any directory in the FreeTTS hierarchy:
41 <code>ant -find demo.xml</code>
43 <p>Doing so will create
44 <code>bin/FreeTTSEmacspeakServer.jar</code> under the top level
45 directory. You can run the demo
46 using <code>java -jar</code> (see "Running the Server" below).
47 This version is sensitive to the existence and location of the
48 <code>lib</code> directory, but allows you to drop new voice
49 jar files into the voice directory and take advantage of them.
51 <p>If you want a self-contained version (i.e., one that
52 includes all it needs in one file and doesn't depend upon
53 anything else), you can build the self-contained version by
54 typing the following in a shell at the top level directory
55 in the FreeTTS hierarchy:
57 <code>ant emacspeak-server</code>
59 <p>Doing so will create
60 <code>emacspeak-server.jar</code> at the top level. You can
61 run this server as described below by merely substituting
62 <code>emacspeak-server.jar</code> for
63 <code>bin/FreeTTSEmacspeakServer.jar</code>.
65 <h3>Running the Server</h3>
66 <p>To run this demo, type the following command from a command
67 window at the top level FreeTTS directory:</p>
69 <p><code>java -jar bin/FreeTTSEmacspeakServer.jar</code></p>
72 <p>This runs the TTS Server at port 2222. To change the port,
73 modify the "port" system property:
75 <p><code>java -Dport=2222 -jar bin/FreeTTSEmacspeakServer.jar</code></p>
78 <p>The following should appear:
80 <code>Waiting on ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=2222]</code>
83 <h3>Specifying a Voice</h3>
85 <p>By default, this application will use the "kevin16" voice
86 that comes with the lib/cmu_us_kal.jar file. You can, however,
87 specify a voice by passing the name of a voice as the
88 first (and only) parameter on the command line:</p>
90 <p><code>java -jar bin/FreeTTSEmacspeakServer.jar kevin</code>
91 <br><code>java -jar bin/FreeTTSEmacspeakServer.jar kevin16</code>
92 <br><code>java -Dmbrola.base=/usr/local/mbrola -jar
93 bin/FreeTTSEmacspeakServer.jar mbrola_us1</code> (*)</p>
96 <p>(*) You must <a href="../../../mbrola/README.html">setup
97 and install MBROLA</a> before using MBROLA voices.</p>
99 <h3>Specifying Speaking Rate</h3>
101 <p>By default, this application will use the default speaking
102 rate of a voice. To change the speaking rate, you must
103 specify the voice as the first parameter on the command line
104 (as above) and then specify the speaking rate as the second
105 parameter. The speaking rate is nominally the words per minute:</p>
107 <p><code>java -jar bin/FreeTTSEmacspeakServer.jar kevin16 250</code>
110 <h3>Connecting to the Server from Emacspeak</h3>
111 <p>In your emacspeak (i.e., emacs with emacspeak running), type the
114 <code>M-x emacspeak-remote-connect-to-server</code>
117 <p>When you are prompted with "<b>Remote host:</b>", specify the
118 machine the Emacspeak TTS Server is running. The port is 2222
119 by default. Emacspeak should connect to the TTS Server.
121 <p>At this point, you should hear "<b>Connecting to server on
122 host...</b>" at your emacspeak client. You should see the following
126 Waiting on ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=2222]
127 IN : tts_set_punctuations all
129 IN : tts_capitalize 0
131 IN : tts_allcaps_beep 0
133 IN : tts_split_caps 1
135 IN : tts_set_speech_rate 225
137 IN : tts_set_character_scale 1.25
140 IN : q {Connecting to server on host sunlabs.east port 2222 }
141 Connecting to server on host sunlabs.east port 2222
142 SPEAK: "Connecting to server on host sunlabs.east port 2222"
147 IN : tts_set_punctuations some
149 IN : tts_capitalize 0
151 IN : tts_allcaps_beep 0
153 IN : tts_split_caps 1
155 IN : tts_set_speech_rate 225
157 IN : tts_set_character_scale 1.25
166 <p>See the <a href="../../../license.terms">license terms</a>
167 and <a href="../../../acknowledgments.txt">acknowledgments</a>.
169 Copyright 2001,2003,2005 Sun Microsystems, Inc. All Rights
170 Reserved. Use is subject to license terms.</p>