Microphone Stream Recorder to Mp3
This is a fork of https://github.com/closeio/mic-recorder-to-mp3
Record your microphone media stream object audio input and get an audio/mp3
file in the end.
Install
Yarn
yarn add stream-recorder-to-mp3
npm
npm install stream-recorder-to-mp3
Development
- Watch for changes:
npm run watch
- Regular build:
npm run build
How to use
const StreamRecorder = ; // New instanceconst recorder = bitRate: 128 stream: myMediaStreamObject; // Start recording. Browser will request permission to use your microphone.recorder start ; // Once you are done singing your best song, stop and get the mp3.recorder ;
Lamejs Notice
This library uses lamejs as a direct dependency. We build our releases with lamejs built-in, so you don't need to add another dependency.
Thanks to @zhuker for writing the lamejs library.
License
MIT