Package com.vonage.client.voice
Class TalkPayload
java.lang.Object
com.vonage.client.voice.TalkPayload
public class TalkPayload extends java.lang.Object
The JSON payload that will be sent in a
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 Summary
Constructors Constructor Description TalkPayload(java.lang.String text, VoiceName voiceName, int loop) -
Method Summary
Modifier and Type Method Description intgetLoop()java.lang.StringgetText()VoiceNamegetVoiceName()java.lang.StringtoJson()