Package com.vonage.client.conversations
Class AudioRecordEvent.Builder
java.lang.Object
com.vonage.client.conversations.Event.Builder<AudioRecordEvent,AudioRecordEvent.Builder>
com.vonage.client.conversations.AudioRecordEvent.Builder
- Enclosing class:
AudioRecordEvent
public static final class AudioRecordEvent.Builder
extends Event.Builder<AudioRecordEvent,AudioRecordEvent.Builder>
Builder for setting the Audio Record event parameters.
-
Method Summary
Modifier and TypeMethodDescriptionbeepStart(boolean beepStart) Whether to set thebeep_startflag.beepStop(boolean beepStop) Whether to set thebeep_stopflag.build()Builds the EventWithBody.channels(int channels) Number of channels for the recording.detectSpeech(boolean detectSpeech) Whether speech detection is enabled.File format for the recording.language(TextToSpeechLanguage language) Text-to-speech transcription language.multitrack(boolean multitrack) Whether the audio should have multiple tracks.sentimentAnalysis(boolean sentimentAnalysis) Whether to enable sentiment analysis in the recording transcription.split(boolean split) Whether the recording should be split.streamed(boolean streamed) Whether the audio recording is streamed.validity(int validity) Audio recording validity parameter.Methods inherited from class com.vonage.client.conversations.Event.Builder
from
-
Method Details
-
format
File format for the recording.- Parameters:
format- The format as a string.- Returns:
- This builder.
-
validity
Audio recording validity parameter.- Parameters:
validity- The validity as an int.- Returns:
- This builder.
-
channels
Number of channels for the recording.- Parameters:
channels- The number of channels as an int.- Returns:
- This builder.
-
streamed
Whether the audio recording is streamed.- Parameters:
streamed-trueif the recording should be streamed.- Returns:
- This builder.
-
split
Whether the recording should be split.- Parameters:
split-trueif the audio should be split.- Returns:
- This builder.
-
multitrack
Whether the audio should have multiple tracks.- Parameters:
multitrack-trueif the recording should be multi-track.- Returns:
- This builder.
-
detectSpeech
Whether speech detection is enabled.- Parameters:
detectSpeech-trueto enable speech detection.- Returns:
- This builder.
-
beepStart
Whether to set thebeep_startflag.- Parameters:
beepStart-trueto enable beep start.- Returns:
- This builder.
-
beepStop
Whether to set thebeep_stopflag.- Parameters:
beepStop-trueto enable beep stop.- Returns:
- This builder.
-
sentimentAnalysis
Whether to enable sentiment analysis in the recording transcription.- Parameters:
sentimentAnalysis-trueto enable transcription sentiment analysis.- Returns:
- This builder.
-
language
Text-to-speech transcription language. Setting this will enable recording transcription.- Parameters:
language- The transcription language as an enum.- Returns:
- This builder.
-
build
Description copied from class:Event.BuilderBuilds the EventWithBody.- Specified by:
buildin classEvent.Builder<AudioRecordEvent,AudioRecordEvent.Builder> - Returns:
- An instance of Event, populated with all fields from this builder.
-