|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.util.props.ConfigurableAdapter
edu.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 java.lang.String |
PROP_REPLACE_NTH_WITH_PREVIOUS
The SphinxProperty that specifies whether to replace the Nth frame with the previous frame. |
| Constructor Summary | |
|---|---|
FrameDropper()
|
|
FrameDropper(int dropEveryNthFrame,
boolean replaceNthWithPrevious)
|
|
| 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 |
|---|
getPredecessor, getTimer, setPredecessor |
| Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter |
|---|
getName, 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
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_REPLACE_NTH_WITH_PREVIOUS
| Constructor Detail |
|---|
public FrameDropper(int dropEveryNthFrame,
boolean replaceNthWithPrevious)
dropEveryNthFrame - replaceNthWithPrevious - public FrameDropper()
| Method Detail |
|---|
public void newProperties(PropertySheet ps)
throws PropertyException
Configurable
newProperties in interface ConfigurablenewProperties in class ConfigurableAdapterps - 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 | ||||||||