convertBufferToWav
It is a helper converting audio buffer in to wav format
Install
$ npm install --save @bigear/convertBufferToWav
Usage
; const buffer = thisbufferSourceNode// console.log(buffer.getChannelData(1))// AudioBufferSourceNode ...// buffer : AudioBuffer ...// channelCount: 2// channelCountMode: "max"// channelInterpretation: "speakers"// context: AudioContext ...// currentTime: 10.518639455782314, sampleRate: 44100, ...// detune: AudioParam ...// loop: false const dataview = const audioBlob = dataview type: 'audio/wav'