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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--
/**
* Copyright 2001,2003 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 Time Demo</title></head>
<body>
<center>
<table bgcolor="#FFCC66" width="100%">
<tr>
<td align=center width="100%">
<h1>JSAPI Time Demo</h1>
</td>
</tr>
</table>
</center>
<p>This demo provides a simple example of using JSAPI to tell
the time using the high quality FreeTTS cluster unit selection
voice.</p>
<p><b>NOTE</b>: To build and run this JSAPI demo, you must
<a href="../../../docs/jsapi_setup.html">set up your environment to
use JSAPI</a>.
<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/JTime.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/JTime.jar</code></p>
</ul>
<p>You should hear the current time and see the following prompt:</p>
<ul>
<li><b>Enter time (HH:MM):</b></li>
</ul>
<p>Enter the time in a format as follows:</p>
<ul>
<li><b>Enter time (HH:MM): 12:35</b></li>
</ul>
<p>You should hear "The time is now exactly twenty-five to one
in the afternoon".</p>
<p><img src="../../../docs/images/speaker1.gif"> Click <a
href="../../../docs/audio/12-35.au">AU</a> or <a
href="../../../docs/audio/12-35.wav">WAV</a> to listen to it.</p>
<h3>Specifying a Voice</h3>
<p>By default, this application will use the "alan" voice
that comes with the lib/cmu_time_awb.jar file. As of this
release, the "alan" voice is the only time voice that comes
with FreeTTS.</p>
<p>We now have, however, the ability for you to
create your own FreeTTS voices. See the
<a href="../../../tools/FestVoxToFreeTTS/README.html">
FestVoxToFreeTTS</a> documentation for creating your own
voice. Once you create your own voice, place its jar
file in the lib directory and specify the name of the
voice as the first (and only) parameter on the command line
(replace "myvoicename" with the name of your new voice):</p>
<ul>
<p><code>java -jar bin/JTime.jar myvoicename</code>
</ul>
<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>
|