|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.frontend.BaseDataProcessor
edu.cmu.sphinx.frontend.util.StreamCepstrumSource
Produces Mel-cepstrum data from an InputStream.
To set the inputstream with cepstral data, use the
setInputStream
method,
and then call getData()
to obtain the Data objects that
have cepstra data in it.
Field Summary | |
static java.lang.String |
PROP_BINARY
The SphinxProperty specifying whether the input is in binary. |
static boolean |
PROP_BINARY_DEFAULT
The default value for PROP_BINARY. |
static java.lang.String |
PROP_CEPSTRUM_LENGTH
The sphinx property specifying the length of the cepstrum data. |
static int |
PROP_CEPSTRUM_LENGTH_DEFAULT
The default value of PROP_CEPSTRUM_LENGTH. |
static java.lang.String |
PROP_FRAME_SHIFT_MS
The sphinx property name for frame shift in milliseconds, which has a default value of 10F. |
static float |
PROP_FRAME_SHIFT_MS_DEFAULT
The default value for PROP_FRAME_SHIFT_MS. |
static java.lang.String |
PROP_FRAME_SIZE_MS
The sphinx property name for frame size in milliseconds. |
static float |
PROP_FRAME_SIZE_MS_DEFAULT
The default value for PROP_FRAME_SIZE_MS. |
static java.lang.String |
PROP_SAMPLE_RATE
The sphinx property that defines the sample rate |
static int |
PROP_SAMPLE_RATE_DEFAULT
The default value for PROP_SAMPLE_RATE |
Constructor Summary | |
StreamCepstrumSource()
|
Method Summary | |
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 has new data. |
void |
register(java.lang.String name,
Registry registry)
Register my properties. |
void |
setInputStream(java.io.InputStream is,
boolean bigEndian)
Sets the InputStream to read cepstral data from. |
Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor |
getName, getPredecessor, getTimer, setPredecessor, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String PROP_BINARY
public static final boolean PROP_BINARY_DEFAULT
public static final java.lang.String PROP_FRAME_SIZE_MS
public static final float PROP_FRAME_SIZE_MS_DEFAULT
public static final java.lang.String PROP_FRAME_SHIFT_MS
public static final float PROP_FRAME_SHIFT_MS_DEFAULT
public static final java.lang.String PROP_CEPSTRUM_LENGTH
public static final int PROP_CEPSTRUM_LENGTH_DEFAULT
public static final java.lang.String PROP_SAMPLE_RATE
public static final int PROP_SAMPLE_RATE_DEFAULT
Constructor Detail |
public StreamCepstrumSource()
Method Detail |
public void register(java.lang.String name, Registry registry) throws PropertyException
Configurable
register
in interface Configurable
register
in class BaseDataProcessor
PropertyException
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class BaseDataProcessor
PropertyException
public void initialize()
initialize
in interface DataProcessor
initialize
in class BaseDataProcessor
public void setInputStream(java.io.InputStream is, boolean bigEndian) throws java.io.IOException
is
- the InputStream to read cepstral data frombigEndian
- true if the InputStream data is in big-endian,
false otherwise
java.io.IOException
- if an I/O error occurspublic Data getData() throws DataProcessingException
getData
in interface DataProcessor
getData
in class BaseDataProcessor
DataProcessingException
- if a data processing error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |