Package edu.tufts.hrilab.tts.opentts
Class OpenTTSComponent
java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.tts.opentts.OpenTTSComponent
- All Implemented Interfaces:
SpeechProductionInterface
-
Field Summary
Fields inherited from class edu.tufts.hrilab.diarc.DiarcComponent
executionLoopCycleTime, log, shouldRunExecutionLoop -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if speech is being produced.booleanSpeaks appropriate text, blocking.booleanSpeaks appropriate textbooleanStops an ongoing utterance.Methods inherited from class edu.tufts.hrilab.diarc.DiarcComponent
additionalUsageInfo, createInstance, createInstance, createInstance, createInstance, executionLoop, getMyGroupConstraints, getMyGroups, getMyService, getMyServices, init, main, parseArgs, shutdown, shutdownComponent
-
Constructor Details
-
OpenTTSComponent
public OpenTTSComponent()
-
-
Method Details
-
sayText
Description copied from interface:SpeechProductionInterfaceSpeaks appropriate text, blocking.- Specified by:
sayTextin interfaceSpeechProductionInterface- Parameters:
text- the text to be spoken
-
sayText
Description copied from interface:SpeechProductionInterfaceSpeaks appropriate text- Specified by:
sayTextin interfaceSpeechProductionInterface- Parameters:
text- the text to be spokenwait- whether or not to block until speaking call returns
-
isSpeaking
public boolean isSpeaking()Description copied from interface:SpeechProductionInterfaceChecks if speech is being produced.- Specified by:
isSpeakingin interfaceSpeechProductionInterface- Returns:
trueif speech is being produced,falseotherwise
-
stopUtterance
public boolean stopUtterance()Description copied from interface:SpeechProductionInterfaceStops an ongoing utterance.- Specified by:
stopUtterancein interfaceSpeechProductionInterface- Returns:
- true if speech is interrupted, false otherwise.
-