Package com.vonage.client.video
Class CaptionsRequest.Builder
java.lang.Object
com.vonage.client.video.CaptionsRequest.Builder
- Enclosing class:
CaptionsRequest
Builder for defining the fields in a StartCaptionsRequest object.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the StartCaptionsRequest object.languageCode(Language languageCode) BCP-47 code for a spoken language used on this call.maxDuration(int maxDuration) The maximum duration for the audio captioning, in seconds.partialCaptions(boolean partialCaptions) Whether to enable this to faster captioning at the cost of some degree of inaccuracies.statusCallbackUrl(String statusCallbackUrl) A publicly reachable URL controlled by the customer and capable of generating the content to be rendered without user intervention.
-
Method Details
-
languageCode
BCP-47 code for a spoken language used on this call. The default value is Language.EN_US.- Parameters:
languageCode- The BCP-47 language code as an enum.- Returns:
- This Builder with the languageCode property setting.
-
statusCallbackUrl
A publicly reachable URL controlled by the customer and capable of generating the content to be rendered without user intervention. The minimum length of the URL is 15 characters and the maximum length is 2048 characters.- Parameters:
statusCallbackUrl- The status callback URL as a string.- Returns:
- This Builder with the statusCallbackUrl property setting.
-
maxDuration
The maximum duration for the audio captioning, in seconds. The default value is 14,400 seconds (4 hours), the maximum duration allowed. The minimum value is 300 seconds.- Parameters:
maxDuration- The maximum captions duration in seconds.- Returns:
- This Builder with the maxDuration property setting.
-
partialCaptions
Whether to enable this to faster captioning at the cost of some degree of inaccuracies. The default value istrue.- Parameters:
partialCaptions- Whether to enable faster captions.- Returns:
- This Builder with the partialCaptions property setting.
-
build
Builds the StartCaptionsRequest object.- Returns:
- The StartCaptionsRequest object with this builder's settings.
-