upstream version 1.2.2
[debian/freetts] / javadoc / com / sun / speech / freetts / PhoneDurationsImpl.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
2 <!--NewPage-->\r
3 <HTML>\r
4 <HEAD>\r
5 <!-- Generated by javadoc (build 1.4.2_16) on Mon Mar 09 18:20:29 CET 2009 -->\r
6 <TITLE>\r
7 PhoneDurationsImpl (FreeTTS 1.2)\r
8 </TITLE>\r
9 \r
10 <META NAME="keywords" CONTENT="com.sun.speech.freetts.PhoneDurationsImpl class">\r
11 \r
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">\r
13 \r
14 <SCRIPT type="text/javascript">\r
15 function windowTitle()\r
16 {\r
17     parent.document.title="PhoneDurationsImpl (FreeTTS 1.2)";\r
18 }\r
19 </SCRIPT>\r
20 \r
21 </HEAD>\r
22 \r
23 <BODY BGCOLOR="white" onload="windowTitle();">\r
24 \r
25
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
30 <TR>\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>&nbsp;</TD>\r
36   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
37   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
38   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
39   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
42   </TR>\r
43 </TABLE>\r
44 </TD>\r
45 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
46 </EM>\r
47 </TD>\r
48 </TR>\r
49 \r
50 <TR>\r
51 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
52 &nbsp;<A HREF="../../../../com/sun/speech/freetts/PhoneDuration.html" title="class in com.sun.speech.freetts"><B>PREV CLASS</B></A>&nbsp;\r
53 &nbsp;<A HREF="../../../../com/sun/speech/freetts/PhoneSetImpl.html" title="class in com.sun.speech.freetts"><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>  &nbsp;\r
56 &nbsp;<A HREF="PhoneDurationsImpl.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
57 &nbsp;<SCRIPT type="text/javascript">\r
58   <!--\r
59   if(window==top) {\r
60     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
61   }\r
62   //-->\r
63 </SCRIPT>\r
64 <NOSCRIPT>\r
65   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
66 </NOSCRIPT>
67 \r
68 </FONT></TD>\r
69 </TR>\r
70 <TR>\r
71 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
72   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
73 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
74 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
75 </TR>\r
76 </TABLE>\r
77 <A NAME="skip-navbar_top"></A>
78 <!-- ========= END OF TOP NAVBAR ========= -->\r
79 \r
80 <HR>\r
81 <!-- ======== START OF CLASS DATA ======== -->\r
82 <H2>\r
83 <FONT SIZE="-1">\r
84 com.sun.speech.freetts</FONT>\r
85 <BR>\r
86 Class PhoneDurationsImpl</H2>\r
87 <PRE>\r
88 java.lang.Object\r
89   <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>com.sun.speech.freetts.PhoneDurationsImpl</B>\r
90 </PRE>\r
91 <DL>\r
92 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/sun/speech/freetts/PhoneDurations.html" title="interface in com.sun.speech.freetts">PhoneDurations</A></DD>\r
93 </DL>\r
94 <HR>\r
95 <DL>\r
96 <DT>public class <B>PhoneDurationsImpl</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../com/sun/speech/freetts/PhoneDurations.html" title="interface in com.sun.speech.freetts">PhoneDurations</A></DL>\r
97 \r
98 <P>\r
99 Maintains set of PhoneDuration instances read in from a file.  The
100  format of the file is as follows:
101
102  <pre>
103  phone mean stddev
104  phone mean stddev
105  phone mean stddev
106  ...
107  </pre>
108
109  Where <code>phone</code> is the phone name, <code>mean</code> is
110  a <code>float</code> representing the mean duration of the phone
111  (typically in seconds), and <code>stddev</code> is a
112  <code>float</code> representing the standard deviation from the
113  mean.\r
114 <P>\r
115 \r
116 <P>\r
117 <HR>\r
118 \r
119 <P>\r
120 <!-- ======== NESTED CLASS SUMMARY ======== -->\r
121 \r
122 \r
123 <!-- =========== FIELD SUMMARY =========== -->\r
124 \r
125 \r
126 <!-- ======== CONSTRUCTOR SUMMARY ======== -->\r
127 \r
128 <A NAME="constructor_summary"><!-- --></A>
129 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
130 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
131 <TD COLSPAN=2><FONT SIZE="+2">\r
132 <B>Constructor Summary</B></FONT></TD>\r
133 </TR>\r
134 <TR BGCOLOR="white" CLASS="TableRowColor">\r
135 <TD><CODE><B><A HREF="../../../../com/sun/speech/freetts/PhoneDurationsImpl.html#PhoneDurationsImpl(java.net.URL)">PhoneDurationsImpl</A></B>(java.net.URL&nbsp;url)</CODE>\r
136 \r
137 <BR>\r
138 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new PhoneDurationsImpl by reading from the given URL.</TD>\r
139 </TR>\r
140 </TABLE>\r
141 &nbsp;\r
142 <!-- ========== METHOD SUMMARY =========== -->\r
143 \r
144 <A NAME="method_summary"><!-- --></A>
145 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
146 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
147 <TD COLSPAN=2><FONT SIZE="+2">\r
148 <B>Method Summary</B></FONT></TD>\r
149 </TR>\r
150 <TR BGCOLOR="white" CLASS="TableRowColor">\r
151 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
152 <CODE>&nbsp;<A HREF="../../../../com/sun/speech/freetts/PhoneDuration.html" title="class in com.sun.speech.freetts">PhoneDuration</A></CODE></FONT></TD>\r
153 <TD><CODE><B><A HREF="../../../../com/sun/speech/freetts/PhoneDurationsImpl.html#getPhoneDuration(java.lang.String)">getPhoneDuration</A></B>(java.lang.String&nbsp;phone)</CODE>\r
154 \r
155 <BR>\r
156 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the <code>PhoneDuration</code> for the given phone.  </TD>\r
157 </TR>\r
158 </TABLE>\r
159 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
160 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
161 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
162 <TD><B>Methods inherited from class java.lang.Object</B></TD>\r
163 </TR>\r
164 <TR BGCOLOR="white" CLASS="TableRowColor">\r
165 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>\r
166 </TR>\r
167 </TABLE>\r
168 &nbsp;\r
169 <P>\r
170 \r
171 <!-- ============ FIELD DETAIL =========== -->\r
172 \r
173 \r
174 <!-- ========= CONSTRUCTOR DETAIL ======== -->\r
175 \r
176 <A NAME="constructor_detail"><!-- --></A>
177 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
178 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
179 <TD COLSPAN=1><FONT SIZE="+2">\r
180 <B>Constructor Detail</B></FONT></TD>\r
181 </TR>\r
182 </TABLE>\r
183 \r
184 <A NAME="PhoneDurationsImpl(java.net.URL)"><!-- --></A><H3>\r
185 PhoneDurationsImpl</H3>\r
186 <PRE>\r
187 public <B>PhoneDurationsImpl</B>(java.net.URL&nbsp;url)
188                    throws java.io.IOException</PRE>\r
189 <DL>\r
190 <DD>Creates a new PhoneDurationsImpl by reading from the given URL.\r
191 <P>\r
192 <DT><B>Parameters:</B><DD><CODE>url</CODE> - the input source
193 <DT><B>Throws:</B>
194 <DD><CODE>java.io.IOException</CODE> - if an error occurs</DL>\r
195 \r
196 <!-- ============ METHOD DETAIL ========== -->\r
197 \r
198 <A NAME="method_detail"><!-- --></A>
199 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
200 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
201 <TD COLSPAN=1><FONT SIZE="+2">\r
202 <B>Method Detail</B></FONT></TD>\r
203 </TR>\r
204 </TABLE>\r
205 \r
206 <A NAME="getPhoneDuration(java.lang.String)"><!-- --></A><H3>\r
207 getPhoneDuration</H3>\r
208 <PRE>\r
209 public <A HREF="../../../../com/sun/speech/freetts/PhoneDuration.html" title="class in com.sun.speech.freetts">PhoneDuration</A> <B>getPhoneDuration</B>(java.lang.String&nbsp;phone)</PRE>\r
210 <DL>\r
211 <DD>Gets the <code>PhoneDuration</code> for the given phone.  If no
212  duration is applicable, returns <code>null</code>.\r
213 <P>\r
214 <DD><DL>\r
215 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/sun/speech/freetts/PhoneDurations.html#getPhoneDuration(java.lang.String)">getPhoneDuration</A></CODE> in interface <CODE><A HREF="../../../../com/sun/speech/freetts/PhoneDurations.html" title="interface in com.sun.speech.freetts">PhoneDurations</A></CODE></DL>\r
216 </DD>\r
217 <DD><DL>\r
218 <DT><B>Parameters:</B><DD><CODE>phone</CODE> - the phone
219 <DT><B>Returns:</B><DD>the <code>PhoneDuration</code> for <code>phone</code></DL>\r
220 </DD>\r
221 </DL>\r
222 <!-- ========= END OF CLASS DATA ========= -->\r
223 <HR>\r
224 \r
225
226 <!-- ======= START OF BOTTOM NAVBAR ====== -->\r
227 <A NAME="navbar_bottom"><!-- --></A>
228 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
229 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
230 <TR>\r
231 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
232 <A NAME="navbar_bottom_firstrow"><!-- --></A>
233 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
234   <TR ALIGN="center" VALIGN="top">\r
235   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
236   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
237   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
238   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
239   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
240   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
241   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
242   </TR>\r
243 </TABLE>\r
244 </TD>\r
245 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
246 </EM>\r
247 </TD>\r
248 </TR>\r
249 \r
250 <TR>\r
251 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
252 &nbsp;<A HREF="../../../../com/sun/speech/freetts/PhoneDuration.html" title="class in com.sun.speech.freetts"><B>PREV CLASS</B></A>&nbsp;\r
253 &nbsp;<A HREF="../../../../com/sun/speech/freetts/PhoneSetImpl.html" title="class in com.sun.speech.freetts"><B>NEXT CLASS</B></A></FONT></TD>\r
254 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
255   <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
256 &nbsp;<A HREF="PhoneDurationsImpl.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
257 &nbsp;<SCRIPT type="text/javascript">\r
258   <!--\r
259   if(window==top) {\r
260     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
261   }\r
262   //-->\r
263 </SCRIPT>\r
264 <NOSCRIPT>\r
265   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
266 </NOSCRIPT>
267 \r
268 </FONT></TD>\r
269 </TR>\r
270 <TR>\r
271 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
272   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
273 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
274 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
275 </TR>\r
276 </TABLE>\r
277 <A NAME="skip-navbar_bottom"></A>
278 <!-- ======== END OF BOTTOM NAVBAR ======= -->\r
279 \r
280 <HR>\r
281 \r
282 </BODY>\r
283 </HTML>\r