Skip to content

edwardgalligan/encodeWAV

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

encode-wav

NPM

encode WAV files from audio buffers

adapted from https://github.com/mattdiamond/Recorderjs

api

encodeWAV: takes an array of leftBuffer data and rightBuffer data, the buffer's samplerate, and a callback to execute when finished processing.

that is it.

Example Usage

var encoder = require('encode-wav');

encoder.encodeWAV([buffer.getChannelData(0), buffer.getChannelData(1)],
                  buffer.sampleRate,
                  function(blob) {
                    console.log('wav encoding complete: ', blob );
                    if (blob) {
                      window.location = URL.createObjectURL(blob);
                    }
                  })

About

encode wav fileblobs from web audio data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%