public class SampleInfo extends Object
Modifier and Type | Field and Description |
---|---|
private float |
coeffMin |
private float |
coeffRange |
private int |
numberOfChannels |
private float |
postEmphasis |
private int |
residualFold |
private int |
sampleRate |
static String |
UTT_NAME |
Constructor and Description |
---|
SampleInfo(ByteBuffer bb)
Constructs a sample info from the given byte buffer.
|
SampleInfo(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.
|
Modifier and Type | Method and Description |
---|---|
void |
dumpBinary(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 String UTT_NAME
private final int sampleRate
private final int numberOfChannels
private final int residualFold
private final float coeffMin
private final float coeffRange
private final float postEmphasis
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(ByteBuffer bb) throws IOException
bb
- the byte bufferIOException
- if an input error occurspublic SampleInfo(DataInputStream is) throws IOException
is
- the input streamIOException
- 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(DataOutputStream os) throws IOException
os
- the output streamIOException
- if an error occursWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses