bufferToWav

Encodes an existing AudioBuffer as a WAV blob. Useful when you already have a buffer from another source and need to export it.

import { bufferToWav } from "@web-kits/audio";

const blob = bufferToWav(buffer);

Signature

function bufferToWav(buffer: AudioBuffer): Blob;

The output is a standard 16-bit PCM WAV file.