inpro.incremental.source
Class OffsetAdapter
java.lang.Object
edu.cmu.sphinx.util.props.ConfigurableAdapter
edu.cmu.sphinx.frontend.BaseDataProcessor
inpro.incremental.source.OffsetAdapter
- All Implemented Interfaces:
- edu.cmu.sphinx.frontend.DataProcessor, edu.cmu.sphinx.util.props.Configurable
public class OffsetAdapter
- extends edu.cmu.sphinx.frontend.BaseDataProcessor
there are two alternatives to set the offset:
- put an OffsetAdapter into the FrontEnd (after VAD)
- alternatively, use ASRWordDeltifier.signalOccurred() ; for this you have to call
FrontEnd.addSignalListener(deltifier) somewhere (CurrentHypothesis-setup)
here, the offset is given in centiseconds (frames)
Fields inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter |
logger |
Method Summary |
edu.cmu.sphinx.frontend.Data |
getData()
|
void |
newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
|
Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor |
getPredecessor, getTimer, initialize, setPredecessor |
Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter |
getName, initLogger, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PROP_CASRH
@S4Component(defaultClass=CurrentASRHypothesis.class,
type=CurrentASRHypothesis.class)
public static final java.lang.String PROP_CASRH
- See Also:
- Constant Field Values
casrh
CurrentASRHypothesis casrh
inAudio
private boolean inAudio
OffsetAdapter
public OffsetAdapter()
newProperties
public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
throws edu.cmu.sphinx.util.props.PropertyException
- Specified by:
newProperties
in interface edu.cmu.sphinx.util.props.Configurable
- Overrides:
newProperties
in class edu.cmu.sphinx.util.props.ConfigurableAdapter
- Throws:
edu.cmu.sphinx.util.props.PropertyException
getData
public edu.cmu.sphinx.frontend.Data getData()
throws edu.cmu.sphinx.frontend.DataProcessingException
- Specified by:
getData
in interface edu.cmu.sphinx.frontend.DataProcessor
- Specified by:
getData
in class edu.cmu.sphinx.frontend.BaseDataProcessor
- Throws:
edu.cmu.sphinx.frontend.DataProcessingException