public class StreamHTKCepstrum extends BaseDataProcessor
setInputStream method, and then call getData() to obtain the Data
objects that have cepstrum data in it.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_BIGENDIAN
The property specifying whether the input is big endian.
|
static java.lang.String |
PROP_BINARY
The property specifying whether the input is in binary.
|
static java.lang.String |
PROP_CEPSTRUM_LENGTH
The property specifying the length of the cepstrum data.
|
static java.lang.String |
PROP_FRAME_SHIFT_MS
The property name for frame shift in milliseconds, which has a default value of 10F.
|
static java.lang.String |
PROP_FRAME_SIZE_MS
The property name for frame size in milliseconds.
|
static java.lang.String |
PROP_SAMPLE_RATE
The property that defines the sample rate
|
logger| Constructor and Description |
|---|
StreamHTKCepstrum() |
StreamHTKCepstrum(float frameShiftMs,
float frameSizeMs,
boolean bigEndian,
int sampleRate) |
| Modifier and Type | Method and Description |
|---|---|
Data |
getData()
Returns the next Data object, which is the mel cepstrum of the input frame.
|
void |
initialize()
Constructs a StreamCepstrumSource that reads MelCepstrum data from the given path.
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
static short |
readLittleEndianShort(java.io.DataInputStream dataStream) |
void |
setInputStream(java.io.InputStream stream)
Sets the InputStream to read cepstral data from.
|
getPredecessor, setPredecessorgetName, initLogger, toString@S4Boolean(defaultValue=true) public static final java.lang.String PROP_BINARY
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_BIGENDIAN
@S4Double(defaultValue=25.625) public static final java.lang.String PROP_FRAME_SIZE_MS
@S4Double(defaultValue=10.0) public static final java.lang.String PROP_FRAME_SHIFT_MS
@S4Integer(defaultValue=13) public static final java.lang.String PROP_CEPSTRUM_LENGTH
@S4Integer(defaultValue=16000) public static final java.lang.String PROP_SAMPLE_RATE
public StreamHTKCepstrum(float frameShiftMs,
float frameSizeMs,
boolean bigEndian,
int sampleRate)
public StreamHTKCepstrum()
public void newProperties(PropertySheet ps) throws PropertyException
ConfigurablenewProperties in interface ConfigurablenewProperties in class ConfigurableAdapterps - a property sheet holding the new dataPropertyException - if there is a problem with the properties.public void initialize()
initialize in interface DataProcessorinitialize in class BaseDataProcessorpublic void setInputStream(java.io.InputStream stream)
throws java.io.IOException
stream - the InputStream to read cepstral data fromjava.io.IOException - if an I/O error occurspublic static short readLittleEndianShort(java.io.DataInputStream dataStream)
throws java.io.IOException
java.io.IOExceptionpublic Data getData() throws DataProcessingException
getData in interface DataProcessorgetData in class BaseDataProcessorDataProcessingException - if a data processing error occurs