Member Junction
    Preparing search index...

    Interface RealtimeTranscript

    A transcript event emitted by the model for either the user's speech or the assistant's response.

    interface RealtimeTranscript {
        IsFinal: boolean;
        ReplacesPrevious?: boolean;
        Role: "user" | "assistant";
        Text: string;
    }
    Index

    Properties

    IsFinal: boolean

    Whether this is the final transcript for the turn (true) or an interim delta (false).

    ReplacesPrevious?: boolean

    When true, this FINAL transcript REPLACES the previous final for the same in-flight turn — providers that STREAM their "completed" transcription (each event carrying the full growing text, e.g. Grok) set this so consumers collapse the stream into one in-place-updating turn instead of a stack of growing duplicates. Absent/false: a normal, append-worthy final.

    Role: "user" | "assistant"

    Whose turn this transcript belongs to.

    Text: string

    The transcribed text. For IsFinal: false events this is the incremental DELTA for the in-flight turn (drivers emit each new fragment, not a re-send of the accumulated text); for IsFinal: true it is the complete turn text.