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 LPCResult (FreeTTS 1.2)
\r
10 <META NAME="keywords" CONTENT="com.sun.speech.freetts.relp.LPCResult 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="LPCResult (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/relp/AudioOutput.html" title="class in com.sun.speech.freetts.relp"><B>PREV CLASS</B></A>
\r
53 <A HREF="../../../../../com/sun/speech/freetts/relp/Sample.html" title="class in com.sun.speech.freetts.relp"><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="LPCResult.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 | <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.relp</FONT>
\r
86 Class LPCResult</H2>
\r
89 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>com.sun.speech.freetts.relp.LPCResult</B>
\r
93 <DT>public class <B>LPCResult</B><DT>extends java.lang.Object</DL>
\r
96 Contains the result of linear predictive coding processing.
\r
103 <!-- ======== NESTED CLASS SUMMARY ======== -->
\r
106 <!-- =========== FIELD SUMMARY =========== -->
\r
109 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
\r
111 <A NAME="constructor_summary"><!-- --></A>
112 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
113 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
114 <TD COLSPAN=2><FONT SIZE="+2">
\r
115 <B>Constructor Summary</B></FONT></TD>
\r
117 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
118 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#LPCResult()">LPCResult</A></B>()</CODE>
\r
121 </TD>
\r
125 <!-- ========== METHOD SUMMARY =========== -->
\r
127 <A NAME="method_summary"><!-- --></A>
128 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
129 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
130 <TD COLSPAN=2><FONT SIZE="+2">
\r
131 <B>Method Summary</B></FONT></TD>
\r
133 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
134 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
135 <CODE> void</CODE></FONT></TD>
\r
136 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#copyResiduals(byte[], int, int)">copyResiduals</A></B>(byte[] source,
137 int targetPosition,
138 int targetSize)</CODE>
\r
141 Copies the information in the given unit to the array of residuals,
142 starting at the given index, up until targetSize chars.</TD>
\r
144 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
145 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
146 <CODE> void</CODE></FONT></TD>
\r
147 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#copyResidualsPulse(byte[], int, int)">copyResidualsPulse</A></B>(byte[] source,
148 int targetPosition,
149 int targetSize)</CODE>
\r
152 Copies the residual puse in the given unit to the array of residuals,
153 starting at the given index, up until targetSize chars.</TD>
\r
155 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
156 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
157 <CODE> void</CODE></FONT></TD>
\r
158 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#dump()">dump</A></B>()</CODE>
\r
161 Dumps this LPCResult to standard out</TD>
\r
163 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
164 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
165 <CODE> void</CODE></FONT></TD>
\r
166 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#dump(java.io.Writer)">dump</A></B>(java.io.Writer writer)</CODE>
\r
169 Dumps this LPCResult to the given stream.</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/relp/LPCResult.html#dumpASCII()">dumpASCII</A></B>()</CODE>
\r
177 Dumps the wave data associated with this result</TD>
\r
179 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
180 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
181 <CODE> void</CODE></FONT></TD>
\r
182 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#dumpASCII(java.lang.String)">dumpASCII</A></B>(java.lang.String path)</CODE>
\r
185 Dumps the wave data associated with this result</TD>
\r
187 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
188 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
189 <CODE> void</CODE></FONT></TD>
\r
190 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#dumpASCII(java.io.Writer)">dumpASCII</A></B>(java.io.Writer writer)</CODE>
\r
193 Dumps the wave out to the given stream</TD>
\r
195 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
196 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
197 <CODE> short[]</CODE></FONT></TD>
\r
198 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getFrame(int)">getFrame</A></B>(int index)</CODE>
\r
201 Returns the frame at the given index.</TD>
\r
203 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
204 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
205 <CODE> int</CODE></FONT></TD>
\r
206 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getFrameShift(int)">getFrameShift</A></B>(int frameIndex)</CODE>
\r
209 Returns the time difference of the frame at the given position
210 with the frame prior to that. </TD>
\r
212 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
213 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
214 <CODE> int</CODE></FONT></TD>
\r
215 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getFrameSize()">getFrameSize</A></B>()</CODE>
\r
218 Returns the sizes of frames in this LPC.</TD>
\r
220 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
221 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
222 <CODE> float</CODE></FONT></TD>
\r
223 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getLPCMin()">getLPCMin</A></B>()</CODE>
\r
226 Returns the LPC minimum.</TD>
\r
228 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
229 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
230 <CODE> float</CODE></FONT></TD>
\r
231 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getLPCRange()">getLPCRange</A></B>()</CODE>
\r
234 Returns the LPC range.</TD>
\r
236 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
237 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
238 <CODE> int</CODE></FONT></TD>
\r
239 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getNumberOfChannels()">getNumberOfChannels</A></B>()</CODE>
\r
242 Returns the number of channels in this LPCResult.</TD>
\r
244 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
245 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
246 <CODE> int</CODE></FONT></TD>
\r
247 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getNumberOfFrames()">getNumberOfFrames</A></B>()</CODE>
\r
250 Returns the number of frames in this LPCResult.</TD>
\r
252 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
253 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
254 <CODE> int</CODE></FONT></TD>
\r
255 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getNumberOfSamples()">getNumberOfSamples</A></B>()</CODE>
\r
258 Returns the number of samples in this LPC result</TD>
\r
260 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
261 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
262 <CODE> byte[]</CODE></FONT></TD>
\r
263 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getResiduals()">getResiduals</A></B>()</CODE>
\r
266 Returns the array of residuals.</TD>
\r
268 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
269 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
270 <CODE> int[]</CODE></FONT></TD>
\r
271 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getResidualSizes()">getResidualSizes</A></B>()</CODE>
\r
274 Returns the array of residuals sizes.</TD>
\r
276 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
277 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
278 <CODE> int</CODE></FONT></TD>
\r
279 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getSampleRate()">getSampleRate</A></B>()</CODE>
\r
282 Returns the sample rate.</TD>
\r
284 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
285 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
286 <CODE> int[]</CODE></FONT></TD>
\r
287 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getTimes()">getTimes</A></B>()</CODE>
\r
290 Returns the array of times.</TD>
\r
292 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
293 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
294 <CODE> byte[]</CODE></FONT></TD>
\r
295 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#getWaveSamples()">getWaveSamples</A></B>()</CODE>
\r
298 </TD>
\r
300 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
301 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
302 <CODE> boolean</CODE></FONT></TD>
\r
303 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#playWave(com.sun.speech.freetts.audio.AudioPlayer, com.sun.speech.freetts.Utterance)">playWave</A></B>(<A HREF="../../../../../com/sun/speech/freetts/audio/AudioPlayer.html" title="interface in com.sun.speech.freetts.audio">AudioPlayer</A> player,
304 <A HREF="../../../../../com/sun/speech/freetts/Utterance.html" title="class in com.sun.speech.freetts">Utterance</A> utterance)</CODE>
\r
307 Synthesize a Wave from this LPCResult</TD>
\r
309 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
310 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
311 <CODE> void</CODE></FONT></TD>
\r
312 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#resizeFrames(int)">resizeFrames</A></B>(int numberOfFrames)</CODE>
\r
315 Resets the number of frames in this LPCResult.</TD>
\r
317 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
318 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
319 <CODE> void</CODE></FONT></TD>
\r
320 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#resizeResiduals(int)">resizeResiduals</A></B>(int numberOfSamples)</CODE>
\r
323 Resets the number of residuals, and initialize all of them to 255
324 (which is 0 for mulaw).</TD>
\r
326 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
327 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
328 <CODE> void</CODE></FONT></TD>
\r
329 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#setFrame(int, short[])">setFrame</A></B>(int index,
330 short[] newFrames)</CODE>
\r
333 Sets the frame at the given index.</TD>
\r
335 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
336 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
337 <CODE> void</CODE></FONT></TD>
\r
338 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#setFrameSize(int)">setFrameSize</A></B>(int frameSize)</CODE>
\r
341 Sets the sizes of frames in this LPC to the given size.</TD>
\r
343 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
344 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
345 <CODE> void</CODE></FONT></TD>
\r
346 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#setLPCMin(float)">setLPCMin</A></B>(float min)</CODE>
\r
349 Sets the LPC minimum.</TD>
\r
351 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
352 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
353 <CODE> void</CODE></FONT></TD>
\r
354 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#setLPCRange(float)">setLPCRange</A></B>(float range)</CODE>
\r
357 Sets the LPC range.</TD>
\r
359 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
360 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
361 <CODE> void</CODE></FONT></TD>
\r
362 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#setNumberOfChannels(int)">setNumberOfChannels</A></B>(int numberOfChannels)</CODE>
\r
365 Sets the number of channels.</TD>
\r
367 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
368 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
369 <CODE> void</CODE></FONT></TD>
\r
370 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#setNumberOfFrames(int)">setNumberOfFrames</A></B>(int numberFrames)</CODE>
\r
373 Sets the number of frames in this LPC Result.</TD>
\r
375 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
376 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
377 <CODE> void</CODE></FONT></TD>
\r
378 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#setResidualSizes(int[])">setResidualSizes</A></B>(int[] sizes)</CODE>
\r
381 Sets the array of residual sizes.</TD>
\r
383 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
384 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
385 <CODE> void</CODE></FONT></TD>
\r
386 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#setSampleRate(int)">setSampleRate</A></B>(int rate)</CODE>
\r
389 Sets the sample rate.</TD>
\r
391 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
392 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
393 <CODE> void</CODE></FONT></TD>
\r
394 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#setTimes(int[])">setTimes</A></B>(int[] times)</CODE>
\r
397 Sets the array of times.</TD>
\r
399 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
400 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
401 <CODE> void</CODE></FONT></TD>
\r
402 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/relp/LPCResult.html#setValues(int, int, int, float, float)">setValues</A></B>(int numberOfChannels,
404 int residualFold,
406 float lpcRange)</CODE>
\r
409 A convenience method for setting the LPC values.</TD>
\r
412 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
413 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
414 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
\r
415 <TD><B>Methods inherited from class java.lang.Object</B></TD>
\r
417 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
418 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
\r
424 <!-- ============ FIELD DETAIL =========== -->
\r
427 <!-- ========= CONSTRUCTOR DETAIL ======== -->
\r
429 <A NAME="constructor_detail"><!-- --></A>
430 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
431 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
432 <TD COLSPAN=1><FONT SIZE="+2">
\r
433 <B>Constructor Detail</B></FONT></TD>
\r
437 <A NAME="LPCResult()"><!-- --></A><H3>
\r
440 public <B>LPCResult</B>()</PRE>
\r
444 <!-- ============ METHOD DETAIL ========== -->
\r
446 <A NAME="method_detail"><!-- --></A>
447 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
448 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
449 <TD COLSPAN=1><FONT SIZE="+2">
\r
450 <B>Method Detail</B></FONT></TD>
\r
454 <A NAME="resizeFrames(int)"><!-- --></A><H3>
\r
457 public void <B>resizeFrames</B>(int numberOfFrames)</PRE>
\r
459 <DD>Resets the number of frames in this LPCResult.
\r
462 <DT><B>Parameters:</B><DD><CODE>numberOfFrames</CODE> - the number of frames in this LPC result</DL>
\r
467 <A NAME="resizeResiduals(int)"><!-- --></A><H3>
\r
468 resizeResiduals</H3>
\r
470 public void <B>resizeResiduals</B>(int numberOfSamples)</PRE>
\r
472 <DD>Resets the number of residuals, and initialize all of them to 255
473 (which is 0 for mulaw).
\r
476 <DT><B>Parameters:</B><DD><CODE>numberOfSamples</CODE> - the number of samples in this LPC result</DL>
\r
481 <A NAME="setValues(int, int, int, float, float)"><!-- --></A><H3>
\r
484 public void <B>setValues</B>(int numberOfChannels,
486 int residualFold,
488 float lpcRange)</PRE>
\r
490 <DD>A convenience method for setting the LPC values.
\r
493 <DT><B>Parameters:</B><DD><CODE>numberOfChannels</CODE> - the number of channels<DD><CODE>sampleRate</CODE> - the sample rate<DD><CODE>lpcMin</CODE> - the LPC minimum<DD><CODE>lpcRange</CODE> - the LPC range</DL>
\r
498 <A NAME="getFrameShift(int)"><!-- --></A><H3>
\r
501 public int <B>getFrameShift</B>(int frameIndex)</PRE>
\r
503 <DD>Returns the time difference of the frame at the given position
504 with the frame prior to that. If the frame at the given position is
505 the first frame (position 0), the time of that frame is returned.
\r
508 <DT><B>Parameters:</B><DD><CODE>frameIndex</CODE> - the position of the frame
509 <DT><B>Returns:</B><DD>the time difference of the frame at the given position
510 with the frame prior to that</DL>
\r
515 <A NAME="getFrameSize()"><!-- --></A><H3>
\r
518 public int <B>getFrameSize</B>()</PRE>
\r
520 <DD>Returns the sizes of frames in this LPC.
\r
524 <DT><B>Returns:</B><DD>the sizes of frames</DL>
\r
529 <A NAME="getFrame(int)"><!-- --></A><H3>
\r
532 public short[] <B>getFrame</B>(int index)</PRE>
\r
534 <DD>Returns the frame at the given index.
\r
537 <DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of interest
538 <DT><B>Returns:</B><DD>the frame at the given index</DL>
\r
543 <A NAME="getTimes()"><!-- --></A><H3>
\r
546 public int[] <B>getTimes</B>()</PRE>
\r
548 <DD>Returns the array of times.
\r
552 <DT><B>Returns:</B><DD>the array of times</DL>
\r
557 <A NAME="getNumberOfFrames()"><!-- --></A><H3>
\r
558 getNumberOfFrames</H3>
\r
560 public int <B>getNumberOfFrames</B>()</PRE>
\r
562 <DD>Returns the number of frames in this LPCResult.
\r
566 <DT><B>Returns:</B><DD>the number of frames</DL>
\r
571 <A NAME="getNumberOfChannels()"><!-- --></A><H3>
\r
572 getNumberOfChannels</H3>
\r
574 public int <B>getNumberOfChannels</B>()</PRE>
\r
576 <DD>Returns the number of channels in this LPCResult.
\r
580 <DT><B>Returns:</B><DD>the number of channels</DL>
\r
585 <A NAME="getLPCMin()"><!-- --></A><H3>
\r
588 public float <B>getLPCMin</B>()</PRE>
\r
590 <DD>Returns the LPC minimum.
\r
594 <DT><B>Returns:</B><DD>the LPC minimum</DL>
\r
599 <A NAME="getLPCRange()"><!-- --></A><H3>
\r
602 public float <B>getLPCRange</B>()</PRE>
\r
604 <DD>Returns the LPC range.
\r
608 <DT><B>Returns:</B><DD>the LPC range</DL>
\r
613 <A NAME="getNumberOfSamples()"><!-- --></A><H3>
\r
614 getNumberOfSamples</H3>
\r
616 public int <B>getNumberOfSamples</B>()</PRE>
\r
618 <DD>Returns the number of samples in this LPC result
\r
622 <DT><B>Returns:</B><DD>the number of samples</DL>
\r
627 <A NAME="getSampleRate()"><!-- --></A><H3>
\r
630 public int <B>getSampleRate</B>()</PRE>
\r
632 <DD>Returns the sample rate.
\r
636 <DT><B>Returns:</B><DD>the sample rate</DL>
\r
641 <A NAME="getResidualSizes()"><!-- --></A><H3>
\r
642 getResidualSizes</H3>
\r
644 public int[] <B>getResidualSizes</B>()</PRE>
\r
646 <DD>Returns the array of residuals sizes.
\r
650 <DT><B>Returns:</B><DD>the array of residuals sizes</DL>
\r
655 <A NAME="getResiduals()"><!-- --></A><H3>
\r
658 public byte[] <B>getResiduals</B>()</PRE>
\r
660 <DD>Returns the array of residuals.
\r
664 <DT><B>Returns:</B><DD>the array of residuals</DL>
\r
669 <A NAME="setFrameSize(int)"><!-- --></A><H3>
\r
672 public void <B>setFrameSize</B>(int frameSize)</PRE>
\r
674 <DD>Sets the sizes of frames in this LPC to the given size.
\r
677 <DT><B>Parameters:</B><DD><CODE>frameSize</CODE> - the new frame size</DL>
\r
682 <A NAME="setNumberOfFrames(int)"><!-- --></A><H3>
\r
683 setNumberOfFrames</H3>
\r
685 public void <B>setNumberOfFrames</B>(int numberFrames)</PRE>
\r
687 <DD>Sets the number of frames in this LPC Result.
\r
690 <DT><B>Parameters:</B><DD><CODE>numberFrames</CODE> - the number of frames in this result</DL>
\r
695 <A NAME="setFrame(int, short[])"><!-- --></A><H3>
\r
698 public void <B>setFrame</B>(int index,
699 short[] newFrames)</PRE>
\r
701 <DD>Sets the frame at the given index.
\r
704 <DT><B>Parameters:</B><DD><CODE>index</CODE> - the position of the frame to set<DD><CODE>newFrames</CODE> - new frame data</DL>
\r
709 <A NAME="setTimes(int[])"><!-- --></A><H3>
\r
712 public void <B>setTimes</B>(int[] times)</PRE>
\r
714 <DD>Sets the array of times.
\r
717 <DT><B>Parameters:</B><DD><CODE>times</CODE> - the times data</DL>
\r
722 <A NAME="setNumberOfChannels(int)"><!-- --></A><H3>
\r
723 setNumberOfChannels</H3>
\r
725 public void <B>setNumberOfChannels</B>(int numberOfChannels)</PRE>
\r
727 <DD>Sets the number of channels.
\r
730 <DT><B>Parameters:</B><DD><CODE>numberOfChannels</CODE> - the number of channels</DL>
\r
735 <A NAME="setLPCMin(float)"><!-- --></A><H3>
\r
738 public void <B>setLPCMin</B>(float min)</PRE>
\r
740 <DD>Sets the LPC minimum.
\r
743 <DT><B>Parameters:</B><DD><CODE>min</CODE> - the LPC minimum</DL>
\r
748 <A NAME="setLPCRange(float)"><!-- --></A><H3>
\r
751 public void <B>setLPCRange</B>(float range)</PRE>
\r
753 <DD>Sets the LPC range.
\r
756 <DT><B>Parameters:</B><DD><CODE>range</CODE> - the LPC range</DL>
\r
761 <A NAME="setSampleRate(int)"><!-- --></A><H3>
\r
764 public void <B>setSampleRate</B>(int rate)</PRE>
\r
766 <DD>Sets the sample rate.
\r
769 <DT><B>Parameters:</B><DD><CODE>rate</CODE> - the sample rate</DL>
\r
774 <A NAME="setResidualSizes(int[])"><!-- --></A><H3>
\r
775 setResidualSizes</H3>
\r
777 public void <B>setResidualSizes</B>(int[] sizes)</PRE>
\r
779 <DD>Sets the array of residual sizes.
\r
782 <DT><B>Parameters:</B><DD><CODE>sizes</CODE> - the new residual sizes</DL>
\r
787 <A NAME="copyResiduals(byte[], int, int)"><!-- --></A><H3>
\r
790 public void <B>copyResiduals</B>(byte[] source,
791 int targetPosition,
792 int targetSize)</PRE>
\r
794 <DD>Copies the information in the given unit to the array of residuals,
795 starting at the given index, up until targetSize chars.
\r
798 <DT><B>Parameters:</B><DD><CODE>source</CODE> - the unit that holds the information source<DD><CODE>targetPosition</CODE> - start position in the array of residuals<DD><CODE>targetSize</CODE> - the maximum number of characters to copy</DL>
\r
803 <A NAME="copyResidualsPulse(byte[], int, int)"><!-- --></A><H3>
\r
804 copyResidualsPulse</H3>
\r
806 public void <B>copyResidualsPulse</B>(byte[] source,
807 int targetPosition,
808 int targetSize)</PRE>
\r
810 <DD>Copies the residual puse in the given unit to the array of residuals,
811 starting at the given index, up until targetSize chars.
\r
814 <DT><B>Parameters:</B><DD><CODE>source</CODE> - the unit that holds the information source<DD><CODE>targetPosition</CODE> - start position in the array of residuals<DD><CODE>targetSize</CODE> - the maximum number of characters to copy</DL>
\r
819 <A NAME="playWave(com.sun.speech.freetts.audio.AudioPlayer, com.sun.speech.freetts.Utterance)"><!-- --></A><H3>
\r
822 public boolean <B>playWave</B>(<A HREF="../../../../../com/sun/speech/freetts/audio/AudioPlayer.html" title="interface in com.sun.speech.freetts.audio">AudioPlayer</A> player,
823 <A HREF="../../../../../com/sun/speech/freetts/Utterance.html" title="class in com.sun.speech.freetts">Utterance</A> utterance)</PRE>
\r
825 <DD>Synthesize a Wave from this LPCResult
\r
829 <DT><B>Returns:</B><DD>the wave</DL>
\r
834 <A NAME="getWaveSamples()"><!-- --></A><H3>
\r
835 getWaveSamples</H3>
\r
837 public byte[] <B>getWaveSamples</B>()</PRE>
\r
845 <A NAME="dump()"><!-- --></A><H3>
\r
848 public void <B>dump</B>()</PRE>
\r
850 <DD>Dumps this LPCResult to standard out
\r
858 <A NAME="dump(java.io.Writer)"><!-- --></A><H3>
\r
861 public void <B>dump</B>(java.io.Writer writer)</PRE>
\r
863 <DD>Dumps this LPCResult to the given stream.
\r
866 <DT><B>Parameters:</B><DD><CODE>writer</CODE> - the output stream</DL>
\r
871 <A NAME="dumpASCII()"><!-- --></A><H3>
\r
874 public void <B>dumpASCII</B>()</PRE>
\r
876 <DD>Dumps the wave data associated with this result
\r
884 <A NAME="dumpASCII(java.lang.String)"><!-- --></A><H3>
\r
887 public void <B>dumpASCII</B>(java.lang.String path)
888 throws java.io.IOException</PRE>
\r
890 <DD>Dumps the wave data associated with this result
\r
893 <DT><B>Parameters:</B><DD><CODE>path</CODE> - the path where the wave data is appended to
895 <DD><CODE>java.io.IOException</CODE> - if an IO error occurs</DL>
\r
900 <A NAME="dumpASCII(java.io.Writer)"><!-- --></A><H3>
\r
903 public void <B>dumpASCII</B>(java.io.Writer writer)</PRE>
\r
905 <DD>Dumps the wave out to the given stream
\r
908 <DT><B>Parameters:</B><DD><CODE>writer</CODE> - the output stream</DL>
\r
911 <!-- ========= END OF CLASS DATA ========= -->
\r
915 <!-- ======= START OF BOTTOM NAVBAR ====== -->
\r
916 <A NAME="navbar_bottom"><!-- --></A>
917 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
918 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
920 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
921 <A NAME="navbar_bottom_firstrow"><!-- --></A>
922 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
923 <TR ALIGN="center" VALIGN="top">
\r
924 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
925 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
926 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
927 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
928 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
929 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
930 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
934 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
940 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
941 <A HREF="../../../../../com/sun/speech/freetts/relp/AudioOutput.html" title="class in com.sun.speech.freetts.relp"><B>PREV CLASS</B></A>
\r
942 <A HREF="../../../../../com/sun/speech/freetts/relp/Sample.html" title="class in com.sun.speech.freetts.relp"><B>NEXT CLASS</B></A></FONT></TD>
\r
943 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
944 <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
\r
945 <A HREF="LPCResult.html" target="_top"><B>NO FRAMES</B></A>
\r
946 <SCRIPT type="text/javascript">
\r
949 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
954 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
960 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
961 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
962 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
963 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
966 <A NAME="skip-navbar_bottom"></A>
967 <!-- ======== END OF BOTTOM NAVBAR ======= -->
\r