inpro.incremental.source
Class CurrentASRHypothesis

java.lang.Object
  extended by inpro.incremental.source.CurrentASRHypothesis
All Implemented Interfaces:
edu.cmu.sphinx.decoder.ResultListener, edu.cmu.sphinx.instrumentation.Monitor, edu.cmu.sphinx.util.props.Configurable, java.util.EventListener

public class CurrentASRHypothesis
extends java.lang.Object
implements edu.cmu.sphinx.util.props.Configurable, edu.cmu.sphinx.decoder.ResultListener, edu.cmu.sphinx.instrumentation.Monitor

this class is the glue between sphinx and InproTK and is the starting point into the IU world.

Author:
timo

Field Summary
(package private)  ASRWordDeltifier asrDeltifier
           
(package private)  BaseData basedata
           
(package private)  java.util.List<PushBuffer> listeners
           
static java.lang.String PROP_ASR_DELTIFIER
           
static java.lang.String PROP_ASR_FRONTEND
           
static java.lang.String PROP_BASE_DATA_KEEPER
           
static java.lang.String PROP_HYP_CHANGE_LISTENERS
           
 
Constructor Summary
CurrentASRHypothesis()
           
 
Method Summary
 void addListener(PushBuffer pb)
           
private  void checkForTEDview(PushBuffer listener)
          for TEDview, we additionally notify about segments and syllables
 void commit()
           
 ASRWordDeltifier getDeltifier()
           
 void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
           
 void newResult(edu.cmu.sphinx.result.Result result)
           
 void reset()
           
 void setDeltifier(ASRWordDeltifier deltifier)
          programmatically set the deltifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_ASR_FRONTEND

@S4Component(type=edu.cmu.sphinx.frontend.FrontEnd.class,
             mandatory=true)
public static final java.lang.String PROP_ASR_FRONTEND
See Also:
Constant Field Values

PROP_ASR_DELTIFIER

@S4Component(type=ASRWordDeltifier.class,
             defaultClass=ASRWordDeltifier.class)
public static final java.lang.String PROP_ASR_DELTIFIER
See Also:
Constant Field Values

asrDeltifier

ASRWordDeltifier asrDeltifier

PROP_BASE_DATA_KEEPER

@S4Component(type=BaseData.class,
             mandatory=false)
public static final java.lang.String PROP_BASE_DATA_KEEPER
See Also:
Constant Field Values

basedata

BaseData basedata

PROP_HYP_CHANGE_LISTENERS

@S4ComponentList(type=PushBuffer.class)
public static final java.lang.String PROP_HYP_CHANGE_LISTENERS
See Also:
Constant Field Values

listeners

java.util.List<PushBuffer> listeners
Constructor Detail

CurrentASRHypothesis

public CurrentASRHypothesis()
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
Throws:
edu.cmu.sphinx.util.props.PropertyException

addListener

public void addListener(PushBuffer pb)

setDeltifier

public void setDeltifier(ASRWordDeltifier deltifier)
programmatically set the deltifier


getDeltifier

public ASRWordDeltifier getDeltifier()

newResult

public void newResult(edu.cmu.sphinx.result.Result result)
Specified by:
newResult in interface edu.cmu.sphinx.decoder.ResultListener

checkForTEDview

private void checkForTEDview(PushBuffer listener)
for TEDview, we additionally notify about segments and syllables


reset

public void reset()

commit

public void commit()