{"_id":"@ennuicastr/webrtcaec3.js","_rev":"5-57394f9ea754a91dc6948c276b2308ce","name":"@ennuicastr/webrtcaec3.js","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@ennuicastr/webrtcaec3.js","version":"0.1.0","description":"Port of WebRTC's AEC3 (acoustic echo canceller, version 3) library to WebAssembly/JavaScript","main":"dist/webrtcaec3-0.1.0.js","types":"dist/webrtcaec3.types.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ennuicastr/webrtcaec3.js.git"},"keywords":["audio","echo","cancellation","echo","cancellation","echo","suppression","suppression","webrtc"],"author":{"name":"Yahweasel"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/ennuicastr/webrtcaec3.js/issues"},"homepage":"https://github.com/ennuicastr/webrtcaec3.js#readme","devDependencies":{"uglify-js":"^3.17.4"},"gitHead":"aa9ccafd24c1a96a1e28d582a6285df8df5e24ed","_id":"@ennuicastr/webrtcaec3.js@0.1.0","_nodeVersion":"18.13.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-wndgezScywb8d+wITV1T5QDyIVZL+gJDqQjfqMj62j63EULsiTOLHBrAvdvxz2dpt/lK1YRR49T1OSWWjXcMcw==","shasum":"6a57fc73a409a5fbbb75e40601722284afe3d815","tarball":"https://registry.npmjs.org/@ennuicastr/webrtcaec3.js/-/webrtcaec3.js-0.1.0.tgz","fileCount":9,"unpackedSize":1005861,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXYAfdlSPMOwV0+lEKDds8lWf3BFsd91ea3sW7KdaKUgIhALfvG3JnW8SUnZeeWtLCFcmocNulSXMVkKtCsjOCiOMX"}]},"_npmUser":{"name":"yahweasel","email":"npm-crm@yahweasel.com"},"directories":{},"maintainers":[{"name":"yahweasel","email":"npm-crm@yahweasel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webrtcaec3.js_0.1.0_1703713567664_0.13468530573568338"},"_hasShrinkwrap":false},"0.1.1":{"name":"@ennuicastr/webrtcaec3.js","//version":"When changing the version, make sure you update it below (version, main), in Makefile, and in the demo.","version":"0.1.1","description":"Port of WebRTC's AEC3 (acoustic echo canceller, version 3) library to WebAssembly/JavaScript","main":"dist/webrtcaec3-0.1.1.js","types":"dist/webrtcaec3.types.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ennuicastr/webrtcaec3.js.git"},"keywords":["audio","echo","cancellation","echo","cancellation","echo","suppression","suppression","webrtc"],"author":{"name":"Yahweasel"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/ennuicastr/webrtcaec3.js/issues"},"homepage":"https://github.com/ennuicastr/webrtcaec3.js#readme","devDependencies":{"uglify-js":"^3.17.4"},"gitHead":"511a003890c19db3b6a48c3cbbd977142bb319f9","_id":"@ennuicastr/webrtcaec3.js@0.1.1","_nodeVersion":"18.13.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-1ArNsWVxkIFw7izdE+F6kJXNgrLcisoVoLJx5Ft8XZGcLGwn3UDAQ8fpnZGYlnReku4rtL1Mx0WfVvsOq1Bvgw==","shasum":"62ef6560e7d4d803d0ee67d447f9c8b9a8c53afd","tarball":"https://registry.npmjs.org/@ennuicastr/webrtcaec3.js/-/webrtcaec3.js-0.1.1.tgz","fileCount":9,"unpackedSize":818538,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEoq/on43b3BeIdQ9D/RVc5naORFQ4QQ7i8DxEB9WA+mAiEAjEW5OtTTOVur38CkbelfmfhJbPhEODZqMaTOvvbLcoc="}]},"_npmUser":{"name":"yahweasel","email":"npm-crm@yahweasel.com"},"directories":{},"maintainers":[{"name":"yahweasel","email":"npm-crm@yahweasel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webrtcaec3.js_0.1.1_1703779675754_0.04936553590499826"},"_hasShrinkwrap":false},"0.1.2":{"name":"@ennuicastr/webrtcaec3.js","//version":"When changing the version, make sure you update it below (version, main), in Makefile, and in the demo.","version":"0.1.2","description":"Port of WebRTC's AEC3 (acoustic echo canceller, version 3) library to WebAssembly/JavaScript","main":"dist/webrtcaec3-0.1.2.js","types":"dist/webrtcaec3.types.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ennuicastr/webrtcaec3.js.git"},"keywords":["audio","echo","cancellation","echo","cancellation","echo","suppression","suppression","webrtc"],"author":{"name":"Yahweasel"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/ennuicastr/webrtcaec3.js/issues"},"homepage":"https://github.com/ennuicastr/webrtcaec3.js#readme","devDependencies":{"uglify-js":"^3.17.4"},"gitHead":"6fff687bae11894461fcb86a0c1fccf36bceae18","_id":"@ennuicastr/webrtcaec3.js@0.1.2","_nodeVersion":"18.13.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-U8vFfWXKK+8uKaAefcxgkUpD7vUpJ1mOgbHjy3zeFSFlJPHTnNNzZ7q+RLMvZ5nevht01CNbQAI1+C7MgJ3pcg==","shasum":"ee32603afd1bf61762f026be7955ce8450445435","tarball":"https://registry.npmjs.org/@ennuicastr/webrtcaec3.js/-/webrtcaec3.js-0.1.2.tgz","fileCount":9,"unpackedSize":818599,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7pk8qrcaEf06VP7nEYrgqM8pICHAy2aZR/dw+mObA0AiAL57hxL0dmiXm8tu3jULhLQGtp8bi7/LmBleLW6ehJAQ=="}]},"_npmUser":{"name":"yahweasel","email":"npm-crm@yahweasel.com"},"directories":{},"maintainers":[{"name":"yahweasel","email":"npm-crm@yahweasel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webrtcaec3.js_0.1.2_1703799416646_0.2095619434765652"},"_hasShrinkwrap":false},"0.2.0":{"name":"@ennuicastr/webrtcaec3.js","//version":"When changing the version, make sure you update it below (version, main), in Makefile, and in the demo.","version":"0.2.0","description":"Port of WebRTC's AEC3 (acoustic echo canceller, version 3) library to WebAssembly/JavaScript","main":"dist/webrtcaec3-0.2.0.js","types":"dist/webrtcaec3.types.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ennuicastr/webrtcaec3.js.git"},"keywords":["audio","echo","cancellation","echo","cancellation","echo","suppression","suppression","webrtc"],"author":{"name":"Yahweasel"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/ennuicastr/webrtcaec3.js/issues"},"homepage":"https://github.com/ennuicastr/webrtcaec3.js#readme","devDependencies":{"uglify-js":"^3.17.4"},"gitHead":"066f936c7bec8c3337de76583ce07f1387020aaa","_id":"@ennuicastr/webrtcaec3.js@0.2.0","_nodeVersion":"18.19.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-3LLcNybiAf9u068oPY1g7fIcSIMZ0X/3ZHXdw4EP/dlXylOfXqNOxqnIRTnghdHGnFt8IaQAWdhvR6CPMnhxLA==","shasum":"836d3f37b4ef87db641cbd530fff9dc9854da10f","tarball":"https://registry.npmjs.org/@ennuicastr/webrtcaec3.js/-/webrtcaec3.js-0.2.0.tgz","fileCount":9,"unpackedSize":820249,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCh+y+SzAI351Jz4i8xh0cTn+kvxE44qCuEGa5E4vGJXgIgFJBxV9TLvX2LVXYASV8Jq1O6mt9OJ2euYYQh/C76lH4="}]},"_npmUser":{"name":"yahweasel","email":"npm-crm@yahweasel.com"},"directories":{},"maintainers":[{"name":"yahweasel","email":"npm-crm@yahweasel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webrtcaec3.js_0.2.0_1703883721850_0.9747817046211149"},"_hasShrinkwrap":false},"0.2.1":{"name":"@ennuicastr/webrtcaec3.js","//version":"When changing the version, make sure you update it below (version, main), in Makefile, and in the demo.","version":"0.2.1","description":"Port of WebRTC's AEC3 (acoustic echo canceller, version 3) library to WebAssembly/JavaScript","main":"dist/webrtcaec3-0.2.1.js","types":"dist/webrtcaec3.types.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ennuicastr/webrtcaec3.js.git"},"keywords":["audio","echo","cancellation","echo","cancellation","echo","suppression","suppression","webrtc"],"author":{"name":"Yahweasel"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/ennuicastr/webrtcaec3.js/issues"},"homepage":"https://github.com/ennuicastr/webrtcaec3.js#readme","devDependencies":{"uglify-js":"^3.17.4"},"gitHead":"cb8bd3288cbdbd3bd12e7240d0834e8df674b393","_id":"@ennuicastr/webrtcaec3.js@0.2.1","_nodeVersion":"18.19.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-6Utdcog4vz9+WXL4ZfN+bx/dqVoTdll5+f0cQ5li/JIJv9gWPG7sAOYOiOhXo8WIdykop59SmFfEChgXJv/Fug==","shasum":"3ce4de40285b683e34dad5957dd13dc5dd222191","tarball":"https://registry.npmjs.org/@ennuicastr/webrtcaec3.js/-/webrtcaec3.js-0.2.1.tgz","fileCount":9,"unpackedSize":820335,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBduYxsF+gRKKC4+5s0dA2XAhpKQanL20/F+melvGEwdAiAAvsSav9XdAuuqR2dU1KCHY4/UY5+quBqHQK8h8uXLBw=="}]},"_npmUser":{"name":"yahweasel","email":"npm-crm@yahweasel.com"},"directories":{},"maintainers":[{"name":"yahweasel","email":"npm-crm@yahweasel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webrtcaec3.js_0.2.1_1703987416983_0.39749400949364166"},"_hasShrinkwrap":false},"0.3.0":{"name":"@ennuicastr/webrtcaec3.js","//version":"When changing the version, make sure you update it below (version, main), in Makefile, and in the demo.","version":"0.3.0","description":"Port of WebRTC's AEC3 (acoustic echo canceller, version 3) library to WebAssembly/JavaScript","main":"dist/webrtcaec3-0.3.0.js","types":"dist/webrtcaec3.types.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ennuicastr/webrtcaec3.js.git"},"keywords":["audio","echo","cancellation","echo","cancellation","echo","suppression","suppression","webrtc"],"author":{"name":"Yahweasel"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/ennuicastr/webrtcaec3.js/issues"},"homepage":"https://github.com/ennuicastr/webrtcaec3.js#readme","gitHead":"e1d663e86f2ab03269b9ae873af38d0103c4df3d","_id":"@ennuicastr/webrtcaec3.js@0.3.0","_nodeVersion":"18.19.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-ZfijX3Pzqr2zY2nTBE+APGB4X8q3up5vqQgmuolCvC2WTYYWvivf3GGVFZnTr6n/kZa9w3Y5P4ugwcrOmsqXZQ==","shasum":"cc49d6a4f08318fd30365e020cbf23fac85a09c4","tarball":"https://registry.npmjs.org/@ennuicastr/webrtcaec3.js/-/webrtcaec3.js-0.3.0.tgz","fileCount":8,"unpackedSize":789135,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuQfEfiaSv8x0TQIg+73Jo8H1AzyIaArqkfJkAYy4NjwIhAN+USbMyxMWchc1sR9KkklDTrMNsQAvT4UqyYxwpzHrZ"}]},"_npmUser":{"name":"yahweasel","email":"npm-crm@yahweasel.com"},"directories":{},"maintainers":[{"name":"yahweasel","email":"npm-crm@yahweasel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webrtcaec3.js_0.3.0_1704164447822_0.3511445431541489"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-27T21:46:07.530Z","0.1.0":"2023-12-27T21:46:07.870Z","modified":"2024-01-02T03:00:48.198Z","0.1.1":"2023-12-28T16:07:56.000Z","0.1.2":"2023-12-28T21:36:56.882Z","0.2.0":"2023-12-29T21:02:02.168Z","0.2.1":"2023-12-31T01:50:17.206Z","0.3.0":"2024-01-02T03:00:48.014Z"},"maintainers":[{"name":"yahweasel","email":"npm-crm@yahweasel.com"}],"description":"Port of WebRTC's AEC3 (acoustic echo canceller, version 3) library to WebAssembly/JavaScript","homepage":"https://github.com/ennuicastr/webrtcaec3.js#readme","keywords":["audio","echo","cancellation","echo","cancellation","echo","suppression","suppression","webrtc"],"repository":{"type":"git","url":"git+https://github.com/ennuicastr/webrtcaec3.js.git"},"author":{"name":"Yahweasel"},"bugs":{"url":"https://github.com/ennuicastr/webrtcaec3.js/issues"},"license":"BSD-3-Clause","readme":"This is a port of WebRTC's AEC3 (acoustic echo cancellation... 3) library to\nWebAssembly and JavaScript, so that echo cancellation can be performed on any\naudio, rather than trusting whatever echo cancellation `getUserMedia` wishes to\ndo.\n\nThe Google WebRTC implementation from which this is derived is under a 3-clause\nBSD license, and so a compiled version of this library falls under the same\nlicense. The small amount of glue code provided by this library itself is under\nthe so-called “0-clause BSD license” and does not require attribution.\nAdditionally, library components used by WebRTC are under the Apache 2 license.\n\n\n# API\n\nInclude `webrtcaec3.js`, or import or require this library as a module. Once the\nlibrary is loaded, `WebRtcAec3` is a function which returns a promise for a\n`WebRtcAec3` module instance. With a `WebRtcAec3` module instance `AEC3`,\n`AEC3.AEC3` is a constructor for an AEC3 instance, taking three parameters: the\nsample rate, and the number of channels for the render (output) and capture\n(input) streams, respectively. The AEC3 library itself is synchronous, so if you\nneed asynchrony, use it in a WebWorker.\n\nPutting that together:\n\n```js\nconst AEC3 = await WebRtcAec3();\nconst aec = new AEC3(sampleRate, outputChannels, inputChannels);\n```\n\nNote that not all sample rates will work. In fact, most won't. Basically, use\n`48000`.\n\nThe AEC3 instances expose three methods: `analyze`, `processSize`, and\n`process`. Use `analyze` to analyze render (output) data:\n\n```js\naec.analyze(outputData /* Float32Array[] */);\n```\n\nUse `process` to process capture (input) data, cancelling echo. It deposits the\nprocessed data into an output buffer which you must provide. You can use\n`processSize` to get the necessary size of each channel of the output buffer.\n\n```js\nconst bufSz = aec.processSize(inputData);\nconst outBuf = [new Float32Array(bufSz)]; // one per channel\naec.process(outBuf, inputData /* Float32Array[] */);\n... do something with outBuf ...\n```\n\n`analyze`, `processSize`, and `process` each take an optional “options”\nargument, which in particular can take a sample rate for the input data. If the\nsample rate for the input data does not match the sample rate with which the\nAEC3 instance was created, it will be resampled.\n\nFor further documentation on each method, see the types file.\n","readmeFilename":"README.md"}