Interface SayMessage
- All Superinterfaces:
Message
A text-to-speech (TTS) message item. The platform synthesizes the provided text into speech and
plays it on the call.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDedicated Builderstatic classGets or Sets format -
Method Summary
Modifier and TypeMethodDescriptionstatic SayMessage.Builderbuilder()Getting builderFormat of the messagegetText()The text to be synthesized into speech.The name of the voice to use for text-to-speech synthesis.
-
Method Details
-
getText
String getText()The text to be synthesized into speech.If
formatisTEXT(default), provide plain text. IfformatisSSML, provide a valid SSML document (for example,<speak>...</speak>).Field is required
- Returns:
- text
-
getFormat
SayMessage.FormatEnum 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
Getting builder- Returns:
- New Builder instance
-