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 TypeMethodDescriptionboolean
Checks if speech is being produced.boolean
Speaks appropriate text, blocking.boolean
Speaks appropriate textboolean
Stops 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:SpeechProductionInterface
Speaks appropriate text, blocking.- Specified by:
sayText
in interfaceSpeechProductionInterface
- Parameters:
text
- the text to be spoken
-
sayText
Description copied from interface:SpeechProductionInterface
Speaks appropriate text- Specified by:
sayText
in 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:SpeechProductionInterface
Checks if speech is being produced.- Specified by:
isSpeaking
in interfaceSpeechProductionInterface
- Returns:
true
if speech is being produced,false
otherwise
-
stopUtterance
public boolean stopUtterance()Description copied from interface:SpeechProductionInterface
Stops an ongoing utterance.- Specified by:
stopUtterance
in interfaceSpeechProductionInterface
- Returns:
- true if speech is interrupted, false otherwise.
-