inpro.incremental.source
Class OffsetAdapter

java.lang.Object
  extended by edu.cmu.sphinx.util.props.ConfigurableAdapter
      extended by edu.cmu.sphinx.frontend.BaseDataProcessor
          extended by 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)


Field Summary
(package private)  CurrentASRHypothesis casrh
           
private  boolean inAudio
           
static java.lang.String PROP_CASRH
           
 
Fields inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
logger
 
Constructor Summary
OffsetAdapter()
           
 
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
 

Field Detail

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
Constructor Detail

OffsetAdapter

public OffsetAdapter()
Method Detail

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