Package com.vonage.client.video
Class CaptionsRequest
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.video.CaptionsRequest
- All Implemented Interfaces:
Jsonable
Defines the captioning properties used in
VideoClient.startCaptions(CaptionsRequest).- Since:
- 8.5.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for defining the fields in a StartCaptionsRequest object. -
Method Summary
Modifier and TypeMethodDescriptionstatic CaptionsRequest.Builderbuilder()Entry point for constructing an instance of this class.Spoken language used on this call in BCP-47 format.The maximum duration for the audio captioning, in seconds.Unique identifier of the Vonage Video session.A publicly reachable URL controlled by the customer and capable of generating the content to be rendered without user intervention.getToken()JSON Web Token with the appropriate roles for this request.Whether faster captioning is enabled at the cost of some degree of inaccuracies.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
-
getStatusCallbackUrl
A publicly reachable URL controlled by the customer and capable of generating the content to be rendered without user intervention.- Returns:
- The status callback URL, or
nullif not set.
-
getLanguageCode
Spoken language used on this call in BCP-47 format.- Returns:
- The language code as an enum.
-
getMaxDuration
The maximum duration for the audio captioning, in seconds.- Returns:
- The maximum captioning duration as an integer.
-
partialCaptions
Whether faster captioning is enabled at the cost of some degree of inaccuracies.- Returns:
trueif the partial captions setting is enabled.
-
builder
Entry point for constructing an instance of this class.- Returns:
- A new Builder.
-
getSessionId
Unique identifier of the Vonage Video session.- Returns:
- The session ID as a string.
-
getToken
JSON Web Token with the appropriate roles for this request.- Returns:
- The Base64-encoded JWT as a string.
-