VideoUltra API
    Preparing search index...

    Interface SpeechDetector

    Finds where people speak (as opposed to music or noise), on the device.

    interface SpeechDetector {
        close(): void;
        detect(sound: Float32Array): Promise<Uint8Array<ArrayBufferLike>>;
    }
    Index
    • Closes its worker (its memory goes back); the next detect starts a new one.

      Returns void

    • One byte per 20 ms of 16 kHz mono sound: 1 = speech.

      Parameters

      • sound: Float32Array

      Returns Promise<Uint8Array<ArrayBufferLike>>