inpro.incremental.processor
Class SynthesisModule

java.lang.Object
  extended by inpro.incremental.PushBuffer
      extended by inpro.incremental.IUModule
          extended by inpro.incremental.processor.SynthesisModule
All Implemented Interfaces:
edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable

public class SynthesisModule
extends IUModule

concurrency: playNoise() and update() are synchronized, so do not try to call them from the same thread


Nested Class Summary
(package private)  class SynthesisModule.NotifyCompletedOnOngoing
          notifies the given PhraseIU when the IU this is listening to is completed
 
Nested classes/interfaces inherited from class inpro.incremental.IUModule
IUModule.RightBuffer
 
Field Summary
protected  PhraseBasedInstallmentIU currentInstallment
           
protected  DispatchStream speechDispatcher
           
(package private)  java.util.ArrayList<PhraseIU> upcomingPhrases
           
 
Fields inherited from class inpro.incremental.IUModule
iulisteners, logger, PROP_HYP_CHANGE_LISTENERS, PROP_LOG_TO_TEDVIEW, PROP_TEDVIEW_LOG_ADDRESS, PROP_TEDVIEW_LOG_PORT, rightBuffer, tedLogAdapter
 
Constructor Summary
SynthesisModule(DispatchStream speechDispatcher)
           
 
Method Summary
private  void appendNotification(SysInstallmentIU installment, PhraseIU phrase)
           
protected  void leftBufferUpdate(java.util.Collection<? extends IU> ius, java.util.List<? extends EditMessage<? extends IU>> edits)
          please only send PhraseIUs, everything else will result in assertions failing
 
Methods inherited from class inpro.incremental.IUModule
getTime, hypChange, logToTedView, newProperties
 
Methods inherited from class inpro.incremental.PushBuffer
reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

speechDispatcher

protected DispatchStream speechDispatcher

upcomingPhrases

java.util.ArrayList<PhraseIU> upcomingPhrases

currentInstallment

protected PhraseBasedInstallmentIU currentInstallment
Constructor Detail

SynthesisModule

public SynthesisModule(DispatchStream speechDispatcher)
Method Detail

leftBufferUpdate

protected void leftBufferUpdate(java.util.Collection<? extends IU> ius,
                                java.util.List<? extends EditMessage<? extends IU>> edits)
please only send PhraseIUs, everything else will result in assertions failing

Specified by:
leftBufferUpdate in class IUModule
Parameters:
ius - list of IUs that make up the current hypothesis
edits - a list of edits since the last call

appendNotification

private void appendNotification(SysInstallmentIU installment,
                                PhraseIU phrase)