Microphone Recorder to Mp3
Record your microphone audio input and get an
audio/mp3 file in the end.
yarn add mic-recorder-to-mp3
npm install mic-recorder-to-mp3
You can add via CDN using the address: https://email@example.com. You can find the minified version in the same address, ex: https://firstname.lastname@example.org/dist/index.min.js
About the version in URL: Change the URL version to any of our releases, or use https://unpkg.com/mic-recorder-to-mp3 to automatically use the latest version.
- Watch for changes:
npm run watch
- Regular build:
npm run build
How to use
const MicRecorder = ;// New instanceconst recorder =bitRate: 128;// Start recording. Browser will request permission to use your microphone.recorderstart;// Once you are done singing your best song, stop and get the mp3.recorder;
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.