/** * Emitted once per utterance when finalization completes by the * non-streaming finalizer. No `confidence` and no `words` array are emitted * by this endpoint, even with `return_timestamps=true`. */ export interface RealtimeTranscriptFinal { event: "transcript.final"; /** Zero-based utterance counter for the session */ utterance_idx: number; /** Final transcript text for the utterance */ text: string; /** * Detected language (BCP-47, e.g. `gu-IN`). Present only when * `language_code=auto` was selected on the connection. */ language?: string | undefined; /** * Detection confidence (0.0–1.0). Present only when * `language_code=auto` was selected on the connection. */ language_confidence?: number | undefined; /** * Segment start (seconds since stream start). Present only when * `return_timestamps=true`. */ start_s?: number | undefined; /** * Segment end (seconds since stream start). Present only when * `return_timestamps=true`. */ end_s?: number | undefined; }