{"_id":"@demetrio-dev/mp3-recorder","_rev":"5-5d9228f6bdb74fe595f5ae16b243f505","name":"@demetrio-dev/mp3-recorder","dist-tags":{"latest":"4.0.0"},"versions":{"3.0.0":{"name":"@demetrio-dev/mp3-recorder","version":"3.0.0","author":{"name":"Djalma Araujo","email":"djalma@close.io"},"license":"MIT","_id":"@demetrio-dev/mp3-recorder@3.0.0","maintainers":[{"name":"adventurer.dem","email":"adventurer.dem@gmail.com"}],"contributors":[{"name":"Vitor Buzinaro","email":"vitor@close.io"},{"name":"Dmitry Golikov","email":"adventurer.dem@gmail.com"}],"homepage":"https://github.com/demetrio-run/mp3-recorder#readme","bugs":{"url":"https://github.com/demetrio-run/mp3-recorder/issues"},"dist":{"shasum":"bdb88cdfdcfc5cf7ec73689d145653ae48ffd325","tarball":"https://registry.npmjs.org/@demetrio-dev/mp3-recorder/-/mp3-recorder-3.0.0.tgz","fileCount":14,"integrity":"sha512-wbOXBQFe5ajxv2UiuMxbuCFOrvLKF7x6Ze+TwjKdvaYSQMIWRUcRgB5qZ4tn93fUQP0DET9cx4f0Je4W5Dby9Q==","signatures":[{"sig":"MEQCIEtMuDabUu4vqIebcr2nL9cM5wuzKuWj2YieR9gWfHpDAiBnb8XN+23gaTX4XXyJ8PqfK/AJQZq4OhM9+lPz+htx9A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3222591},"main":"dist/index.js","babel":{"plugins":["external-helpers"],"presets":[["env",{"modules":false}]]},"gitHead":"05156b4c393dd633e68cfef953906ee90d18d3a7","scripts":{"build":"rollup -c","watch":"rollup -c -w","minify":"minify=true rollup -c"},"_npmUser":{"name":"adventurer.dem","email":"adventurer.dem@gmail.com"},"repository":{"url":"git+ssh://git@github.com/demetrio-run/mp3-recorder.git","type":"git"},"_npmVersion":"10.1.0","description":"Record your microphone audio input and get an audio/mp3 output buffer/blob.","directories":{},"_nodeVersion":"20.9.0","dependencies":{"lamejs":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^0.43.0","babel-core":"^6.25.0","rollup-watch":"^4.0.0","babel-preset-env":"^1.5.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^2.0.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","babel-plugin-external-helpers":"^6.22.0"},"peerDependencies":{"webrtc-adapter":">=4.1.1"},"_npmOperationalInternal":{"tmp":"tmp/mp3-recorder_3.0.0_1748688692320_0.18894403938026727","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"name":"@demetrio-dev/mp3-recorder","version":"3.1.0","author":{"name":"Djalma Araujo","email":"djalma@close.io"},"license":"MIT","_id":"@demetrio-dev/mp3-recorder@3.1.0","maintainers":[{"name":"adventurer.dem","email":"adventurer.dem@gmail.com"}],"contributors":[{"name":"Vitor Buzinaro","email":"vitor@close.io"},{"name":"Dmitry Golikov","email":"adventurer.dem@gmail.com"}],"homepage":"https://github.com/demetrio-run/mp3-recorder#readme","bugs":{"url":"https://github.com/demetrio-run/mp3-recorder/issues"},"dist":{"shasum":"0633b4c83354b421b8a62f252924c37761bdd6b7","tarball":"https://registry.npmjs.org/@demetrio-dev/mp3-recorder/-/mp3-recorder-3.1.0.tgz","fileCount":14,"integrity":"sha512-OJJ5StP9IO7APeO3JpVBeMfb9JIGSje7BsE5fJBgGg4x2mqW8rf/2WzqdBB5JFTwtHcah/PwCzE5sk3Ka/UwKQ==","signatures":[{"sig":"MEQCIFcMXJaeeKiKu9yeOI4vErUQDXo+Q9mT9bTa/OdrhR9fAiB4zB9ndDTfwyHPZouGwLV8LRDMOWP0nne86swhOUGx8g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2668390},"main":"dist/index.js","babel":{"plugins":["external-helpers"],"presets":[["env",{"modules":false}]]},"gitHead":"79748fd8a23ae3318a94237f3b4b083c0da78c01","scripts":{"build":"rollup -c","watch":"rollup -c -w","minify":"minify=true rollup -c"},"_npmUser":{"name":"adventurer.dem","email":"adventurer.dem@gmail.com"},"repository":{"url":"git+ssh://git@github.com/demetrio-run/mp3-recorder.git","type":"git"},"_npmVersion":"10.1.0","description":"Record your microphone audio input and get an audio/mp3 output buffer/blob.","directories":{},"_nodeVersion":"20.9.0","dependencies":{"lamejs":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^0.43.0","babel-core":"^6.25.0","rollup-watch":"^4.0.0","babel-preset-env":"^1.5.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^2.0.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","babel-plugin-external-helpers":"^6.22.0"},"peerDependencies":{"webrtc-adapter":">=4.1.1"},"_npmOperationalInternal":{"tmp":"tmp/mp3-recorder_3.1.0_1749142826911_0.7652116516869922","host":"s3://npm-registry-packages-npm-production"}},"3.1.1":{"name":"@demetrio-dev/mp3-recorder","version":"3.1.1","author":{"name":"Djalma Araujo","email":"djalma@close.io"},"license":"MIT","_id":"@demetrio-dev/mp3-recorder@3.1.1","maintainers":[{"name":"adventurer.dem","email":"adventurer.dem@gmail.com"}],"contributors":[{"name":"Vitor Buzinaro","email":"vitor@close.io"},{"name":"Dmitry Golikov","email":"adventurer.dem@gmail.com"}],"homepage":"https://github.com/demetrio-run/mp3-recorder#readme","bugs":{"url":"https://github.com/demetrio-run/mp3-recorder/issues"},"dist":{"shasum":"09becbc0da3f5e5ac0b0f947a1dc961925e587b3","tarball":"https://registry.npmjs.org/@demetrio-dev/mp3-recorder/-/mp3-recorder-3.1.1.tgz","fileCount":14,"integrity":"sha512-wXOgkS8fyiw/AAs4PVYNxB9zRekb7c4fLolTb09K4eThVJj60S7zKLURwhjXuifTeYGoH3mfeMfyLIwDx6FmgA==","signatures":[{"sig":"MEQCIDlX+KTeWXLU7hHVinYnrWpcv2tCA8oMHbpA4k4SRgTAAiB31Mf2D3Kcox6DSAE9S5Vgmy24d2aENTr1wC9GDHf7mw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2668436},"main":"dist/index.js","babel":{"plugins":["external-helpers"],"presets":[["env",{"modules":false}]]},"gitHead":"12292e0ec8f033119f795b938f9fcec2e89186ca","scripts":{"build":"rollup -c","watch":"rollup -c -w","minify":"minify=true rollup -c"},"_npmUser":{"name":"adventurer.dem","email":"adventurer.dem@gmail.com"},"repository":{"url":"git+ssh://git@github.com/demetrio-run/mp3-recorder.git","type":"git"},"_npmVersion":"10.1.0","description":"Record your microphone audio input and get an audio/mp3 output buffer/blob.","directories":{},"_nodeVersion":"20.9.0","dependencies":{"lamejs":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^0.43.0","babel-core":"^6.25.0","rollup-watch":"^4.0.0","babel-preset-env":"^1.5.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^2.0.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","babel-plugin-external-helpers":"^6.22.0"},"peerDependencies":{"webrtc-adapter":">=4.1.1"},"_npmOperationalInternal":{"tmp":"tmp/mp3-recorder_3.1.1_1749142942225_0.5702082845545153","host":"s3://npm-registry-packages-npm-production"}},"3.1.2":{"name":"@demetrio-dev/mp3-recorder","version":"3.1.2","author":{"name":"Djalma Araujo","email":"djalma@close.io"},"license":"MIT","_id":"@demetrio-dev/mp3-recorder@3.1.2","maintainers":[{"name":"adventurer.dem","email":"adventurer.dem@gmail.com"}],"contributors":[{"name":"Vitor Buzinaro","email":"vitor@close.io"},{"name":"Dmitry Golikov","email":"adventurer.dem@gmail.com"}],"homepage":"https://github.com/demetrio-run/mp3-recorder#readme","bugs":{"url":"https://github.com/demetrio-run/mp3-recorder/issues"},"dist":{"shasum":"cbce2caee1f2bf8e64b526ccc57a54ec50c21599","tarball":"https://registry.npmjs.org/@demetrio-dev/mp3-recorder/-/mp3-recorder-3.1.2.tgz","fileCount":14,"integrity":"sha512-dIlacOyOunlJYOAH7Ht822unLKbUH4qX9WmnNwTgQtR+FF/Ec5aKFLghR71sAYrHTYC/oebpxtBcDdH2ypI5FQ==","signatures":[{"sig":"MEUCIQDnJh47Dswpz09/WHZFL31LgoCLBtaQZaSdj7OR6zD4+gIgaHI9WuhDdjSwhZEZA1DV3ddAF2R0L8lLmUj5dVhOMck=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2668168},"main":"dist/index.js","babel":{"plugins":["external-helpers"],"presets":[["env",{"modules":false}]]},"gitHead":"4d936cbfec598e6e3f44428cff5b04e9edb84bc4","scripts":{"build":"rollup -c","watch":"rollup -c -w","minify":"minify=true rollup -c"},"_npmUser":{"name":"adventurer.dem","email":"adventurer.dem@gmail.com"},"repository":{"url":"git+ssh://git@github.com/demetrio-run/mp3-recorder.git","type":"git"},"_npmVersion":"10.1.0","description":"Record your microphone audio input and get an audio/mp3 output buffer/blob.","directories":{},"_nodeVersion":"20.9.0","dependencies":{"lamejs":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^0.43.0","babel-core":"^6.25.0","rollup-watch":"^4.0.0","babel-preset-env":"^1.5.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^2.0.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","babel-plugin-external-helpers":"^6.22.0"},"peerDependencies":{"webrtc-adapter":">=4.1.1"},"_npmOperationalInternal":{"tmp":"tmp/mp3-recorder_3.1.2_1749202931813_0.5364580295429637","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"@demetrio-dev/mp3-recorder","version":"4.0.0","description":"Record your microphone audio input and get an audio/mp3 output buffer/blob.","main":"dist/index.cjs.js","module":"dist/index.esm.js","browser":"dist/index.min.js","scripts":{"build":"rollup -c","minify":"minify=true rollup -c","watch":"rollup -c -w"},"repository":{"type":"git","url":"git+ssh://git@github.com/demetrio-run/mp3-recorder.git"},"author":{"name":"Djalma Araujo","email":"djalma@close.io"},"contributors":[{"name":"Vitor Buzinaro","email":"vitor@close.io"},{"name":"Dmitry Golikov","email":"adventurer.dem@gmail.com"}],"license":"MIT","devDependencies":{"@babel/core":"^7.28.3","@babel/plugin-external-helpers":"^7.27.1","@babel/plugin-transform-runtime":"^7.28.3","@babel/preset-env":"^7.28.3","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-commonjs":"^28.0.6","@rollup/plugin-node-resolve":"^16.0.1","@rollup/plugin-terser":"^0.4.4","rollup":"^4.46.4"},"babel":{"presets":[["@babel/preset-env"]],"plugins":["@babel/plugin-external-helpers"]},"dependencies":{"@babel/runtime":"^7.28.3","lamejs":"^1.2.0"},"peerDependencies":{"webrtc-adapter":">=4.1.1"},"_id":"@demetrio-dev/mp3-recorder@4.0.0","gitHead":"0c9134c7c6658b7244129bb1b4ae451b56d3f374","bugs":{"url":"https://github.com/demetrio-run/mp3-recorder/issues"},"homepage":"https://github.com/demetrio-run/mp3-recorder#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-HY5FfPZ5l7t9kRkplDYCe6FV/58vUr2vkaotGVGlA48VSbYikaBXKetw2UfQWM7S5hjKsNBVD6QMkxwsos9+YA==","shasum":"ecc770e3e4ad4462949e9d8be4337c9f4c259b8d","tarball":"https://registry.npmjs.org/@demetrio-dev/mp3-recorder/-/mp3-recorder-4.0.0.tgz","fileCount":14,"unpackedSize":1339885,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFoa/YRyY69B38sLdEZwG2jwj4lniHDHLwgSvwH0yhcsAiEA+fELIeKS0HmW9+24j+cS7Z3vKgfgT2qrTSFJ48uuSps="}]},"_npmUser":{"name":"adventurer.dem","email":"adventurer.dem@gmail.com"},"directories":{},"maintainers":[{"name":"adventurer.dem","email":"adventurer.dem@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mp3-recorder_4.0.0_1756226392371_0.9536280963765218"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-31T10:51:32.245Z","modified":"2025-08-26T16:39:52.826Z","3.0.0":"2025-05-31T10:51:32.573Z","3.1.0":"2025-06-05T17:00:27.167Z","3.1.1":"2025-06-05T17:02:22.504Z","3.1.2":"2025-06-06T09:42:12.061Z","4.0.0":"2025-08-26T16:39:52.625Z"},"bugs":{"url":"https://github.com/demetrio-run/mp3-recorder/issues"},"author":{"name":"Djalma Araujo","email":"djalma@close.io"},"license":"MIT","homepage":"https://github.com/demetrio-run/mp3-recorder#readme","repository":{"type":"git","url":"git+ssh://git@github.com/demetrio-run/mp3-recorder.git"},"description":"Record your microphone audio input and get an audio/mp3 output buffer/blob.","contributors":[{"name":"Vitor Buzinaro","email":"vitor@close.io"},{"name":"Dmitry Golikov","email":"adventurer.dem@gmail.com"}],"maintainers":[{"name":"adventurer.dem","email":"adventurer.dem@gmail.com"}],"readme":"# Microphone Recorder to Mp3\n\nRecord your microphone audio input and get an ```audio/mp3``` file in the end.\n\n# Install\n\n## Yarn\n\n```bash\nyarn add @demetrio-run/mp3-recorder\n```\n\n## npm\n\n```bash\nnpm install @demetrio-run/mp3-recorder\n```\n\n# Development\n\n- Watch for changes:\n\n```bash\nnpm run watch\n```\n\n- Regular build:\n\n```bash\nnpm run build\n```\n\n# How to use\n\n```js\nconst MicRecorder = require('@demetrio-run/mp3-recorder');\n\n// New instance\nconst recorder = new MicRecorder({\n  bitRate: 128\n});\n\n// Start recording. Browser will request permission to use your microphone.\nrecorder.start().then(() => {\n  // something else\n}).catch((e) => {\n  console.error(e);\n});\n\n// Once you are done singing your best song, stop and get the mp3.\nrecorder\n.stop()\n.getMp3().then(([buffer, blob]) => {\n  // do what ever you want with buffer and blob\n  // Example: Create a mp3 file and play\n  const file = new File(buffer, 'me-at-thevoice.mp3', {\n    type: blob.type,\n    lastModified: Date.now()\n  });\n\n  const player = new Audio(URL.createObjectURL(file));\n  player.play();\n\n}).catch((e) => {\n  alert('We could not retrieve your message');\n  console.log(e);\n});\n```\n\n- Check the [samples](https://github.com/closeio/mic-recorder-to-mp3/tree/master/samples) folder for more examples.\n\n- [Live example on jsfiddle](https://jsfiddle.net/8u5fbpx6/1/)\n\n## Lamejs Notice\n\nThis library uses lamejs as a direct dependency. We build our releases with [lamejs](https://github.com/zhuker/lamejs/) built-in, so you don't need to add another dependency.\n\nThanks to **@zhuker** for writing the lamejs library.\n\n# License\n\nMIT\n","readmeFilename":"README.md"}