|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinpro.incremental.PushBuffer
inpro.incremental.IUModule
inpro.incremental.processor.AudioActionManager
public class AudioActionManager
Nested Class Summary | |
---|---|
static interface |
AudioActionManager.Listener
Interface for dialogue manager (or other previous modules) to implement. |
Nested classes/interfaces inherited from class inpro.incremental.IUModule |
---|
IUModule.RightBuffer |
Field Summary | |
---|---|
protected java.util.List<AudioActionManager.Listener> |
amListeners
List of components that listen to AM output |
protected DispatchStream |
audioDispatcher
Audio output steam |
protected static java.lang.String |
audioPath
Audio file location |
protected IUBasedFloorTracker |
floorTracker
The floor tracker |
static java.lang.String |
PROP_AUDIO_PATH
Config for audio file location |
static java.lang.String |
PROP_DISPATCHER
Config for audio output steam |
static java.lang.String |
PROP_FLOOR_TRACKER
Config for floor tracker |
static java.lang.String |
PROP_STATE_LISTENERS
Config for list of components that listen to AM output |
static java.lang.String |
PROP_UTTERANCE_MAP
Configuration for reading utterance audio files from an external file. |
protected IUList<DialogueActIU> |
toPerform
List of dialogue act IUs to perform whenever possible. |
protected static java.lang.String |
utteranceMapFile
The utterance map file name |
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 | |
---|---|
AudioActionManager()
|
Method Summary | |
---|---|
void |
floor(AbstractFloorTracker.Signal signal,
AbstractFloorTracker floorManager)
When the floor changes, react: br> If floor is taken, be quiet br> If floor is available, speak queued IUs' utterance (from file if one is available, via TTS otherwise). br> |
void |
leftBufferUpdate(java.util.Collection<? extends IU> ius,
java.util.List<? extends EditMessage<? extends IU>> edits)
Remembers what the current left buffer dialogue act IUs are. |
void |
newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
|
void |
reset()
|
void |
shutUp()
Shuts up current audio by clearing dispatcher's audio stream. |
protected void |
signalListeners(DialogueActIU iu)
Notifies listeners that a DialogueActIU has been performed. |
Methods inherited from class inpro.incremental.IUModule |
---|
getTime, hypChange, logToTedView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@S4String(mandatory=false) public static final java.lang.String PROP_UTTERANCE_MAP
protected static java.lang.String utteranceMapFile
@S4ComponentList(type=AudioActionManager.Listener.class) public static final java.lang.String PROP_STATE_LISTENERS
protected java.util.List<AudioActionManager.Listener> amListeners
@S4Component(type=DispatchStream.class) public static final java.lang.String PROP_DISPATCHER
protected DispatchStream audioDispatcher
@S4Component(type=IUBasedFloorTracker.class) public static final java.lang.String PROP_FLOOR_TRACKER
protected IUBasedFloorTracker floorTracker
@S4String(mandatory=false) public static final java.lang.String PROP_AUDIO_PATH
protected static java.lang.String audioPath
protected IUList<DialogueActIU> toPerform
Constructor Detail |
---|
public AudioActionManager()
Method Detail |
---|
public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps) throws edu.cmu.sphinx.util.props.PropertyException
newProperties
in interface edu.cmu.sphinx.util.props.Configurable
newProperties
in class IUModule
edu.cmu.sphinx.util.props.PropertyException
public void leftBufferUpdate(java.util.Collection<? extends IU> ius, java.util.List<? extends EditMessage<? extends IU>> edits)
leftBufferUpdate
in class IUModule
ius
- list of IUs that make up the current hypothesisedits
- a list of edits since the last callpublic void floor(AbstractFloorTracker.Signal signal, AbstractFloorTracker floorManager)
floor
in interface AbstractFloorTracker.Listener
signal
- the signal describing the change in the floorfloorManager
- the floor manager itself. in this way a consumer can request e.g. to change timeoutsprotected void signalListeners(DialogueActIU iu)
iu
- the performed IU.public void shutUp()
public void reset()
reset
in interface edu.cmu.sphinx.instrumentation.Resetable
reset
in class PushBuffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |