public class TalkPayload extends java.lang.Object
TalkRequest.
text: A string of up to 1500 characters containing the message to be synthesized
in the Call or Conversation. Each comma in text adds a short pause to the synthesized speech.
VoiceName: The name of the voice used to deliver text.
loop: The number of times the audio file at stream_url is repeated before the stream ends. Set to 0 to loop infinitely.
| Constructor and Description |
|---|
TalkPayload(java.lang.String text,
VoiceName voiceName,
int loop) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLoop() |
java.lang.String |
getText() |
VoiceName |
getVoiceName() |
java.lang.String |
toJson() |
public TalkPayload(java.lang.String text, VoiceName voiceName, int loop)
public int getLoop()
public java.lang.String getText()
public VoiceName getVoiceName()
public java.lang.String toJson()