• Creates a WAV PCM header with the given audio parameters. It works in both Node.js and browser environments

    Parameters

    • size: number

      Size of the audio data in bytes

    • params: AudioPcmParams

      Audio parameters for header generation

    Returns Buffer | Uint8Array

    Buffer in Node.js or Uint8Array in browser containing WAV header