dtln-rs
v1.0.4
Published
Dtln noise reduction module.
Readme
dtln-rs
dtln-rs provides near real-time noise suppression for audio in web browsers.
Built on a Dual-Signal Transformation LSTM Network (DTLN) approach, this module provides a lightweight and portable noise reduction solution packaged as a WebAssembly module with ES module support for easy integration in web applications and WebRTC.
Installation
npm install dtln-rsUsage
import DtlnPlugin from 'dtln-rs';
const handle = DtlnPlugin.dtln_create();
const input = new Float32Array(512);
const output = new Float32Array(512);
DtlnPlugin.dtln_denoise(handle, input, output);
DtlnPlugin.dtln_destroy(handle);Build
To build from source:
npm run buildThis will compile the Rust code to WebAssembly and generate the necessary JavaScript bindings.
Requirements
- Emscripten (for building WebAssembly)
- Rust toolchain with
wasm32-unknown-emscriptentarget
License
This project is licensed under the MIT License - see the LICENSE file for details.
