public static class RealtimeMessageResultTranscription.Builder extends Object
Constructor and Description |
---|
Builder() |
public RealtimeMessageResultTranscription.Builder transcription(String transcription)
Transcription text.
transcription
- the value to setpublic RealtimeMessageResultTranscription.Builder isFinal(Boolean isFinal)
Whether the transcription is final or partial.
isFinal
- the value to setpublic RealtimeMessageResultTranscription.Builder startTimeInMs(Integer startTimeInMs)
Start time in milliseconds for the transcription text.
startTimeInMs
- the value to setpublic RealtimeMessageResultTranscription.Builder endTimeInMs(Integer endTimeInMs)
End time in milliseconds for the transcription text.
endTimeInMs
- the value to setpublic RealtimeMessageResultTranscription.Builder confidence(Float confidence)
Confidence for the transcription text.
confidence
- the value to setpublic RealtimeMessageResultTranscription.Builder trailingSilence(Integer trailingSilence)
Trailing silence after the transcription text.
trailingSilence
- the value to setpublic RealtimeMessageResultTranscription.Builder tokens(List<RealtimeMessageResultTranscriptionToken> tokens)
Array of individual transcription tokens.
tokens
- the value to setpublic RealtimeMessageResultTranscription build()
public RealtimeMessageResultTranscription.Builder copy(RealtimeMessageResultTranscription model)
Copyright © 2016–2024. All rights reserved.