public class SampleInfo
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
UTT_NAME |
Constructor | Description |
---|---|
SampleInfo(int sampleRate,
int numberOfChannels,
int residualFold,
float coeffMin,
float coeffRange,
float postEmphasis) |
Creates a new sample info.
|
SampleInfo(java.io.DataInputStream is) |
Constructs a sample info from the given input stream
|
SampleInfo(java.nio.ByteBuffer bb) |
Constructs a sample info from the given byte buffer.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
public static final java.lang.String UTT_NAME
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 bufferjava.io.IOException
- if an input error occurspublic SampleInfo(java.io.DataInputStream is) throws java.io.IOException
is
- the input streamjava.io.IOException
- if an input error occurspublic 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 streamjava.io.IOException
- if an error occurs