Package com.vonage.client.voice.ncco
Class TalkAction
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.voice.ncco.TalkAction
An NCCO talk action which allows for synthesized speech to be sent to a call.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TalkAction.BuildergetLevel()getLoop()getStyle()getText()Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Method Details
-
getAction
-
getText
-
getBargeIn
-
getLoop
-
getLevel
-
getLanguage
-
getStyle
-
getPremium
-
builder
- Parameters:
text- A string of up to 1,500 characters (excluding SSML tags) containing the message to be synthesized in the Call or Conversation. A single comma in text adds a short pause to the synthesized speech. To add a longer pause a break tag needs to be used in SSML.To use SSML tags, you must enclose the text in a speak element.
- Returns:
- A new TalkAction.Builder with the text field initialised.
-