Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
agora-extension-ai-denoiser
Advanced tools
```javascript import {AIDenoiserExtension} from "agora-extension-ai-denoiser"; // Create AIDenoiserExtension instance, please make sure this instance is a singleton, assetsPath is the path of wasm and wasmjs. const denoiser = new AIDenoiserExtension({asse
import {AIDenoiserExtension} from "agora-extension-ai-denoiser";
// Create AIDenoiserExtension instance, please make sure this instance is a singleton, assetsPath is the path of wasm and wasmjs.
const denoiser = new AIDenoiserExtension({assetsPath:'./external'});
// Register AI denoiser extension into AgoraRTC.
AgoraRTC.registerExtensions([denoiser]);
// listen the loaderror callback to handle loading module failed.
denoiser.onloaderror = (e) => {
// if loading denoiser is failed, disable the function of denoiser. For example, set your button disbled.
openDenoiserButton.enabled = false;
console.log(e);
}
const processor = denoiser.createProcessor();
// If you want to enable the processor by default.
processor.enable();
// If you want to disable the processor by default.
// processor.disable();
// Optional, listen the processor`s overlaod callback to catch overload message
processor.onoverload = async () => {
console.log("overload!!!");
await processor.disable();
}
const audioTrack = await AgoraRTC.createMicrophoneAudioTrack();
audioTrack.pipe(processor).pipe(audioTrack.processorDestination);
await processor.enable();
() => {
if (processor.enabled) {
await processor.disable();
} else {
await processor.enable();
}
}
processor.ondump = (blob, name) => {
const objectURL = URL.createObjectURL(blob);
const tag = document.createElement("a");
tag.download = name + ".wav";
tag.href = objectURL;
tag.click();
}
processor.ondumpend = () => {
console.log("dump ended!!");
}
processor.dump();
FAQs
```javascript import {AIDenoiserExtension} from "agora-extension-ai-denoiser"; // Create AIDenoiserExtension instance, assetsPath is the path of wasm files. const extension = new AIDenoiserExtension({assetsPath:'./external'});
The npm package agora-extension-ai-denoiser receives a total of 2,495 weekly downloads. As such, agora-extension-ai-denoiser popularity was classified as popular.
We found that agora-extension-ai-denoiser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.