videosphere
    Preparing search index...
    StreamingAsrEvent:
        | {
            kind: "partial";
            text: string;
            language?: string;
            isTranslation?: boolean;
        }
        | {
            kind: "final";
            text: string;
            language?: string;
            isTranslation?: boolean;
        }
        | {
            kind: "audio_event";
            event: "music";
            active: boolean;
            confidence?: number;
        }
        | { kind: "error"; message: string }

    Events emitted by a streaming ASR session toward the session hub.

    Type Declaration

    • { kind: "partial"; text: string; language?: string; isTranslation?: boolean }
      • kind: "partial"
      • text: string
      • Optionallanguage?: string
      • OptionalisTranslation?: boolean

        True when the text is a translation (Soniox).

    • { kind: "final"; text: string; language?: string; isTranslation?: boolean }
    • { kind: "audio_event"; event: "music"; active: boolean; confidence?: number }
      • kind: "audio_event"

        Non-speech audio event reported by providers that classify it. Corroborates local music detection; only Speechmatics emits this today.

      • event: "music"

        Event class. Only music affects caption suppression.

      • active: boolean

        True when the event started, false when it ended.

      • Optionalconfidence?: number

        Provider confidence in [0, 1], when supplied.

    • { kind: "error"; message: string }