|
|||||||||
| 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
public class 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 needs to be reconfigured. |
| 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 |
|---|
@S4Integer(defaultValue=-1) public static final java.lang.String PROP_DROP_EVERY_NTH_FRAME
public static final int PROP_DROP_EVERY_NTH_FRAME_DEFAULT
@S4Boolean(defaultValue=false) 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 newProperties(PropertySheet ps)
throws PropertyException
Configurable
newProperties in interface ConfigurablenewProperties in class BaseDataProcessorps - a property sheet holding the new data
PropertyException - if there is a problem with the properties.public void initialize()
initialize in interface DataProcessorinitialize in class BaseDataProcessor
public Data getData()
throws DataProcessingException
getData in interface DataProcessorgetData in class BaseDataProcessorDataProcessingException - if a data processing error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||