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:29 CET 2009 -->
\r
7 Durator (FreeTTS 1.2)
\r
10 <META NAME="keywords" CONTENT="com.sun.speech.freetts.cart.Durator 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="Durator (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/cart/CARTImpl.html" title="class in com.sun.speech.freetts.cart"><B>PREV CLASS</B></A>
\r
53 <A HREF="../../../../../com/sun/speech/freetts/cart/Intonator.html" title="class in com.sun.speech.freetts.cart"><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="Durator.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.cart</FONT>
\r
89 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>com.sun.speech.freetts.cart.Durator</B>
\r
92 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../com/sun/speech/freetts/UtteranceProcessor.html" title="interface in com.sun.speech.freetts">UtteranceProcessor</A></DD>
\r
96 <DT>public class <B>Durator</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../com/sun/speech/freetts/UtteranceProcessor.html" title="interface in com.sun.speech.freetts">UtteranceProcessor</A></DL>
\r
99 Determines duration timing for
100 <code>Relation.SEGMENT</code> relations in an utterance.
101 Annotates the <code>Relation.SEGMENT</code> relation with an
104 <p>[[[TODO: The mean words-per-minute rate should become part
105 of the CART data. For now, it is passed into the constructor.]]]
\r
110 <DT><B>See Also:</B><DD><A HREF="../../../../../com/sun/speech/freetts/Relation.html#SEGMENT"><CODE>Relation.SEGMENT</CODE></A></DL>
\r
114 <!-- ======== NESTED CLASS SUMMARY ======== -->
\r
117 <!-- =========== FIELD SUMMARY =========== -->
\r
119 <A NAME="field_summary"><!-- --></A>
120 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
121 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
122 <TD COLSPAN=2><FONT SIZE="+2">
\r
123 <B>Field Summary</B></FONT></TD>
\r
125 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
126 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
127 <CODE>protected <A HREF="../../../../../com/sun/speech/freetts/cart/CART.html" title="interface in com.sun.speech.freetts.cart">CART</A></CODE></FONT></TD>
\r
128 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/Durator.html#cart">cart</A></B></CODE>
\r
131 The CART used for this duration UtteranceProcessor. </TD>
\r
133 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
134 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
135 <CODE>protected <A HREF="../../../../../com/sun/speech/freetts/PhoneDurations.html" title="interface in com.sun.speech.freetts">PhoneDurations</A></CODE></FONT></TD>
\r
136 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/Durator.html#durations">durations</A></B></CODE>
\r
139 The PhoneDurations used for this duration UtteranceProcessor.
144 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
\r
146 <A NAME="constructor_summary"><!-- --></A>
147 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
148 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
149 <TD COLSPAN=2><FONT SIZE="+2">
\r
150 <B>Constructor Summary</B></FONT></TD>
\r
152 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
153 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/Durator.html#Durator(com.sun.speech.freetts.cart.CART, float, com.sun.speech.freetts.PhoneDurations)">Durator</A></B>(<A HREF="../../../../../com/sun/speech/freetts/cart/CART.html" title="interface in com.sun.speech.freetts.cart">CART</A> cart,
155 <A HREF="../../../../../com/sun/speech/freetts/PhoneDurations.html" title="interface in com.sun.speech.freetts">PhoneDurations</A> durations)</CODE>
\r
158 Creates a new duration UtteranceProcessor with the given
159 CART and phone durations.</TD>
\r
163 <!-- ========== METHOD SUMMARY =========== -->
\r
165 <A NAME="method_summary"><!-- --></A>
166 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
167 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
168 <TD COLSPAN=2><FONT SIZE="+2">
\r
169 <B>Method Summary</B></FONT></TD>
\r
171 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
172 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
173 <CODE> void</CODE></FONT></TD>
\r
174 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/Durator.html#processUtterance(com.sun.speech.freetts.Utterance)">processUtterance</A></B>(<A HREF="../../../../../com/sun/speech/freetts/Utterance.html" title="class in com.sun.speech.freetts">Utterance</A> utterance)</CODE>
\r
177 Annotates the <code>Relation.SEGMENT</code> relations with
178 cumulative "end" time
179 features based on phone durations. </TD>
\r
181 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
182 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
183 <CODE> java.lang.String</CODE></FONT></TD>
\r
184 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/Durator.html#toString()">toString</A></B>()</CODE>
\r
187 </TD>
\r
190 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
191 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
192 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
\r
193 <TD><B>Methods inherited from class java.lang.Object</B></TD>
\r
195 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
196 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
\r
202 <!-- ============ FIELD DETAIL =========== -->
\r
204 <A NAME="field_detail"><!-- --></A>
205 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
206 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
207 <TD COLSPAN=1><FONT SIZE="+2">
\r
208 <B>Field Detail</B></FONT></TD>
\r
212 <A NAME="cart"><!-- --></A><H3>
\r
215 protected final <A HREF="../../../../../com/sun/speech/freetts/cart/CART.html" title="interface in com.sun.speech.freetts.cart">CART</A> <B>cart</B></PRE>
\r
217 <DD>The CART used for this duration UtteranceProcessor. It is
218 passed into the constructor.
\r
225 <A NAME="durations"><!-- --></A><H3>
\r
228 protected final <A HREF="../../../../../com/sun/speech/freetts/PhoneDurations.html" title="interface in com.sun.speech.freetts">PhoneDurations</A> <B>durations</B></PRE>
\r
230 <DD>The PhoneDurations used for this duration UtteranceProcessor.
231 It is passed into the constructor.
\r
237 <!-- ========= CONSTRUCTOR DETAIL ======== -->
\r
239 <A NAME="constructor_detail"><!-- --></A>
240 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
241 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
242 <TD COLSPAN=1><FONT SIZE="+2">
\r
243 <B>Constructor Detail</B></FONT></TD>
\r
247 <A NAME="Durator(com.sun.speech.freetts.cart.CART, float, com.sun.speech.freetts.PhoneDurations)"><!-- --></A><H3>
\r
250 public <B>Durator</B>(<A HREF="../../../../../com/sun/speech/freetts/cart/CART.html" title="interface in com.sun.speech.freetts.cart">CART</A> cart,
252 <A HREF="../../../../../com/sun/speech/freetts/PhoneDurations.html" title="interface in com.sun.speech.freetts">PhoneDurations</A> durations)</PRE>
\r
254 <DD>Creates a new duration UtteranceProcessor with the given
255 CART and phone durations.
\r
257 <DT><B>Parameters:</B><DD><CODE>cart</CODE> - contains zscore duration data<DD><CODE>meanRate</CODE> - the mean words per minute rate of the CART data<DD><CODE>durations</CODE> - contains mean and standard deviation phone durations</DL>
\r
259 <!-- ============ METHOD DETAIL ========== -->
\r
261 <A NAME="method_detail"><!-- --></A>
262 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
263 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
264 <TD COLSPAN=1><FONT SIZE="+2">
\r
265 <B>Method Detail</B></FONT></TD>
\r
269 <A NAME="processUtterance(com.sun.speech.freetts.Utterance)"><!-- --></A><H3>
\r
270 processUtterance</H3>
\r
272 public void <B>processUtterance</B>(<A HREF="../../../../../com/sun/speech/freetts/Utterance.html" title="class in com.sun.speech.freetts">Utterance</A> utterance)
273 throws <A HREF="../../../../../com/sun/speech/freetts/ProcessException.html" title="class in com.sun.speech.freetts">ProcessException</A></PRE>
\r
275 <DD>Annotates the <code>Relation.SEGMENT</code> relations with
276 cumulative "end" time
277 features based on phone durations. Expects the CART to return
278 a zscore for each phone, which specifies the number of standard
279 deviations from the mean. This is coupled with a phone
280 durations table that returns the mean and standard deviation
284 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/speech/freetts/UtteranceProcessor.html#processUtterance(com.sun.speech.freetts.Utterance)">processUtterance</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/speech/freetts/UtteranceProcessor.html" title="interface in com.sun.speech.freetts">UtteranceProcessor</A></CODE></DL>
\r
287 <DT><B>Parameters:</B><DD><CODE>utterance</CODE> - the utterance to process
289 <DD><CODE><A HREF="../../../../../com/sun/speech/freetts/ProcessException.html" title="class in com.sun.speech.freetts">ProcessException</A></CODE> - if a problem is encountered during the
290 processing of the utterance</DL>
\r
295 <A NAME="toString()"><!-- --></A><H3>
\r
298 public java.lang.String <B>toString</B>()</PRE>
\r
307 <!-- ========= END OF CLASS DATA ========= -->
\r
311 <!-- ======= START OF BOTTOM NAVBAR ====== -->
\r
312 <A NAME="navbar_bottom"><!-- --></A>
313 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
314 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
316 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
317 <A NAME="navbar_bottom_firstrow"><!-- --></A>
318 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
319 <TR ALIGN="center" VALIGN="top">
\r
320 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
321 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
322 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
323 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
324 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
325 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
326 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
330 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
336 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
337 <A HREF="../../../../../com/sun/speech/freetts/cart/CARTImpl.html" title="class in com.sun.speech.freetts.cart"><B>PREV CLASS</B></A>
\r
338 <A HREF="../../../../../com/sun/speech/freetts/cart/Intonator.html" title="class in com.sun.speech.freetts.cart"><B>NEXT CLASS</B></A></FONT></TD>
\r
339 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
340 <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
\r
341 <A HREF="Durator.html" target="_top"><B>NO FRAMES</B></A>
\r
342 <SCRIPT type="text/javascript">
\r
345 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
350 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
356 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
357 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
358 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
359 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
362 <A NAME="skip-navbar_bottom"></A>
363 <!-- ======== END OF BOTTOM NAVBAR ======= -->
\r