|
||||||||||
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.feature.FrameDropper
Drops certain feature frames, usually to speed up decoding. For example, if you 'dropEveryNthFrame' is set to 2, it will drop every other feature frame. If you set 'replaceNthWithPrevious' to 3, then you replace with 3rd frame with the 2nd frame, the 6th frame with the 5th frame, etc..
Field Summary | |
static java.lang.String |
PROP_DROP_EVERY_NTH_FRAME
The SphinxProperty that specifies dropping one in every Nth frame. |
static int |
PROP_DROP_EVERY_NTH_FRAME_DEFAULT
The default value of PROP_DROP_EVERY_NTH_FRAME. |
static java.lang.String |
PROP_REPLACE_NTH_WITH_PREVIOUS
The SphinxProperty that specifies whether to replace the Nth frame with the previous frame. |
static boolean |
PROP_REPLACE_NTH_WITH_PREVIOUS_DEFAULT
The default value of PROP_REPLACE_NTH_WITH_PREVIOUS. |
Constructor Summary | |
FrameDropper()
|
Method Summary | |
Data |
getData()
Returns the next Data object from this FrameDropper. |
void |
initialize()
Initializes this FrameDropper. |
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. |
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_DROP_EVERY_NTH_FRAME
public static final int PROP_DROP_EVERY_NTH_FRAME_DEFAULT
public static final java.lang.String PROP_REPLACE_NTH_WITH_PREVIOUS
public static final boolean PROP_REPLACE_NTH_WITH_PREVIOUS_DEFAULT
Constructor Detail |
public FrameDropper()
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 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 |