|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.decoder.AbstractDecoder
edu.cmu.sphinx.decoder.FrameDecoder
public class FrameDecoder
A decoder which does not use the common pull-principle of S4 but processes only one single frame on each call of
decode(). When using this decoder, make sure that the AcousticScorer used by the
SearchManager can access some buffered Datas.
| Field Summary |
|---|
| Fields inherited from class edu.cmu.sphinx.decoder.AbstractDecoder |
|---|
AUTO_ALLOCATE, FIRE_NON_FINAL_RESULTS, PROP_RESULT_LISTENERS, PROP_SEARCH_MANAGER |
| Constructor Summary | |
|---|---|
FrameDecoder(SearchManager searchManager,
boolean fireNonFinalResults,
boolean autoAllocate,
java.util.List<? extends Configurable> listeners)
|
|
| Method Summary | |
|---|---|
Result |
decode(java.lang.String referenceText)
Decode a single frame. |
Data |
getData()
Returns the processed Data output. |
DataProcessor |
getPredecessor()
Returns the predecessor DataProcessor. |
void |
initialize()
Initializes this DataProcessor. |
void |
setPredecessor(DataProcessor predecessor)
Sets the predecessor DataProcessor. |
| Methods inherited from class edu.cmu.sphinx.decoder.AbstractDecoder |
|---|
addResultListener, allocate, deallocate, newProperties, removeResultListener, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.cmu.sphinx.util.props.Configurable |
|---|
newProperties |
| Constructor Detail |
|---|
public FrameDecoder(SearchManager searchManager,
boolean fireNonFinalResults,
boolean autoAllocate,
java.util.List<? extends Configurable> listeners)
| Method Detail |
|---|
public Result decode(java.lang.String referenceText)
decode in class AbstractDecoderreferenceText - the reference text (or null)
public Data getData()
throws DataProcessingException
DataProcessor
getData in interface DataProcessorDataProcessingException - if a data processor error occurspublic DataProcessor getPredecessor()
DataProcessor
getPredecessor in interface DataProcessorpublic void setPredecessor(DataProcessor predecessor)
DataProcessor
setPredecessor in interface DataProcessorpredecessor - the new predecessor of this DataProcessorpublic void initialize()
DataProcessor
initialize in interface DataProcessor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||