microphone-recorder
It is a lib for sound recording on HTML, implemented by audioContext and webWorker
[![NPM Version][npm-image]][npm-url]
[![Linux Build][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
Install
$ npm install --save @bigear/microphone-recorder
Usage
import {Recorder} from "@bigear/microphone-recorder";
const recorder = new Recorder(input);
recorder && recorder.record();
recorder.stop();
recorder.exportWAV("audio/wav", function(blob) {
const url = URL.createObjectURL(AudioBLOB);
const au = document.querySelector("audio");
au.controls = true;
au.src = url;
recorder.clear();
});