1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--
/**
* Copyright 2001 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and
* redistribution of this file, and for a DISCLAIMER OF ALL
* WARRANTIES.
*/
-->
<html>
<head>
<title>JSAPI Demo Player</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<table bgcolor="#FFCC66" width="100%">
<tr>
<td align=center width="100%">
<h1>JSAPI Demo Player</h1>
</td>
</tr>
</table>
</center>
<p>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:
<p><center><img src="player.jpg"></center>
<h3>Building</h3>
<p>To build this demo, merely type the following in a shell from
any directory in the FreeTTS hierarchy:
<ul>
<code>ant -find demo.xml</code>
</ul>
<p>Doing so will create
<code>bin/Player.jar</code> under the top level
directory. You can run the demo
using <code>java -jar</code> (see "Running" below).
<h3>Running</h3>
<p>To run this demo, type the following command from a command
window at the top level FreeTTS directory:</p>
<ul>
<p><code>java -jar bin/Player.jar</code></p>
</ul>
<p>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 <a
href="../../../mbrola/README.html">setup
and install MBROLA</a> before using MBROLA voices.</p>
<h3>Instructions for Use</h3>
<ul>
<li><b>Plain Text</b>: Simply enter text at the
<b>"Enter text"</b> text area, then press the button
<b>"Speak Text"</b>. The text you entered will be played,
and inserted to the Play List.
<li><p><b>Text File</b>: Select the <b>File</b> menu,
<b>Speak</b>, <b>Text File...</b>. A file choosing dialog
will appear. Select a text file, which will be added to
the Play List and played. Do not use this method if you
want to play a JSML file. Instead, see the bullet <i>JSML
file</i>.
<li><p><b>JSML Text</b>: Simply enter JSML text at the
<b>"Enter text"</b> text area, then press the button
<b>"Speak JSML"</b>. The text you entered will be played,
and inserted to the Play List.
<li><p><b>JSML File</b>: Select the <b>File</b> menu,
<b>Speak</b>, <b>JSML File...</b>. A file choosing dialog
will appear. Select a JSML file, which will be added to
the Play List and played. There are some JSML files in
this directory which you can try out. Do not use this
method if you want to play a text file. Instead, see the
bullet <i>Text file</i>.
<li><p><b>URL</b>: It is assumed that the URL is a JSML
URL. Select the <b>File</b> menu, <b>Speak</b>,
<b>URL...</b>. A dialog will appear asking you to enter a
URL. After entering the URL, press <b>OK</b>. The new URL
will be added to your Play List, and will start to play.
</ul>
<p><b>NOTE:</b> To play any item(s) on the Play List again,
simply select it on the Play List and press <b>Play</b>. To
clear the text in the text area, press <b>Clear</b>.
<h3>Other Features</h3> <p>In addition to text-to-speech, the
Player has the following functionality:
<ol>
<li>Pause and resume the playing of text (<b>Pause</b> button).
<li>Cancel the current utterance (<b>Cancel</b> button).
<li>Change the volume (<b>Volume</b> slider), speaking
rate in words per minute (<b>Words/min</b> slider), the
pitch (<b>Pitch/Hz</b> slider), and the range
(<b>Range</b> slider). The <i>pitch</i> is the base pitch
of the voice, where <i>range</i> is amount of pitch
variation allowed. Note that these changes will take
effect only on the next utterance.
<li>Change to another synthesizer (<b>Synthesizer</b>
combo box) and voice (<b>Voice</b> combo box).
<li>Monitor the progress of the text-to-speech process
(select menu <b>Monitor</b>, <b>Show</b>).
<li>Change the default look & feel (select <b>Style</b>
menu, <b>Look & Feel</b>, and then select the desired look
& feel).
</ol>
<h3>Engine Monitor</h3>
<p>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 <b>Monitor</b> menu,
<b>Show</b>) to see it working. To hide it, select the
<b>Monitor</b> menu, <b>Hide</b>. Here's a snapshot of the
Player with the Monitor:
<p><center><img src="monitor.jpg"></center>
<hr>
<p>See the <a href="../../../license.terms">license terms</a>
and <a href="../../../acknowledgments.txt">acknowledgments</a>.
<br>
Copyright 2001,2003 Sun Microsystems, Inc. All Rights
Reserved. Use is subject to license terms.</p>
</body>
</html>
|