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 LetterToSoundImpl (FreeTTS 1.2)
\r
10 <META NAME="keywords" CONTENT="com.sun.speech.freetts.lexicon.LetterToSoundImpl 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="LetterToSoundImpl (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 PREV CLASS
\r
53 <A HREF="../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html" title="class in com.sun.speech.freetts.lexicon"><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="LetterToSoundImpl.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="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <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.lexicon</FONT>
\r
86 Class LetterToSoundImpl</H2>
\r
89 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>com.sun.speech.freetts.lexicon.LetterToSoundImpl</B>
\r
92 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSound.html" title="interface in com.sun.speech.freetts.lexicon">LetterToSound</A></DD>
\r
96 <DT>public class <B>LetterToSoundImpl</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSound.html" title="interface in com.sun.speech.freetts.lexicon">LetterToSound</A></DL>
\r
99 Provides the phone list for words using the CMU6 letter-to-sound
100 (LTS) rules, which are based on the Black, Lenzo, and Pagel paper,
101 "Issues in Building General Letter-to-Sound Rules." Proceedings
102 of ECSA Workshop on Speech Synthesis, pages 77-80, Australia, 1998.
104 <p>The LTS rules are a simple state machine, with one entry point
105 for each letter of the alphabet (lower case letters are always
106 assumed, and the rules keep an array with one entry per letter that
107 point into the state machine).
109 <p>The state machine consists of a huge array, with most entries
110 containing a decision and the indices of two other entries. The
111 first of these two indices represents where to go if the decision
112 is true, and the second represents where to go if the decision is
113 false. All entries that do not contain a decision are final
114 entries, and these contain a phone.
116 <p>The decision in this case is a simple character comparison,
117 but it is done in the context of a window around the character in
118 the word. The decision consists of a index into the context window
119 and a character value. If the character in the context window
120 matches the character value, then the decision is true.
122 <p>The machine traversal for each letter starts at that letter's
123 entry in the state machine and ends only when it reaches a final
124 state. If there is no phone that can be mapped, the phone in the
125 final state is set to 'epsilon.'
127 <p>The context window for a character is generated in the following
131 <li>Pad the original word on either side with '#' and '0'
132 characters the size of the window for the LTS rules (in this case,
133 the window size is 4). The "#" is used to indicate the beginning
134 and end of the word. So, the word "monkey" would turn into
136 <li>For each character in the word, the context window consists of
137 the characters in the padded form the preceed and follow the word.
138 The number of characters on each side is dependent upon the window
139 size. So, for this implementation, the context window for the 'k'
140 in monkey is "#money#0".
143 <p>Here's how the phone for 'k' in 'monkey' might be determined:
146 <li>Create the context window "#money#0".
147 <li>Start at the state machine entry for 'k' in the state machine.
148 <li>Grab the 'index' from the current state. This represents an
149 index into the context window.
150 <li>Compare the value of the character at the index in the context
151 window to the character from the current state. If there is a
152 match, the next state is the qtrue value. If there isn't a match,
153 the next state is the qfalse state.
154 <li>Keep on working through the machine until you read a final
156 <li>When you get to the final state, the phone is the character in
160 <p>This implementation will either read from a straight ASCII file
161 or a binary file. When reading from an ASCII file, you can specify
162 when the input line is tokenized: load, lookup, or never. If you
163 specify 'load', the entire file will be parsed when it is loaded.
164 If you specify 'lookup', the file will be loaded, but the parsing
165 for each line will be delayed until it is referenced and the parsed
166 form will be saved away. If you specify 'never', the lines will
167 parsed each time they are referenced. The default is 'load'. To
168 specify the load type, set the system property as follows:
171 -Dcom.sun.speech.freetts.lexicon.LTSTokenize=load
174 <p>[[[TODO: This implementation uses ASCII 'a'-'z', which is not
175 internationalized.]]]
\r
182 <!-- ======== NESTED CLASS SUMMARY ======== -->
\r
185 <!-- =========== FIELD SUMMARY =========== -->
\r
187 <A NAME="field_summary"><!-- --></A>
188 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
189 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
190 <TD COLSPAN=2><FONT SIZE="+2">
\r
191 <B>Field Summary</B></FONT></TD>
\r
193 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
194 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
195 <CODE>protected java.util.HashMap</CODE></FONT></TD>
\r
196 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#letterIndex">letterIndex</A></B></CODE>
\r
199 The indexes of the starting points for letters in the state machine.</TD>
\r
201 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
202 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
203 <CODE>protected boolean</CODE></FONT></TD>
\r
204 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#tokenizeOnLoad">tokenizeOnLoad</A></B></CODE>
\r
207 If true, the state string is tokenized when it is first read.
210 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
211 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
212 <CODE>protected boolean</CODE></FONT></TD>
\r
213 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#tokenizeOnLookup">tokenizeOnLookup</A></B></CODE>
\r
216 If true, the state string is tokenized the first time it is
221 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
\r
223 <A NAME="constructor_summary"><!-- --></A>
224 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
225 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
226 <TD COLSPAN=2><FONT SIZE="+2">
\r
227 <B>Constructor Summary</B></FONT></TD>
\r
229 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
230 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#LetterToSoundImpl(java.net.URL, boolean)">LetterToSoundImpl</A></B>(java.net.URL ltsRules,
231 boolean binary)</CODE>
\r
234 Class constructor.</TD>
\r
238 <!-- ========== METHOD SUMMARY =========== -->
\r
240 <A NAME="method_summary"><!-- --></A>
241 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
242 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
243 <TD COLSPAN=2><FONT SIZE="+2">
\r
244 <B>Method Summary</B></FONT></TD>
\r
246 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
247 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
248 <CODE> boolean</CODE></FONT></TD>
\r
249 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#compare(com.sun.speech.freetts.lexicon.LetterToSoundImpl)">compare</A></B>(<A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html" title="class in com.sun.speech.freetts.lexicon">LetterToSoundImpl</A> other)</CODE>
\r
252 Compares this LTS to another for debugging purposes.</TD>
\r
254 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
255 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
256 <CODE> void</CODE></FONT></TD>
\r
257 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#dumpBinary(java.lang.String)">dumpBinary</A></B>(java.lang.String path)</CODE>
\r
260 Dumps a binary form of the letter to sound rules.
263 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
264 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
265 <CODE>protected char[]</CODE></FONT></TD>
\r
266 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#getFullBuff(java.lang.String)">getFullBuff</A></B>(java.lang.String word)</CODE>
\r
269 Makes a character array that looks like "000#word#000".</TD>
\r
271 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
272 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
273 <CODE> java.lang.String[]</CODE></FONT></TD>
\r
274 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#getPhones(java.lang.String, java.lang.String)">getPhones</A></B>(java.lang.String word,
275 java.lang.String partOfSpeech)</CODE>
\r
278 Calculates the phone list for a given word. </TD>
\r
280 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
281 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
282 <CODE>protected com.sun.speech.freetts.lexicon.LetterToSoundImpl.State</CODE></FONT></TD>
\r
283 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#getState(int)">getState</A></B>(int i)</CODE>
\r
286 Gets the <code>State</code> at the given index. </TD>
\r
288 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
289 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
290 <CODE>protected com.sun.speech.freetts.lexicon.LetterToSoundImpl.State</CODE></FONT></TD>
\r
291 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#getState(java.lang.String)">getState</A></B>(java.lang.String s)</CODE>
\r
294 Gets the <code>State</code> based upon the <code>String</code>.</TD>
\r
296 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
297 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
298 <CODE>protected com.sun.speech.freetts.lexicon.LetterToSoundImpl.State</CODE></FONT></TD>
\r
299 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#getState(java.lang.String, java.util.StringTokenizer)">getState</A></B>(java.lang.String type,
300 java.util.StringTokenizer tokenizer)</CODE>
\r
303 Gets the <code>State</code> based upon the <code>type</code>
304 and <code>tokenizer<code>.</TD>
\r
306 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
307 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
308 <CODE>static void</CODE></FONT></TD>
\r
309 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE>
\r
312 Translates between text and binary forms of the CMU6 LTS rules.</TD>
\r
314 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
315 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
316 <CODE>protected void</CODE></FONT></TD>
\r
317 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html#parseAndAdd(java.lang.String)">parseAndAdd</A></B>(java.lang.String line)</CODE>
\r
320 Creates a word from the given input line and add it to the state
324 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
325 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
326 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
\r
327 <TD><B>Methods inherited from class java.lang.Object</B></TD>
\r
329 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
330 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
\r
336 <!-- ============ FIELD DETAIL =========== -->
\r
338 <A NAME="field_detail"><!-- --></A>
339 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
340 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
341 <TD COLSPAN=1><FONT SIZE="+2">
\r
342 <B>Field Detail</B></FONT></TD>
\r
346 <A NAME="tokenizeOnLoad"><!-- --></A><H3>
\r
347 tokenizeOnLoad</H3>
\r
349 protected boolean <B>tokenizeOnLoad</B></PRE>
\r
351 <DD>If true, the state string is tokenized when it is first read.
352 The side effects of this are quicker lookups, but more memory
353 usage and a longer startup time.
\r
360 <A NAME="tokenizeOnLookup"><!-- --></A><H3>
\r
361 tokenizeOnLookup</H3>
\r
363 protected boolean <B>tokenizeOnLookup</B></PRE>
\r
365 <DD>If true, the state string is tokenized the first time it is
366 referenced. The side effects of this are quicker lookups, but
374 <A NAME="letterIndex"><!-- --></A><H3>
\r
377 protected java.util.HashMap <B>letterIndex</B></PRE>
\r
379 <DD>The indexes of the starting points for letters in the state machine.
\r
385 <!-- ========= CONSTRUCTOR DETAIL ======== -->
\r
387 <A NAME="constructor_detail"><!-- --></A>
388 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
389 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
390 <TD COLSPAN=1><FONT SIZE="+2">
\r
391 <B>Constructor Detail</B></FONT></TD>
\r
395 <A NAME="LetterToSoundImpl(java.net.URL, boolean)"><!-- --></A><H3>
\r
396 LetterToSoundImpl</H3>
\r
398 public <B>LetterToSoundImpl</B>(java.net.URL ltsRules,
400 throws java.io.IOException</PRE>
\r
402 <DD>Class constructor.
\r
404 <DT><B>Parameters:</B><DD><CODE>ltsRules</CODE> - a URL pointing to the text
405 containing the letter to sound rules<DD><CODE>binary</CODE> - if true, the URL is a binary source
407 <DD><CODE>java.lang.NullPointerException</CODE> - if the ltsRules are null
408 <DD><CODE>java.io.IOException</CODE> - if errors are encountered while reading the
409 compiled form or the addenda</DL>
\r
411 <!-- ============ METHOD DETAIL ========== -->
\r
413 <A NAME="method_detail"><!-- --></A>
414 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
415 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
416 <TD COLSPAN=1><FONT SIZE="+2">
\r
417 <B>Method Detail</B></FONT></TD>
\r
421 <A NAME="parseAndAdd(java.lang.String)"><!-- --></A><H3>
\r
424 protected void <B>parseAndAdd</B>(java.lang.String line)</PRE>
\r
426 <DD>Creates a word from the given input line and add it to the state
427 machine. It expects the TOTAL line to come before any of the
434 <DT><B>Parameters:</B><DD><CODE>line</CODE> - the line of text from the input file</DL>
\r
439 <A NAME="dumpBinary(java.lang.String)"><!-- --></A><H3>
\r
442 public void <B>dumpBinary</B>(java.lang.String path)
443 throws java.io.IOException</PRE>
\r
445 <DD>Dumps a binary form of the letter to sound rules.
446 This method is not thread-safe.
460 <DT><B>Parameters:</B><DD><CODE>path</CODE> - the path to dump the file to
462 <DD><CODE>java.io.IOException</CODE> - if a problem occurs during the dump</DL>
\r
467 <A NAME="getState(int)"><!-- --></A><H3>
\r
470 protected com.sun.speech.freetts.lexicon.LetterToSoundImpl.State <B>getState</B>(int i)</PRE>
\r
472 <DD>Gets the <code>State</code> at the given index. This may
473 replace a <code>String</code> at
474 the current spot with an actual <code>State</code> instance.
\r
480 <DT><B>Parameters:</B><DD><CODE>i</CODE> - the index into the state machine
481 <DT><B>Returns:</B><DD>the <code>State</code> at the given index.</DL>
\r
486 <A NAME="getState(java.lang.String)"><!-- --></A><H3>
\r
489 protected com.sun.speech.freetts.lexicon.LetterToSoundImpl.State <B>getState</B>(java.lang.String s)</PRE>
\r
491 <DD>Gets the <code>State</code> based upon the <code>String</code>.
\r
497 <DT><B>Parameters:</B><DD><CODE>s</CODE> - the string to parse
498 <DT><B>Returns:</B><DD>the parsed <code>State</code></DL>
\r
503 <A NAME="getState(java.lang.String, java.util.StringTokenizer)"><!-- --></A><H3>
\r
506 protected com.sun.speech.freetts.lexicon.LetterToSoundImpl.State <B>getState</B>(java.lang.String type,
507 java.util.StringTokenizer tokenizer)</PRE>
\r
509 <DD>Gets the <code>State</code> based upon the <code>type</code>
510 and <code>tokenizer<code>.
\r
516 <DT><B>Parameters:</B><DD><CODE>type</CODE> - one of <code>STATE</code> or <code>PHONE</code><DD><CODE>tokenizer</CODE> - a <code>StringTokenizer</code> containing the
518 <DT><B>Returns:</B><DD>the parsed <code>State</code></DL>
\r
523 <A NAME="getFullBuff(java.lang.String)"><!-- --></A><H3>
\r
526 protected char[] <B>getFullBuff</B>(java.lang.String word)</PRE>
\r
528 <DD>Makes a character array that looks like "000#word#000".
\r
534 <DT><B>Parameters:</B><DD><CODE>word</CODE> - the original word
535 <DT><B>Returns:</B><DD>the padded word</DL>
\r
540 <A NAME="getPhones(java.lang.String, java.lang.String)"><!-- --></A><H3>
\r
543 public java.lang.String[] <B>getPhones</B>(java.lang.String word,
544 java.lang.String partOfSpeech)</PRE>
\r
546 <DD>Calculates the phone list for a given word. If a phone list cannot
547 be determined, <code>null</code> is returned. This particular
548 implementation ignores the part of speech.
\r
551 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSound.html#getPhones(java.lang.String, java.lang.String)">getPhones</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSound.html" title="interface in com.sun.speech.freetts.lexicon">LetterToSound</A></CODE></DL>
\r
554 <DT><B>Parameters:</B><DD><CODE>word</CODE> - the word to find<DD><CODE>partOfSpeech</CODE> - the part of speech.
555 <DT><B>Returns:</B><DD>the list of phones for word or <code>null</code></DL>
\r
560 <A NAME="compare(com.sun.speech.freetts.lexicon.LetterToSoundImpl)"><!-- --></A><H3>
\r
563 public boolean <B>compare</B>(<A HREF="../../../../../com/sun/speech/freetts/lexicon/LetterToSoundImpl.html" title="class in com.sun.speech.freetts.lexicon">LetterToSoundImpl</A> other)</PRE>
\r
565 <DD>Compares this LTS to another for debugging purposes.
\r
571 <DT><B>Parameters:</B><DD><CODE>other</CODE> - the other LTS to compare to
572 <DT><B>Returns:</B><DD><code>true</code> if these are equivalent</DL>
\r
577 <A NAME="main(java.lang.String[])"><!-- --></A><H3>
\r
580 public static void <B>main</B>(java.lang.String[] args)</PRE>
\r
582 <DD>Translates between text and binary forms of the CMU6 LTS rules.
\r
591 <!-- ========= END OF CLASS DATA ========= -->
\r
595 <!-- ======= START OF BOTTOM NAVBAR ====== -->
\r
596 <A NAME="navbar_bottom"><!-- --></A>
597 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
598 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
600 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
601 <A NAME="navbar_bottom_firstrow"><!-- --></A>
602 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
603 <TR ALIGN="center" VALIGN="top">
\r
604 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
605 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
606 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
607 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
608 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
609 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
610 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
614 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
620 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
621 PREV CLASS
\r
622 <A HREF="../../../../../com/sun/speech/freetts/lexicon/LexiconImpl.html" title="class in com.sun.speech.freetts.lexicon"><B>NEXT CLASS</B></A></FONT></TD>
\r
623 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
624 <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
\r
625 <A HREF="LetterToSoundImpl.html" target="_top"><B>NO FRAMES</B></A>
\r
626 <SCRIPT type="text/javascript">
\r
629 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
634 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
640 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
641 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
642 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
643 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
646 <A NAME="skip-navbar_bottom"></A>
647 <!-- ======== END OF BOTTOM NAVBAR ======= -->
\r