1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
\r
5 <!-- Generated by javadoc (build 1.4.2_16) on Mon Mar 09 18:20:30 CET 2009 -->
\r
7 CMULexicon (FreeTTS 1.2)
\r
10 <META NAME="keywords" CONTENT="com.sun.speech.freetts.en.us.CMULexicon class">
\r
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
\r
14 <SCRIPT type="text/javascript">
\r
15 function windowTitle()
\r
17 parent.document.title="CMULexicon (FreeTTS 1.2)";
\r
23 <BODY BGCOLOR="white" onload="windowTitle();">
\r
26 <!-- ========= START OF TOP NAVBAR ======= -->
\r
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
34 <TR ALIGN="center" VALIGN="top">
\r
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
45 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
51 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
52 <A HREF="../../../../../../com/sun/speech/freetts/en/us/CMUDiphoneVoice.html" title="class in com.sun.speech.freetts.en.us"><B>PREV CLASS</B></A>
\r
53 <A HREF="../../../../../../com/sun/speech/freetts/en/us/CMUTimeLexicon.html" title="class in com.sun.speech.freetts.en.us"><B>NEXT CLASS</B></A></FONT></TD>
\r
54 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
55 <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
\r
56 <A HREF="CMULexicon.html" target="_top"><B>NO FRAMES</B></A>
\r
57 <SCRIPT type="text/javascript">
\r
60 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
65 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
71 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
72 SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_com.sun.speech.freetts.lexicon.LexiconImpl">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
73 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
74 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
77 <A NAME="skip-navbar_top"></A>
78 <!-- ========= END OF TOP NAVBAR ========= -->
\r
81 <!-- ======== START OF CLASS DATA ======== -->
\r
84 com.sun.speech.freetts.en.us</FONT>
\r
86 Class CMULexicon</H2>
\r
89 <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html" title="class in com.sun.speech.freetts.lexicon">com.sun.speech.freetts.lexicon.LexiconImpl</A>
\r
90 <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><B>com.sun.speech.freetts.en.us.CMULexicon</B>
\r
93 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../com/sun/speech/freetts/lexicon/Lexicon.html" title="interface in com.sun.speech.freetts.lexicon">Lexicon</A></DD>
\r
96 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMUTimeLexicon.html" title="class in com.sun.speech.freetts.en.us">CMUTimeLexicon</A></DD>
\r
100 <DT>public class <B>CMULexicon</B><DT>extends <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html" title="class in com.sun.speech.freetts.lexicon">LexiconImpl</A></DL>
\r
103 Provides a CMU lexicon-specific implementation of a Lexicon that is
104 stored in a text file.
\r
111 <!-- ======== NESTED CLASS SUMMARY ======== -->
\r
114 <!-- =========== FIELD SUMMARY =========== -->
\r
116 <A NAME="field_summary"><!-- --></A>
117 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
118 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
119 <TD COLSPAN=2><FONT SIZE="+2">
\r
120 <B>Field Summary</B></FONT></TD>
\r
123 <A NAME="fields_inherited_from_class_com.sun.speech.freetts.lexicon.LexiconImpl"><!-- --></A>
124 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
125 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
\r
126 <TD><B>Fields inherited from class com.sun.speech.freetts.lexicon.<A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html" title="class in com.sun.speech.freetts.lexicon">LexiconImpl</A></B></TD>
\r
128 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
129 <TD><CODE><A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#tokenizeOnLoad">tokenizeOnLoad</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#tokenizeOnLookup">tokenizeOnLookup</A></CODE></TD>
\r
133 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
\r
135 <A NAME="constructor_summary"><!-- --></A>
136 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
137 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
138 <TD COLSPAN=2><FONT SIZE="+2">
\r
139 <B>Constructor Summary</B></FONT></TD>
\r
141 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
142 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#CMULexicon()">CMULexicon</A></B>()</CODE>
\r
145 Creates the default CMU Lexicon which is a binary lexicon</TD>
\r
147 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
148 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#CMULexicon(java.lang.String)">CMULexicon</A></B>(java.lang.String basename)</CODE>
\r
151 Creates the CMU Lexicon which is a binary lexicon</TD>
\r
153 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
154 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#CMULexicon(java.lang.String, boolean)">CMULexicon</A></B>(java.lang.String basename,
155 boolean useBinaryIO)</CODE>
\r
158 </TD>
\r
160 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
161 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#CMULexicon(java.net.URL, java.net.URL, java.net.URL, boolean)">CMULexicon</A></B>(java.net.URL compiledURL,
162 java.net.URL addendaURL,
163 java.net.URL letterToSoundURL,
164 boolean binary)</CODE>
\r
167 Creates a CMULexicon based upon the given compiled and addenda
168 DBs and the given letter to sound rules</TD>
\r
172 <!-- ========== METHOD SUMMARY =========== -->
\r
174 <A NAME="method_summary"><!-- --></A>
175 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
176 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
177 <TD COLSPAN=2><FONT SIZE="+2">
\r
178 <B>Method Summary</B></FONT></TD>
\r
180 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
181 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
182 <CODE>static <A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html" title="class in com.sun.speech.freetts.en.us">CMULexicon</A></CODE></FONT></TD>
\r
183 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#getInstance(boolean)">getInstance</A></B>(boolean useBinaryIO)</CODE>
\r
186 Get the CMULexicon.</TD>
\r
188 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
189 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
190 <CODE>static <A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html" title="class in com.sun.speech.freetts.en.us">CMULexicon</A></CODE></FONT></TD>
\r
191 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#getInstance(java.lang.String, boolean)">getInstance</A></B>(java.lang.String basename,
192 boolean useBinaryIO)</CODE>
\r
195 Get the CMULexicon.</TD>
\r
197 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
198 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
199 <CODE>protected static int</CODE></FONT></TD>
\r
200 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#getSonority(java.lang.String)">getSonority</A></B>(java.lang.String phone)</CODE>
\r
203 Determines the sonority for the given phone.</TD>
\r
205 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
206 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
207 <CODE>protected static boolean</CODE></FONT></TD>
\r
208 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#hasVowel(java.util.List)">hasVowel</A></B>(java.util.List phones)</CODE>
\r
211 Determines if there is a vowel in given list of phones.</TD>
\r
213 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
214 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
215 <CODE>protected static boolean</CODE></FONT></TD>
\r
216 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#hasVowel(java.lang.String[], int)">hasVowel</A></B>(java.lang.String[] phones,
217 int index)</CODE>
\r
220 Determines if there is a vowel in the remainder of the array,
221 starting at the given index.</TD>
\r
223 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
224 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
225 <CODE>protected static boolean</CODE></FONT></TD>
\r
226 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#isSilence(java.lang.String)">isSilence</A></B>(java.lang.String phone)</CODE>
\r
229 Determines if the given phone represents a silent phone.</TD>
\r
231 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
232 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
233 <CODE> boolean</CODE></FONT></TD>
\r
234 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#isSyllableBoundary(java.util.List, java.lang.String[], int)">isSyllableBoundary</A></B>(java.util.List syllablePhones,
235 java.lang.String[] wordPhones,
236 int currentWordPhone)</CODE>
\r
239 Determines if the currentPhone represents a new syllable
242 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
243 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
244 <CODE>protected static boolean</CODE></FONT></TD>
\r
245 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#isVowel(java.lang.String)">isVowel</A></B>(java.lang.String phone)</CODE>
\r
248 Determines if the given phone is a vowel</TD>
\r
250 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
251 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
252 <CODE>static void</CODE></FONT></TD>
\r
253 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE>
\r
256 Provides test code for the CMULexicon.
260 <A NAME="methods_inherited_from_class_com.sun.speech.freetts.lexicon.LexiconImpl"><!-- --></A>
261 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
262 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
\r
263 <TD><B>Methods inherited from class com.sun.speech.freetts.lexicon.<A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html" title="class in com.sun.speech.freetts.lexicon">LexiconImpl</A></B></TD>
\r
265 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
266 <TD><CODE><A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#addAddendum(java.lang.String, java.lang.String, java.lang.String[])">addAddendum</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#compare(com.sun.speech.freetts.lexicon.LexiconImpl)">compare</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#createLexicon(java.io.InputStream, boolean, int)">createLexicon</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#dumpBinary(java.lang.String)">dumpBinary</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#fixPartOfSpeech(java.lang.String)">fixPartOfSpeech</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#getPhones(java.util.Map, java.lang.String)">getPhones</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#getPhones(java.util.Map, java.lang.String, java.lang.String)">getPhones</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#getPhones(java.lang.String)">getPhones</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#getPhones(java.lang.String, java.lang.String)">getPhones</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#getPhones(java.lang.String, java.lang.String, boolean)">getPhones</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#isLoaded()">isLoaded</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#load()">load</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#loadTextLexicon(java.io.InputStream, int)">loadTextLexicon</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#parseAndAdd(java.util.Map, java.lang.String)">parseAndAdd</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#removeAddendum(java.lang.String, java.lang.String)">removeAddendum</A>, <A HREF="../../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html#setLexiconParameters(java.net.URL, java.net.URL, java.net.URL, boolean)">setLexiconParameters</A></CODE></TD>
\r
269 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
270 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
271 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
\r
272 <TD><B>Methods inherited from class java.lang.Object</B></TD>
\r
274 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
275 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
\r
281 <!-- ============ FIELD DETAIL =========== -->
\r
284 <!-- ========= CONSTRUCTOR DETAIL ======== -->
\r
286 <A NAME="constructor_detail"><!-- --></A>
287 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
288 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
289 <TD COLSPAN=1><FONT SIZE="+2">
\r
290 <B>Constructor Detail</B></FONT></TD>
\r
294 <A NAME="CMULexicon(java.net.URL, java.net.URL, java.net.URL, boolean)"><!-- --></A><H3>
\r
297 public <B>CMULexicon</B>(java.net.URL compiledURL,
298 java.net.URL addendaURL,
299 java.net.URL letterToSoundURL,
300 boolean binary)</PRE>
\r
302 <DD>Creates a CMULexicon based upon the given compiled and addenda
303 DBs and the given letter to sound rules
\r
305 <DT><B>Parameters:</B><DD><CODE>compiledURL</CODE> - the compiled database is loaded from here<DD><CODE>addendaURL</CODE> - the database addenda is loaded from here<DD><CODE>letterToSoundURL</CODE> - the letter to sound rules are loaded
306 from here<DD><CODE>binary</CODE> - if <code>true</code> the input data are loaded as
307 binary ; otherwise if <code>false</code> the input
308 data are loaded as text.</DL>
\r
311 <A NAME="CMULexicon()"><!-- --></A><H3>
\r
314 public <B>CMULexicon</B>()</PRE>
\r
316 <DD>Creates the default CMU Lexicon which is a binary lexicon
\r
321 <A NAME="CMULexicon(java.lang.String)"><!-- --></A><H3>
\r
324 public <B>CMULexicon</B>(java.lang.String basename)</PRE>
\r
326 <DD>Creates the CMU Lexicon which is a binary lexicon
\r
328 <DT><B>Parameters:</B><DD><CODE>basename</CODE> - the basename for the lexicon.</DL>
\r
331 <A NAME="CMULexicon(java.lang.String, boolean)"><!-- --></A><H3>
\r
334 public <B>CMULexicon</B>(java.lang.String basename,
335 boolean useBinaryIO)</PRE>
\r
339 <!-- ============ METHOD DETAIL ========== -->
\r
341 <A NAME="method_detail"><!-- --></A>
342 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
343 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
344 <TD COLSPAN=1><FONT SIZE="+2">
\r
345 <B>Method Detail</B></FONT></TD>
\r
349 <A NAME="getInstance(boolean)"><!-- --></A><H3>
\r
352 public static <A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html" title="class in com.sun.speech.freetts.en.us">CMULexicon</A> <B>getInstance</B>(boolean useBinaryIO)
353 throws java.io.IOException</PRE>
\r
355 <DD>Get the CMULexicon.
\r
358 <DT><B>Parameters:</B><DD><CODE>useBinaryIO</CODE> - if true use binary IO to load DB
360 <DD><CODE>java.io.IOException</CODE> - if problems occurred while reading the data</DL>
\r
365 <A NAME="getInstance(java.lang.String, boolean)"><!-- --></A><H3>
\r
368 public static <A HREF="../../../../../../com/sun/speech/freetts/en/us/CMULexicon.html" title="class in com.sun.speech.freetts.en.us">CMULexicon</A> <B>getInstance</B>(java.lang.String basename,
369 boolean useBinaryIO)
370 throws java.io.IOException</PRE>
\r
372 <DD>Get the CMULexicon.
\r
375 <DT><B>Parameters:</B><DD><CODE>useBinaryIO</CODE> - if true use binary IO to load DB
377 <DD><CODE>java.io.IOException</CODE> - if problems occurred while reading the data</DL>
\r
382 <A NAME="isSyllableBoundary(java.util.List, java.lang.String[], int)"><!-- --></A><H3>
\r
383 isSyllableBoundary</H3>
\r
385 public boolean <B>isSyllableBoundary</B>(java.util.List syllablePhones,
386 java.lang.String[] wordPhones,
387 int currentWordPhone)</PRE>
\r
389 <DD>Determines if the currentPhone represents a new syllable
393 <DT><B>Parameters:</B><DD><CODE>syllablePhones</CODE> - the phones in the current syllable so far<DD><CODE>wordPhones</CODE> - the phones for the whole word<DD><CODE>currentWordPhone</CODE> - the word phone in question
394 <DT><B>Returns:</B><DD><code>true</code> if the word phone in question is on a
395 syllable boundary; otherwise <code>false</code>.</DL>
\r
400 <A NAME="isSilence(java.lang.String)"><!-- --></A><H3>
\r
403 protected static boolean <B>isSilence</B>(java.lang.String phone)</PRE>
\r
405 <DD>Determines if the given phone represents a silent phone.
\r
408 <DT><B>Parameters:</B><DD><CODE>phone</CODE> - the phone to test
409 <DT><B>Returns:</B><DD><code>true</code> if the phone represents a silent
410 phone; otherwise <code>false</code>.</DL>
\r
415 <A NAME="hasVowel(java.lang.String[], int)"><!-- --></A><H3>
\r
418 protected static boolean <B>hasVowel</B>(java.lang.String[] phones,
419 int index)</PRE>
\r
421 <DD>Determines if there is a vowel in the remainder of the array,
422 starting at the given index.
\r
425 <DT><B>Parameters:</B><DD><CODE>phones</CODE> - the set of phones to check<DD><CODE>index</CODE> - start checking at this index
426 <DT><B>Returns:</B><DD><code>true</code> if a vowel is found;
427 otherwise <code>false</code>.</DL>
\r
432 <A NAME="hasVowel(java.util.List)"><!-- --></A><H3>
\r
435 protected static boolean <B>hasVowel</B>(java.util.List phones)</PRE>
\r
437 <DD>Determines if there is a vowel in given list of phones.
\r
440 <DT><B>Parameters:</B><DD><CODE>phones</CODE> - the list of phones
441 <DT><B>Returns:</B><DD><code>true</code> if a vowel is found;
442 otherwise <code>false</code>.</DL>
\r
447 <A NAME="isVowel(java.lang.String)"><!-- --></A><H3>
\r
450 protected static boolean <B>isVowel</B>(java.lang.String phone)</PRE>
\r
452 <DD>Determines if the given phone is a vowel
\r
455 <DT><B>Parameters:</B><DD><CODE>phone</CODE> - the phone to test
456 <DT><B>Returns:</B><DD><code>true</code> if phone is a vowel
457 otherwise <code>false</code>.</DL>
\r
462 <A NAME="getSonority(java.lang.String)"><!-- --></A><H3>
\r
465 protected static int <B>getSonority</B>(java.lang.String phone)</PRE>
\r
467 <DD>Determines the sonority for the given phone.
\r
470 <DT><B>Parameters:</B><DD><CODE>phone</CODE> - the phone of interest
471 <DT><B>Returns:</B><DD>an integer that classifies phone transitions</DL>
\r
476 <A NAME="main(java.lang.String[])"><!-- --></A><H3>
\r
479 public static void <B>main</B>(java.lang.String[] args)</PRE>
\r
481 <DD>Provides test code for the CMULexicon.
482 <br><b>Usage:</b><br>
484 com.sun.speech.freetts.en.us.CMULexicon [options]
486 Where options is any combination of:
490 -generate_binary [base_name]
500 <!-- ========= END OF CLASS DATA ========= -->
\r
504 <!-- ======= START OF BOTTOM NAVBAR ====== -->
\r
505 <A NAME="navbar_bottom"><!-- --></A>
506 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
507 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
509 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
510 <A NAME="navbar_bottom_firstrow"><!-- --></A>
511 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
512 <TR ALIGN="center" VALIGN="top">
\r
513 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
514 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
515 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
516 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
517 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
518 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
519 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
523 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
529 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
530 <A HREF="../../../../../../com/sun/speech/freetts/en/us/CMUDiphoneVoice.html" title="class in com.sun.speech.freetts.en.us"><B>PREV CLASS</B></A>
\r
531 <A HREF="../../../../../../com/sun/speech/freetts/en/us/CMUTimeLexicon.html" title="class in com.sun.speech.freetts.en.us"><B>NEXT CLASS</B></A></FONT></TD>
\r
532 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
533 <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
\r
534 <A HREF="CMULexicon.html" target="_top"><B>NO FRAMES</B></A>
\r
535 <SCRIPT type="text/javascript">
\r
538 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
543 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
549 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
550 SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_com.sun.speech.freetts.lexicon.LexiconImpl">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
551 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
552 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
555 <A NAME="skip-navbar_bottom"></A>
556 <!-- ======== END OF BOTTOM NAVBAR ======= -->
\r