videosphere
    Preparing search index...

    Caption/audio event pushed to public SSE subscribers.

    interface TranslationHubEvent {
        type:
            | "error"
            | "status"
            | "caption"
            | "heartbeat"
            | "source_pcm"
            | "activity";
        segmentId?: string;
        language?: string;
        text?: string;
        audioUrl?: string;
        pcmBase64?: string;
        sampleRate?: number;
        live?: boolean;
        message?: string;
        activity?: BroadcastActivity;
        ts: number;
    }
    Index

    Properties

    type: "error" | "status" | "caption" | "heartbeat" | "source_pcm" | "activity"
    segmentId?: string
    language?: string
    text?: string
    audioUrl?: string
    pcmBase64?: string

    Base64-encoded 16-bit LE mono PCM for source-language live listen.

    sampleRate?: number

    Sample rate Hz for source_pcm payloads.

    live?: boolean
    message?: string
    activity?: BroadcastActivity

    Whether the owner audio currently holds speech or music. Sent on transitions and with the initial status event so listeners joining mid-song see the marker.

    ts: number