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 TypeMethodDescriptionboolean
Checks if speech is being produced.boolean
Speaks appropriate text, blocking.boolean
Speaks appropriate textboolean
Stops 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:
true
if speech is being produced,false
otherwise
-
stopUtterance
boolean stopUtterance()Stops an ongoing utterance.- Returns:
- true if speech is interrupted, false otherwise.
-