VideoUltra API
    Preparing search index...

    Interface TranscribeRequest

    What the editor hands a transcriber.

    interface TranscribeRequest {
        audio: AsyncIterable<Float32Array<ArrayBufferLike>>;
        duration: number;
        language: string;
        onProgress?: (progress: TranscribeProgress) => void;
        signal: AbortSignal;
        vocabulary?: readonly string[];
    }
    Index
    audio: AsyncIterable<Float32Array<ArrayBufferLike>>

    The sound, as 16 kHz mono PCM in order, in pieces of at most 30 s (so memory stays flat on long videos). Pieces follow each other with no gap.

    duration: number

    Length of the whole sound in seconds (for progress).

    language: string

    Spoken language as an ISO 639-1 code ('en', …), 'hi-Latn' for Hinglish (Hindi written in Latin letters), or 'auto' to detect it (one of languages).

    onProgress?: (progress: TranscribeProgress) => void
    signal: AbortSignal

    Cancels the transcription; the promise then rejects with an AbortError.

    vocabulary?: readonly string[]

    Names and words that may be said (people, brands, places), so they're spelled right — for transcribers with takesVocabulary. Optional.