A tiny library for converting browser's audio to WAV/PCM
zero dependency
uses browser's api MediaDevices.getUserMedia()
usage
npm install microphone-js
const mic = ;// const mic = Microphone({ isMono: true, sampleRate: 16000 }); if you yant mono 16KHz, default is stereo 44kHz micstart; mic; // continue recordingmicstart; const blob = mic; mic; // reset recording buffermic;