TranscriptionSegment
classin packageklyn.genai.stt
public class TranscriptionSegment
TranscriptionSegment

Immutable text for an audio interval, in seconds from the start of the input. Intervals describe recognition windows or detected utterances, not word-level forced alignment. @example print(segment.start, segment.end, segment.text)

Properties
Modifier and Type Member Description
public readonly property end
end as Double
Exclusive last audio second.
public readonly property start
start as Double
First audio second.
public readonly property text
text as String
Recognized text.
Constructors
Modifier and Type Member Description
public TranscriptionSegment
TranscriptionSegment(start as Double, end as Double, notnull text as String)
Captures a validated interval and text.