{"_id":"24-audio","_rev":"4-cc14c0da2b1a7c66689e0c1122f1b6a1","name":"24-audio","description":"Record your microphone audio input and get an audio/mp3 ouput buffer/blob.","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"24-audio","version":"1.0.0","description":"Record your microphone audio input and get an audio/mp3 ouput buffer/blob.","main":"dist/index.js","scripts":{"build":"rollup -c","minify":"minify=true rollup -c","watch":"rollup -c -w"},"repository":{"type":"git","url":"git+ssh://git@github.com/th720309/24-audio.git"},"author":{"name":"tianhao"},"contributors":[{"name":"Vitor Buzinaro","email":"vitor@close.io"}],"license":"MIT","devDependencies":{"babel-core":"^6.25.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.5.2","rollup":"^0.43.0","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","rollup-watch":"^4.0.0"},"babel":{"presets":[["env",{"modules":false}]],"plugins":["external-helpers"]},"dependencies":{"lamejs":"^1.2.0"},"peerDependencies":{"webrtc-adapter":"^4.1.1"},"bugs":{"url":"https://github.com/th720309/24-audio/issues"},"homepage":"https://github.com/th720309/24-audio#readme","_id":"24-audio@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"tianhao-nicholas","email":"646595546@qq.com"},"dist":{"integrity":"sha512-EdtSRRdPwbTxFkQeHdTFhMGo5zyQZPFZMRUu/20Guy2lnIgithki1CF6eA6Bm1DwD8Bq7+76blzjOmm0BvZEyg==","shasum":"431598d62711ccd36561ccac250f8e4d68834be6","tarball":"https://registry.npmjs.org/24-audio/-/24-audio-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCpJ6CJn+N/mPc9wChK93ca3AmaYQdYukdwLSha6uw7QIgccfE2fdVm8KIEn2f3T6PZf6y1OwVvStg0LOVUhDhq5M="}]},"maintainers":[{"name":"tianhao-nicholas","email":"646595546@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/24-audio-1.0.0.tgz_1515998959701_0.13724511698819697"}},"1.0.1":{"name":"24-audio","version":"1.0.1","description":"Record your microphone audio input and get an audio/mp3 ouput buffer/blob.","main":"dist/index.js","scripts":{"build":"rollup -c","minify":"minify=true rollup -c","watch":"rollup -c -w"},"repository":{"type":"git","url":"git+ssh://git@github.com/th720309/24-audio.git"},"author":{"name":"tianhao"},"contributors":[{"name":"Vitor Buzinaro","email":"vitor@close.io"}],"license":"MIT","devDependencies":{"babel-core":"^6.25.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.5.2","rollup":"^0.43.0","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","rollup-watch":"^4.0.0"},"babel":{"presets":[["env",{"modules":false}]],"plugins":["external-helpers"]},"dependencies":{"lamejs":"^1.2.0"},"peerDependencies":{"webrtc-adapter":"^4.1.1"},"bugs":{"url":"https://github.com/th720309/24-audio/issues"},"homepage":"https://github.com/th720309/24-audio#readme","_id":"24-audio@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"tianhao-nicholas","email":"646595546@qq.com"},"dist":{"integrity":"sha512-hLyqBWaKUkE4sJvR3oNqC/l+6Vtnot1hejDIkNKebBbhowDkHK1yFaT5n7M7SJ5kLnCwpnj9DcC4n9IK++HRxQ==","shasum":"18b520fd451c4935ee14b8ed34876d4de0a635a6","tarball":"https://registry.npmjs.org/24-audio/-/24-audio-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE4V/PhP7H42QOnfg9fbewnWug1OiU/zYStXP0+P99kZAiBLaGt9gqr9Gt3SEKteVhWZ42CAG8iYmwpZhb2zCtB7tw=="}]},"maintainers":[{"name":"tianhao-nicholas","email":"646595546@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/24-audio-1.0.1.tgz_1516000521887_0.9890555532183498"}},"1.0.2":{"name":"24-audio","version":"1.0.2","description":"Record your microphone audio input and get an audio/mp3 ouput buffer/blob.","main":"dist/index.js","scripts":{"build":"rollup -c","minify":"minify=true rollup -c","watch":"rollup -c -w"},"repository":{"type":"git","url":"git+ssh://git@github.com/th720309/24-audio.git"},"author":{"name":"tianhao"},"contributors":[{"name":"Vitor Buzinaro","email":"vitor@close.io"}],"license":"MIT","devDependencies":{"babel-core":"^6.25.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.5.2","rollup":"^0.43.0","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","rollup-watch":"^4.0.0"},"babel":{"presets":[["env",{"modules":false}]],"plugins":["external-helpers"]},"dependencies":{"lamejs":"^1.2.0"},"peerDependencies":{"webrtc-adapter":"^4.1.1"},"bugs":{"url":"https://github.com/th720309/24-audio/issues"},"homepage":"https://github.com/th720309/24-audio#readme","_id":"24-audio@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"tianhao-nicholas","email":"646595546@qq.com"},"dist":{"integrity":"sha512-5IvCLZnbgBNZ0/f6p8dpcFBSVAeuVKENro8VL7jG+LOijPzvdIlel9nSIXwu2XrBGhQol5tBF4Odkd/E23/EwQ==","shasum":"f5e9c01842f165052094dd38eab724ecb2cba806","tarball":"https://registry.npmjs.org/24-audio/-/24-audio-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwPHeAJzz29jjCW2ubH4GZgFTEw9NoGkTClqmpiPlimgIgFGp9BIr9pN7QGl6IvLyyfClNNSdIo2/oGrgIHBde1yg="}]},"maintainers":[{"name":"tianhao-nicholas","email":"646595546@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/24-audio-1.0.2.tgz_1516074304958_0.5102433043066412"}},"1.0.3":{"name":"24-audio","version":"1.0.3","description":"Record your microphone audio input and get an audio/mp3 ouput buffer/blob.","main":"dist/index.js","scripts":{"build":"rollup -c","minify":"minify=true rollup -c","watch":"rollup -c -w"},"repository":{"type":"git","url":"git+ssh://git@github.com/th720309/24-audio.git"},"author":{"name":"tianhao"},"contributors":[{"name":"Vitor Buzinaro","email":"vitor@close.io"}],"license":"MIT","devDependencies":{"babel-core":"^6.25.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.5.2","rollup":"^0.43.0","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","rollup-watch":"^4.0.0"},"babel":{"presets":[["env",{"modules":false}]],"plugins":["external-helpers"]},"dependencies":{"lamejs":"^1.2.0"},"peerDependencies":{"webrtc-adapter":"^4.1.1"},"bugs":{"url":"https://github.com/th720309/24-audio/issues"},"homepage":"https://github.com/th720309/24-audio#readme","_id":"24-audio@1.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"tianhao-nicholas","email":"646595546@qq.com"},"dist":{"integrity":"sha512-QAcx2KPByewzX+XcFHmL/24tE3waAXthujHGxfUQKx8vKBfj4tRP0ocysy6Lti6V2lLAPA0y9FmdJnULR6dxlQ==","shasum":"662adb2d7ab109101d0fec4b64eea6300b2a45c4","tarball":"https://registry.npmjs.org/24-audio/-/24-audio-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEcHfkfqFQ6JVLJW4Zbq7Ib3TEC2bLI+doQ+GvfDO6HgAiBT1BkMqwvv3vgkbolUf+ojBpRgOesDdZaSMqUAheLsLg=="}]},"maintainers":[{"name":"tianhao-nicholas","email":"646595546@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/24-audio-1.0.3.tgz_1516074686524_0.86784499255009"}}},"readme":"# 24-audio\n\nRecord your microphone audio input and get an ```audio/mp3``` file in the end.\nThis project is supplementary to the mic-recorder-to-mp3 .\n(Fix compatibility issues with safri browsers.)\n\n# Install\n\n\n## npm\n\n```bash\nnpm install 24-audio\n```\n\n\n# How to use\n\n```js\nconst MicRecorder = require('24-audio');\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\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\nThis project is supplementary to the [mic-recorder-to-mp3](https://github.com/closeio/mic-recorder-to-mp3)\n\n# License\n\nMIT\n\n\n","maintainers":[{"name":"tianhao-nicholas","email":"646595546@qq.com"}],"time":{"modified":"2022-04-04T10:18:22.382Z","created":"2018-01-15T06:49:19.904Z","1.0.0":"2018-01-15T06:49:19.904Z","1.0.1":"2018-01-15T07:15:22.108Z","1.0.2":"2018-01-16T03:45:05.403Z","1.0.3":"2018-01-16T03:51:26.729Z"},"homepage":"https://github.com/th720309/24-audio#readme","repository":{"type":"git","url":"git+ssh://git@github.com/th720309/24-audio.git"},"contributors":[{"name":"Vitor Buzinaro","email":"vitor@close.io"}],"author":{"name":"tianhao"},"bugs":{"url":"https://github.com/th720309/24-audio/issues"},"license":"MIT","readmeFilename":"README.md"}