Whistle API
    Preparing search index...

    Handle for one recording. Always observe result, including its cancellation rejection.

    interface Recording {
        result: Promise<Float32Array<ArrayBufferLike>>;
        cancel(): void;
        stop(): Promise<Float32Array<ArrayBufferLike>>;
    }
    Index
    • Stop capture and return the same promise as result; repeated calls are idempotent.

      Returns Promise<Float32Array<ArrayBufferLike>>

    result: Promise<Float32Array<ArrayBufferLike>>

    Resolves after manual/automatic stop and decoding, or rejects on cancellation/capture failure.