Whistle API
    Preparing search index...

    Function decodeClip

    • Decode audio with the recorder's optional explicit capture-duration bound.

      Parameters

      • input: Blob

        Nonempty encoded audio captured by MediaRecorder or selected as a file.

      • options: { signal?: AbortSignal } = {}

        Cancellation options shared with decodeAudio.

      • OptionalcaptureLimit: number

        Internal recording limit in seconds, validated by startRecording to be greater than zero and at most 30. Omit this for ordinary file decoding.

      Returns Promise<Float32Array<ArrayBufferLike>>

      Newly owned 16 kHz mono PCM with only an explicitly bounded capture tail discarded.

      WhistleError for decoding, duration, validation or cancellation failures.

      This low-level export supports the microphone helper. Applications should use decodeAudio for files and startRecording for capture; it is not a general clip editor.