Class WordInfo.Builder
java.lang.Object
com.google.genai.gaos.models.interactions.WordInfo.Builder
- Enclosing class:
- WordInfo
-
Method Summary
Modifier and TypeMethodDescriptionbuild()End of the attributed segment, exclusive.End offset in time of the word relative to the start of the audio.Optional.startIndex(Integer startIndex) Start of segment of the response that is attributed to this source.startOffset(String startOffset) Start offset in time of the word relative to the start of the audio.The transcribed word.
-
Method Details
-
endIndex
End of the attributed segment, exclusive. -
endOffset
End offset in time of the word relative to the start of the audio. Present when timestamp_granularities contains "word". -
speaker
Optional. Speaker label for this word (e.g. "spk_1", "spk_2"). Present when diarization_mode is set in TranscriptionConfig. -
startIndex
Start of segment of the response that is attributed to this source.Index indicates the start of the segment, measured in bytes.
-
startOffset
Start offset in time of the word relative to the start of the audio. Present when timestamp_granularities contains "word". -
text
The transcribed word. -
build
-