Package edu.tufts.hrilab.interfaces
Interface SpeechProductionInterface
- All Known Subinterfaces:
MockNaoInterface,NaoInterface
- All Known Implementing Classes:
MaryTTSComponent,MockNaoComponent,NaoComponent,NaoWizardComponent,OpenTTSComponent,SimSpeechProductionComponent
public interface SpeechProductionInterface
Defines a standard set of methods that must be defined in an
DIARCComponent to send text for speech production.
Naturally, it is not required to conform or even to use the
interfaces. However, by explicitly declaring them, it acts
as a guarantee that robot control code will work mostly as
expected no matter what DIARCComponent it is connected with.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if speech is being produced.booleanSpeaks appropriate text, blocking.booleanSpeaks appropriate textbooleanStops an ongoing utterance.
-
Method Details
-
sayText
Speaks appropriate text, blocking.- Parameters:
text- the text to be spoken
-
sayText
Speaks appropriate text- Parameters:
text- the text to be spokenwait- whether or not to block until speaking call returns
-
isSpeaking
boolean isSpeaking()Checks if speech is being produced.- Returns:
trueif speech is being produced,falseotherwise
-
stopUtterance
boolean stopUtterance()Stops an ongoing utterance.- Returns:
- true if speech is interrupted, false otherwise.
-