Package com.nexmo.client.voice
Class TalkPayload
- java.lang.Object
-
- com.nexmo.client.voice.TalkPayload
-
public class TalkPayload extends java.lang.Object
The JSON payload that will be sent in aTalkRequest.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 delivertext.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLoop()java.lang.StringgetText()VoiceNamegetVoiceName()java.lang.StringtoJson()
-
-
-
Constructor Detail
-
TalkPayload
public TalkPayload(java.lang.String text, VoiceName voiceName, int loop)
-
-
Method Detail
-
getLoop
public int getLoop()
-
getText
public java.lang.String getText()
-
getVoiceName
public VoiceName getVoiceName()
-
toJson
public java.lang.String toJson()
-
-