public static class RealtimeMessageResultTranscriptionToken.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RealtimeMessageResultTranscriptionToken |
build() |
RealtimeMessageResultTranscriptionToken.Builder |
confidence(Float confidence)
Confidence score for the transcription token.
|
RealtimeMessageResultTranscriptionToken.Builder |
copy(RealtimeMessageResultTranscriptionToken model) |
RealtimeMessageResultTranscriptionToken.Builder |
endTimeInMs(Integer endTimeInMs)
End time in milliseconds for the transcription token.
|
RealtimeMessageResultTranscriptionToken.Builder |
startTimeInMs(Integer startTimeInMs)
Start time in milliseconds for the transcription token.
|
RealtimeMessageResultTranscriptionToken.Builder |
token(String token)
Transcription token.
|
RealtimeMessageResultTranscriptionToken.Builder |
type(RealtimeMessageResultTranscriptionToken.Type type)
Type of the transcription token.
|
public RealtimeMessageResultTranscriptionToken.Builder token(String token)
Transcription token.
token
- the value to setpublic RealtimeMessageResultTranscriptionToken.Builder startTimeInMs(Integer startTimeInMs)
Start time in milliseconds for the transcription token.
startTimeInMs
- the value to setpublic RealtimeMessageResultTranscriptionToken.Builder endTimeInMs(Integer endTimeInMs)
End time in milliseconds for the transcription token.
endTimeInMs
- the value to setpublic RealtimeMessageResultTranscriptionToken.Builder confidence(Float confidence)
Confidence score for the transcription token.
confidence
- the value to setpublic RealtimeMessageResultTranscriptionToken.Builder type(RealtimeMessageResultTranscriptionToken.Type type)
Type of the transcription token.
type
- the value to setpublic RealtimeMessageResultTranscriptionToken build()
public RealtimeMessageResultTranscriptionToken.Builder copy(RealtimeMessageResultTranscriptionToken model)
Copyright © 2016–2024. All rights reserved.