pub struct Transcript {
pub text: String,
pub raw_text: String,
pub language: Option<String>,
pub timestamp_kind: TimestampKind,
pub segments: Vec<Segment>,
pub speaker_segments: Vec<SpeakerSegment>,
pub words: Vec<Word>,
pub tokens: Vec<Token>,
pub timings: Timings,
}Expand description
A fully-materialized transcription result.
Fields§
§text: StringThe full transcript text.
raw_text: StringThe model’s decoded output before family post-processing (diarization
markers, timestamp/special tokens, tag filtering, whitespace trims).
Equal to text modulo whitespace for families that emit clean text.
language: Option<String>The model-detected language (ISO code), if it predicted one. None
when a language hint was given, the model lacks LID, or none applies.
timestamp_kind: TimestampKindThe finest timestamp granularity actually populated below.
segments: Vec<Segment>Transcript segments. Speaker-attributed models may return untimed rows even when timestamps are disabled.
speaker_segments: Vec<SpeakerSegment>Diarized speaker turns (empty unless diarization was enabled and found).
words: Vec<Word>Word rows (empty unless word-or-finer timestamps were produced).
tokens: Vec<Token>Token rows (empty unless token timestamps were produced).
timings: TimingsStage timings for the run.