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 Type
    Method
    Description
    boolean
    Checks if speech is being produced.
    boolean
    Speaks appropriate text, blocking.
    boolean
    sayText(String text, boolean wait)
    Speaks appropriate text
    boolean
    Stops an ongoing utterance.
  • Method Details

    • sayText

      boolean sayText(String text)
      Speaks appropriate text, blocking.
      Parameters:
      text - the text to be spoken
    • sayText

      boolean sayText(String text, boolean wait)
      Speaks appropriate text
      Parameters:
      text - the text to be spoken
      wait - 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.