/wav-arraybuffer

Create WAV from PCM audio data

Primary LanguageJavaScript

WAV(data[, options])

  • data <ArrayBuffer> | <Buffer> PCM audio data
  • options <Object> optional, format settings

options properties are:

  • sampleRate: set audio sample rate (default is 44100)
  • bitDepth: set audio bit depth (default is 32)
  • channels: set channel count (1=mono, 2=stereo, default is 2)

Convert raw PCM audio data to WAV audio buffer, returns ArrayBuffer.