1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
6 * Copyright 2001,2003 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>JSAPI Time Demo</title></head>
19 <table bgcolor="#FFCC66" width="100%">
21 <td align=center width="100%">
22 <h1>JSAPI Time Demo</h1>
28 <p>This demo provides a simple example of using JSAPI to tell
29 the time using the high quality FreeTTS cluster unit selection
32 <p><b>NOTE</b>: To build and run this JSAPI demo, you must
33 <a href="../../../docs/jsapi_setup.html">set up your environment to
37 <p>To build this demo, merely type the following in a shell from
38 any directory in the FreeTTS hierarchy:
40 <code>ant -find demo.xml</code>
42 <p>Doing so will create
43 <code>bin/JTime.jar</code> under the top level
44 directory. You can run the demo
45 using <code>java -jar</code> (see "Running" below).
48 <p>To run this demo, type the following command from a command
49 window at the top level FreeTTS directory:</p>
51 <p><code>java -jar bin/JTime.jar</code></p>
54 <p>You should hear the current time and see the following prompt:</p>
56 <li><b>Enter time (HH:MM):</b></li>
59 <p>Enter the time in a format as follows:</p>
61 <li><b>Enter time (HH:MM): 12:35</b></li>
64 <p>You should hear "The time is now exactly twenty-five to one
65 in the afternoon".</p>
66 <p><img src="../../../docs/images/speaker1.gif"> Click <a
67 href="../../../docs/audio/12-35.au">AU</a> or <a
68 href="../../../docs/audio/12-35.wav">WAV</a> to listen to it.</p>
70 <h3>Specifying a Voice</h3>
72 <p>By default, this application will use the "alan" voice
73 that comes with the lib/cmu_time_awb.jar file. As of this
74 release, the "alan" voice is the only time voice that comes
76 <p>We now have, however, the ability for you to
77 create your own FreeTTS voices. See the
78 <a href="../../../tools/FestVoxToFreeTTS/README.html">
79 FestVoxToFreeTTS</a> documentation for creating your own
80 voice. Once you create your own voice, place its jar
81 file in the lib directory and specify the name of the
82 voice as the first (and only) parameter on the command line
83 (replace "myvoicename" with the name of your new voice):</p>
85 <p><code>java -jar bin/JTime.jar myvoicename</code>
90 <p>See the <a href="../../../license.terms">license terms</a>
91 and <a href="../../../acknowledgments.txt">acknowledgments</a>.
93 Copyright 2001,2003 Sun Microsystems, Inc. All Rights
94 Reserved. Use is subject to license terms.</p>