hmi.elckerlyc.speechengine
Class AbstractSpeechUnit
java.lang.Object
hmi.elckerlyc.planunit.AbstractPlanUnit
hmi.elckerlyc.speechengine.AbstractSpeechUnit
- All Implemented Interfaces:
- PlanUnit, SpeechUnit
- Direct Known Subclasses:
- TextSpeechUnit, TTSUnit
public abstract class AbstractSpeechUnit
- extends AbstractPlanUnit
- implements SpeechUnit
| Methods inherited from class hmi.elckerlyc.planunit.AbstractPlanUnit |
addFeedbackListener, feedback, getAvailableSyncs, getBMLBlockPeg, getBMLId, getId, getPreferedDuration, getRelativeTime, getReplacementGroup, getState, getTime, isDone, isLurking, isPlaying, isSubUnit, play, playUnit, reset, resetUnit, setState, setSubUnit, start, startUnit, stop, stopUnit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hmi.elckerlyc.planunit.PlanUnit |
addFeedbackListener, feedback, getAvailableSyncs, getBMLBlockPeg, getBMLId, getId, getPreferedDuration, getRelativeTime, getReplacementGroup, getState, getTime, getTimePeg, hasValidTiming, isDone, isLurking, isPlaying, isSubUnit, play, reset, setParameterValue, setState, setTimePeg, start, stop |
startSync
private TimePeg startSync
endSync
private TimePeg endSync
speechText
protected String speechText
bmlStartTime
protected double bmlStartTime
logger
private static org.slf4j.Logger logger
AbstractSpeechUnit
AbstractSpeechUnit(BMLBlockPeg bbPeg,
String text,
String id,
String bmlId)
getStartTime
public double getStartTime()
- Description copied from interface:
PlanUnit
- Get the global start time of the PlanUnit, TimePeg.VALUEUNKNOWN if not known (yet)
- Specified by:
getStartTime in interface PlanUnit
getEndTime
public double getEndTime()
- Description copied from interface:
PlanUnit
- Get the global end time of the PlanUnit, TimePeg.VALUEUNKNOWN if not known (yet)
- Specified by:
getEndTime in interface PlanUnit
getEndPeg
public TimePeg getEndPeg()
getStartPeg
public TimePeg getStartPeg()
setStart
public void setStart(TimePeg s)
- Specified by:
setStart in interface SpeechUnit
setEnd
public void setEnd(TimePeg s)
- Specified by:
setEnd in interface SpeechUnit
sendStartProgress
protected void sendStartProgress(double time)
sendEndProgress
public void sendEndProgress(double time)
- Send the end progress feedback info, should be called only from the VerbalPlanPlayer.
- Specified by:
sendEndProgress in interface SpeechUnit
- Parameters:
time - time since start of BML execution