{"versions":{"1.0.5":{"name":"benz-recorderjs","version":"1.0.5","description":"Record audio from a node in the Web Audio API","main":"recorder.build.js","types":"recorder.d.ts","scripts":{"build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/BenzLeung/Recorderjs.git"},"keywords":["web-audio-api","record"],"author":{"name":"Jamison Dance","email":"jergason@gmail.com","url":"http://jamisondance.com"},"license":"MIT","bugs":{"url":"https://github.com/BenzLeung/Recorderjs/issues"},"homepage":"https://github.com/BenzLeung/Recorderjs","devDependencies":{"rollup":"^0.62.0","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-uglify":"^4.0.0"},"gitHead":"f48fb5b7a1611f97f481376806c9534be99c91cc","_id":"benz-recorderjs@1.0.5","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"anonymous","email":"lwbin3795@gmail.com"},"dist":{"shasum":"5cb2683413d3d5fcda8c44773ffaca161186619f","size":7902,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/benz-recorderjs/-/benz-recorderjs-1.0.5.tgz"},"maintainers":[{"name":"anonymous","email":"lwbin3795@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/benz-recorderjs_1.0.5_1531983859957_0.8601467846524369"},"_hasShrinkwrap":false,"publish_time":1531983860012,"_cnpm_publish_time":1531983860012,"contributors":[]},"1.0.4":{"name":"benz-recorderjs","version":"1.0.4","description":"Record audio from a node in the Web Audio API","main":"recorder.build.js","types":"recorder.d.ts","scripts":{"build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/BenzLeung/Recorderjs.git"},"keywords":["web-audio-api","record"],"author":{"name":"Jamison Dance","email":"jergason@gmail.com","url":"http://jamisondance.com"},"license":"MIT","bugs":{"url":"https://github.com/BenzLeung/Recorderjs/issues"},"homepage":"https://github.com/BenzLeung/Recorderjs","devDependencies":{"rollup":"^0.62.0","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-uglify":"^4.0.0"},"gitHead":"d6d9d9e45862096438276895cf1bc024a5df81b7","_id":"benz-recorderjs@1.0.4","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"anonymous","email":"lwbin3795@gmail.com"},"dist":{"shasum":"37f1f14f00d2329c59e5197733264ec49abf4384","size":7883,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/benz-recorderjs/-/benz-recorderjs-1.0.4.tgz"},"maintainers":[{"name":"anonymous","email":"lwbin3795@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/benz-recorderjs_1.0.4_1531740650649_0.051508939571407675"},"_hasShrinkwrap":false,"publish_time":1531740650734,"_cnpm_publish_time":1531740650734,"contributors":[]},"1.0.3":{"name":"benz-recorderjs","version":"1.0.3","description":"Record audio from a node in the Web Audio API","main":"recorder.build.js","types":"recorder.d.ts","scripts":{"build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/BenzLeung/Recorderjs.git"},"keywords":["web-audio-api","record","browserify"],"author":{"name":"Jamison Dance","email":"jergason@gmail.com","url":"http://jamisondance.com"},"license":"MIT","bugs":{"url":"https://github.com/BenzLeung/Recorderjs/issues"},"homepage":"https://github.com/BenzLeung/Recorderjs","devDependencies":{"rollup":"^0.62.0","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-uglify":"^4.0.0"},"gitHead":"79f6bef11ec85c04abe066ee0deda36ad7b5c8f2","_id":"benz-recorderjs@1.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"anonymous","email":"lwbin3795@gmail.com"},"dist":{"shasum":"9ad51b8de825d5ff714bddb82978e0afeef304f3","size":7811,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/benz-recorderjs/-/benz-recorderjs-1.0.3.tgz"},"maintainers":[{"name":"anonymous","email":"lwbin3795@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/benz-recorderjs_1.0.3_1531726796088_0.19046752841100312"},"_hasShrinkwrap":false,"publish_time":1531726796146,"_cnpm_publish_time":1531726796146,"contributors":[]},"1.0.2":{"name":"benz-recorderjs","version":"1.0.2","description":"Record audio from a node in the Web Audio API","main":"recorder.build.js","types":"recorder.d.ts","scripts":{"build":"browserify \"./recorder.js\" -g workerify -s Recorder > recorder.build.js"},"browserify":{"transform":"workerify"},"repository":{"type":"git","url":"git+https://github.com/BenzLeung/Recorderjs.git"},"keywords":["web-audio-api","record","browserify"],"author":{"name":"Jamison Dance","email":"jergason@gmail.com","url":"http://jamisondance.com"},"license":"MIT","bugs":{"url":"https://github.com/BenzLeung/Recorderjs/issues"},"homepage":"https://github.com/BenzLeung/Recorderjs","devDependencies":{"browserify":"^16.2.2","workerify":"^1.1.0"},"gitHead":"efeadd900a231d416d7b51eecdd99f768212e75f","_id":"benz-recorderjs@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"anonymous","email":"lwbin3795@gmail.com"},"dist":{"shasum":"236598ab6163942d17a7766582853c01ba788126","size":6594,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/benz-recorderjs/-/benz-recorderjs-1.0.2.tgz"},"maintainers":[{"name":"anonymous","email":"lwbin3795@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/benz-recorderjs_1.0.2_1531394849074_0.36471705526266507"},"_hasShrinkwrap":false,"publish_time":1531394849155,"_cnpm_publish_time":1531394849155,"contributors":[]},"1.0.1":{"name":"benz-recorderjs","version":"1.0.1","description":"Record audio from a node in the Web Audio API","main":"recorder.build.js","scripts":{"build":"browserify \"./recorder.js\" -g workerify -s Recorder > recorder.build.js"},"browserify":{"transform":"workerify"},"repository":{"type":"git","url":"git+https://github.com/BenzLeung/Recorderjs.git"},"keywords":["web-audio-api","record","browserify"],"author":{"name":"Jamison Dance","email":"jergason@gmail.com","url":"http://jamisondance.com"},"license":"MIT","bugs":{"url":"https://github.com/BenzLeung/Recorderjs/issues"},"homepage":"https://github.com/BenzLeung/Recorderjs","devDependencies":{"browserify":"^16.2.2","workerify":"^1.1.0"},"gitHead":"efeadd900a231d416d7b51eecdd99f768212e75f","_id":"benz-recorderjs@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"anonymous","email":"lwbin3795@gmail.com"},"dist":{"shasum":"3bd4a1ce27df7f04da940f2af67981b946e46d98","size":6441,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/benz-recorderjs/-/benz-recorderjs-1.0.1.tgz"},"maintainers":[{"name":"anonymous","email":"lwbin3795@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/benz-recorderjs_1.0.1_1531394467089_0.3751950679105911"},"_hasShrinkwrap":false,"publish_time":1531394475298,"_cnpm_publish_time":1531394475298,"contributors":[]}},"dist-tags":{"latest":"1.0.5"},"name":"benz-recorderjs","time":{"modified":"2023-05-12T18:04:59.415Z","created":"2022-01-26T19:14:26.816Z","1.0.5":"2018-07-19T07:04:20.012Z","1.0.4":"2018-07-16T11:30:50.734Z","1.0.3":"2018-07-16T07:39:56.146Z","1.0.2":"2018-07-12T11:27:29.155Z","1.0.1":"2018-07-12T11:21:15.298Z"},"readme":"# Recorder.js\r\n\r\n## A module for recording/exporting the output of Web Audio API nodes\r\n\r\n##Installation\r\n\r\nInstall with npm, consume with [browserify](https://github.com/substack/node-browserify).\r\n\r\nIt uses [workerify](https://github.com/shama/workerify) to inline the WebWorker\r\nso things remain modular.\r\n\r\n\r\n```bash\r\nnpm install recorderjs\r\n```\r\n\r\n\r\n### Syntax\r\n#### Constructor\r\n    var rec = new Recorder(source [, config])\r\n\r\nCreates a recorder instance.\r\n\r\n- **source** - The node whose output you wish to capture\r\n- **config** - (*optional*) A configuration object (see **config** section below)\r\n\r\n---------\r\n#### Config\r\n\r\n- **workerPath** - Path to recorder.js worker script. Defaults to 'js/recorderjs/recorderWorker.js'\r\n- **bufferLen** - The length of the buffer that the internal JavaScriptNode uses to capture the audio. Can be tweaked if experiencing performance issues. Defaults to 4096.\r\n- **callback** - A default callback to be used with `exportWAV`.\r\n- **type** - The type of the Blob generated by `exportWAV`. Defaults to 'audio/wav'.\r\n\r\n---------\r\n#### Instance Methods\r\n\r\n    rec.record()\r\n    rec.stop()\r\n\r\nPretty self-explanatory... **record** will begin capturing audio and **stop** will cease capturing audio. Subsequent calls to **record** will add to the current recording.\r\n\r\n    rec.clear()\r\n\r\nThis will clear the recording.\r\n\r\n    rec.exportWAV([callback][, type])\r\n\r\nThis will generate a Blob object containing the recording in WAV format. The callback will be called with the Blob as its sole argument. If a callback is not specified, the default callback (as defined in the config) will be used. If no default has been set, an error will be thrown.\r\n\r\nIn addition, you may specify the type of Blob to be returned (defaults to 'audio/wav').\r\n\r\n    rec.getBuffer([callback])\r\n\r\nThis will pass the recorded stereo buffer (as an array of two Float32Arrays, for the separate left and right channels) to the callback. It can be played back by creating a new source buffer and setting these buffers as the separate channel data:\r\n\r\n  function getBufferCallback( buffers ) {\r\n    var newSource = audioContext.createBufferSource();\r\n    var newBuffer = audioContext.createBuffer( 2, buffers[0].length, audioContext.sampleRate );\r\n    newBuffer.getChannelData(0).set(buffers[0]);\r\n    newBuffer.getChannelData(1).set(buffers[1]);\r\n    newSource.buffer = newBuffer;\r\n\r\n    newSource.connect( audioContext.destination );\r\n    newSource.start(0);\r\n  }\r\n\r\nThis sample code will play back the stereo buffer.\r\n\r\n\r\n    rec.configure(config)\r\n\r\nThis will set the configuration for Recorder by passing in a config object.\r\n\r\n#### Utility Methods (static)\r\n\r\n    Recorder.forceDownload(blob[, filename])\r\n\r\nThis method will force a download using the new anchor link *download* attribute. Filename defaults to 'output.wav'.\r\n\r\n## License (MIT)\r\n\r\nCopyright © 2013 Matt Diamond\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","users":{}}