All Superinterfaces:
Message

public interface SayMessage extends Message
A text-to-speech (TTS) message item. The platform synthesizes the provided text into speech and plays it on the call.
  • Method Details

    • getText

      String getText()
      The text to be synthesized into speech.

      If format is TEXT (default), provide plain text. If format is SSML, provide a valid SSML document (for example, <speak>...</speak>).

      Field is required

      Returns:
      text
    • getFormat

      Format of the message
      Returns:
      format
    • getVoiceName

      String getVoiceName()
      The name of the voice to use for text-to-speech synthesis.

      Supported voices include: Emma, Brian, and others. For a complete list of available voices and their characteristics, see the Text-to-Speech Voices documentation.

      Field is required

      Returns:
      voiceName
    • builder

      static SayMessage.Builder builder()
      Getting builder
      Returns:
      New Builder instance