Package com.vonage.client.conversations
Class AudioSayEvent
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.conversations.Event
com.vonage.client.conversations.AudioSayEvent
- All Implemented Interfaces:
Jsonable
Represents an
EventType.AUDIO_SAY event.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AudioSayEvent.Builderbuilder()Entry point for constructing an instance of this class.Language for the spoken text.getLevel()Audio volume level, with -1 being quietest, +1 being loudest and 0 the default.getLoop()Number of times to repeat the audio.Whether to use the premium version of the text-to-speech voice.getQueue()Whether to queue the audio.getSayId()Unique audio say identifier.getSsml()Whether to enable Synthesized Speech Markup Language (SSML).getStyle()Text-to-speech voice style.getText()Text to be spoken.Methods inherited from class com.vonage.client.conversations.Event
getFrom, getFromMember, getFromUser, getId, getTimestamp, getTypeMethods 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
-
getSayId
Unique audio say identifier.- Returns:
- The say ID, or
nullif unknown.
-
getText
Text to be spoken.- Returns:
- The speech text.
-
getStyle
Text-to-speech voice style. See the Voice API documentation for valid options.- Returns:
- The TTS style as an Integer, or
nullif unspecified.
-
getLanguage
Language for the spoken text.- Returns:
- The TTS language as an enum, or
nullif unspecified.
-
getPremium
Whether to use the premium version of the text-to-speech voice.- Returns:
trueto use Premium TTS, ornullif unspecified.
-
getSsml
Whether to enable Synthesized Speech Markup Language (SSML).- Returns:
trueto use SSML, ornullif unspecified.
-
builder
Entry point for constructing an instance of this class.- Returns:
- A new Builder.
-
getQueue
Whether to queue the audio.- Returns:
trueif queuing is enabled, ornullif unspecified.
-
getLevel
Audio volume level, with -1 being quietest, +1 being loudest and 0 the default.- Returns:
- The volume as a Double, or
nullif unspecified.
-
getLoop
Number of times to repeat the audio.- Returns:
- The loop count as an Integer, or
nullif unspecified.
-