Package com.vonage.client.voice.ncco
Class TranscriptionSettings.Builder
java.lang.Object
com.vonage.client.voice.ncco.TranscriptionSettings.Builder
- Enclosing class:
TranscriptionSettings
Builder for setting the TranscriptionSettings parameters. All settings / fields are optional.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the TranscriptionSettings object.eventMethod(EventMethod eventMethod) The HTTP method Vonage uses to make the request toeventUrl.The URL to the webhook endpoint that is called asynchronously when a transcription is finished.language(SpeechSettings.Language language) The language (BCP-47 format) for the recording you're transcribing.sentimentAnalysis(boolean sentimentAnalysis) Whether to perform sentiment analysis on the call recording transcription segments.
-
Method Details
-
language
The language (BCP-47 format) for the recording you're transcribing. This currently supports the same languages as Automatic Speech Recording.- Parameters:
language- The recording language as an enum.- Returns:
- This builder.
-
eventUrl
The URL to the webhook endpoint that is called asynchronously when a transcription is finished.- Parameters:
eventUrl- The event URL as a string.- Returns:
- This builder.
-
eventMethod
The HTTP method Vonage uses to make the request toeventUrl. The default value isEventMethod.POST.- Parameters:
eventMethod- The HTTP method as an enum.- Returns:
- This builder.
-
sentimentAnalysis
Whether to perform sentiment analysis on the call recording transcription segments. Will return a value between -1 (negative sentiment) and 1 (positive sentiment) for each segment. Defaults tofalse.- Parameters:
sentimentAnalysis-trueto enable sentiment analysis on the recording.- Returns:
- This builder.
-
build
Builds the TranscriptionSettings object.- Returns:
- A new TranscriptionSettings instance with this builder's settings.
-