|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.speech.freetts.relp.SampleInfo
Describes global sample parameters. A sample info is generally added to an utterance to describe the type of unit data that has been generated.
Field Summary | |
static java.lang.String |
UTT_NAME
|
Constructor Summary | |
SampleInfo(java.nio.ByteBuffer bb)
Constructs a sample info from the given byte buffer. |
|
SampleInfo(java.io.DataInputStream is)
Constructs a sample info from the given input stream |
|
SampleInfo(int sampleRate,
int numberOfChannels,
int residualFold,
float coeffMin,
float coeffRange,
float postEmphasis)
Creates a new sample info. |
Method Summary | |
void |
dumpBinary(java.io.DataOutputStream os)
Dump a binary form of the sample rate to the given output stream |
float |
getCoeffMin()
Returns the minimum for linear predictive coding. |
float |
getCoeffRange()
Returns the range for linear predictive coding. |
int |
getNumberOfChannels()
Returns the number of channels. |
float |
getPostEmphasis()
Returns the post emphasis |
int |
getResidualFold()
Returns the residual fold. |
int |
getSampleRate()
Returns the sample rate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String UTT_NAME
Constructor Detail |
public SampleInfo(int sampleRate, int numberOfChannels, int residualFold, float coeffMin, float coeffRange, float postEmphasis)
sampleRate
- the sample ratenumberOfChannels
- the number of channelsresidualFold
- the residual foldcoeffMin
- the minimum coefficientcoeffRange
- the range of coefficientspublic SampleInfo(java.nio.ByteBuffer bb) throws java.io.IOException
bb
- the byte buffer
java.io.IOException
- if an input error occurspublic SampleInfo(java.io.DataInputStream is) throws java.io.IOException
is
- the input stream
java.io.IOException
- if an input error occursMethod Detail |
public final int getSampleRate()
public final int getNumberOfChannels()
public final int getResidualFold()
public final float getCoeffMin()
public final float getCoeffRange()
public final float getPostEmphasis()
public void dumpBinary(java.io.DataOutputStream os) throws java.io.IOException
os
- the output stream
java.io.IOException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |