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
10 <META NAME="keywords" CONTENT="com.sun.speech.freetts.Unit interface">
\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="Unit (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/Tokenizer.html" title="interface in com.sun.speech.freetts"><B>PREV CLASS</B></A>
\r
53 <A HREF="../../../../com/sun/speech/freetts/UtteranceProcessor.html" title="interface 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>
\r
56 <A HREF="Unit.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 | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
73 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
74 DETAIL: FIELD | CONSTR | <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</FONT>
\r
89 <DT>public interface <B>Unit</B></DL>
\r
92 Defines a generic interface to a Unit.
\r
99 <!-- ======== NESTED CLASS SUMMARY ======== -->
\r
102 <!-- =========== FIELD SUMMARY =========== -->
\r
105 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
\r
108 <!-- ========== METHOD SUMMARY =========== -->
\r
110 <A NAME="method_summary"><!-- --></A>
111 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
112 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
113 <TD COLSPAN=2><FONT SIZE="+2">
\r
114 <B>Method Summary</B></FONT></TD>
\r
116 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
117 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
118 <CODE> void</CODE></FONT></TD>
\r
119 <TD><CODE><B><A HREF="../../../../com/sun/speech/freetts/Unit.html#dump()">dump</A></B>()</CODE>
\r
122 Dumps this unit.</TD>
\r
124 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
125 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
126 <CODE> java.lang.String</CODE></FONT></TD>
\r
127 <TD><CODE><B><A HREF="../../../../com/sun/speech/freetts/Unit.html#getName()">getName</A></B>()</CODE>
\r
130 Returns the name of this Unit.</TD>
\r
132 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
133 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
134 <CODE> <A HREF="../../../../com/sun/speech/freetts/relp/Sample.html" title="class in com.sun.speech.freetts.relp">Sample</A></CODE></FONT></TD>
\r
135 <TD><CODE><B><A HREF="../../../../com/sun/speech/freetts/Unit.html#getNearestSample(float)">getNearestSample</A></B>(float index)</CODE>
\r
138 Retrieves the nearest sample.</TD>
\r
140 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
141 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
142 <CODE> int</CODE></FONT></TD>
\r
143 <TD><CODE><B><A HREF="../../../../com/sun/speech/freetts/Unit.html#getSize()">getSize</A></B>()</CODE>
\r
146 Returns the size of this unit.</TD>
\r
152 <!-- ============ FIELD DETAIL =========== -->
\r
155 <!-- ========= CONSTRUCTOR DETAIL ======== -->
\r
158 <!-- ============ METHOD DETAIL ========== -->
\r
160 <A NAME="method_detail"><!-- --></A>
161 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
162 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
163 <TD COLSPAN=1><FONT SIZE="+2">
\r
164 <B>Method Detail</B></FONT></TD>
\r
168 <A NAME="getName()"><!-- --></A><H3>
\r
171 public java.lang.String <B>getName</B>()</PRE>
\r
173 <DD>Returns the name of this Unit.
\r
177 <DT><B>Returns:</B><DD>the name of this Unit</DL>
\r
182 <A NAME="getSize()"><!-- --></A><H3>
\r
185 public int <B>getSize</B>()</PRE>
\r
187 <DD>Returns the size of this unit.
\r
191 <DT><B>Returns:</B><DD>the size of this unit</DL>
\r
196 <A NAME="getNearestSample(float)"><!-- --></A><H3>
\r
197 getNearestSample</H3>
\r
199 public <A HREF="../../../../com/sun/speech/freetts/relp/Sample.html" title="class in com.sun.speech.freetts.relp">Sample</A> <B>getNearestSample</B>(float index)</PRE>
\r
201 <DD>Retrieves the nearest sample.
\r
204 <DT><B>Parameters:</B><DD><CODE>index</CODE> - the ideal index
205 <DT><B>Returns:</B><DD>the nearest Sample</DL>
\r
210 <A NAME="dump()"><!-- --></A><H3>
\r
213 public void <B>dump</B>()</PRE>
\r
215 <DD>Dumps this unit.
\r
221 <!-- ========= END OF CLASS DATA ========= -->
\r
225 <!-- ======= START OF BOTTOM NAVBAR ====== -->
\r
226 <A NAME="navbar_bottom"><!-- --></A>
227 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
228 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
230 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
231 <A NAME="navbar_bottom_firstrow"><!-- --></A>
232 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
233 <TR ALIGN="center" VALIGN="top">
\r
234 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
235 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
236 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
237 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
238 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
239 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
240 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
244 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
250 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
251 <A HREF="../../../../com/sun/speech/freetts/Tokenizer.html" title="interface in com.sun.speech.freetts"><B>PREV CLASS</B></A>
\r
252 <A HREF="../../../../com/sun/speech/freetts/UtteranceProcessor.html" title="interface in com.sun.speech.freetts"><B>NEXT CLASS</B></A></FONT></TD>
\r
253 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
254 <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
\r
255 <A HREF="Unit.html" target="_top"><B>NO FRAMES</B></A>
\r
256 <SCRIPT type="text/javascript">
\r
259 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
264 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
270 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
271 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
272 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
273 DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
276 <A NAME="skip-navbar_bottom"></A>
277 <!-- ======== END OF BOTTOM NAVBAR ======= -->
\r