|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.speech.freetts.relp.SampleSet
Represents the frame and residual data used by the diphone database used Residual Excited Linear Predictive synthesizer
Constructor Summary | |
SampleSet(java.nio.ByteBuffer bb)
Creates a SampleSet by reading it from the given byte buffer |
|
SampleSet(java.io.DataInputStream is)
Creates a SampleSet by reading it from the given input stream |
|
SampleSet(java.util.StringTokenizer tok,
java.io.BufferedReader reader)
Reads a SampleSet from the input reader. |
Method Summary | |
void |
dumpBinary(java.io.DataOutputStream os)
Dumps this sample set to the given stream |
int |
getFrameSize(int frame)
Gets the size of the given frame |
Sample |
getSample(int index)
return the sample associated with the index |
SampleInfo |
getSampleInfo()
Retrieves the info on this SampleSet |
int |
getUnitSize(int start,
int end)
Returns the size of the unit represented by the given start and end points |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SampleSet(java.util.StringTokenizer tok, java.io.BufferedReader reader)
tok
- tokenizer that holds parameters for this SampleSetreader
- the input reader to read the data frompublic SampleSet(java.nio.ByteBuffer bb) throws java.io.IOException
bb
- source of the Unit data
java.io.IOException
- if an IO error occurspublic SampleSet(java.io.DataInputStream is) throws java.io.IOException
is
- source of the Unit data
java.io.IOException
- if an IO error occursMethod Detail |
public void dumpBinary(java.io.DataOutputStream os) throws java.io.IOException
os
- the output stream
java.io.IOException
- if an error occurs.public Sample getSample(int index)
index
- the index of the sample
public SampleInfo getSampleInfo()
public int getUnitSize(int start, int end)
start
- the start of the unitend
- the end of the unit
public int getFrameSize(int frame)
frame
- the frame of interest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |