@audio/denoise-detect
v0.1.8
Published
denoise — content-aware auto-selector that classifies the dominant noise type
Downloads
1,477
Readme
@audio/denoise-detect

denoise — content-aware auto-selector that classifies the dominant noise type
npm install @audio/denoise-detectimport denoise from '@audio/denoise-detect'Content-aware auto-selector. Runs a single STFT classification sweep over the input and dispatches to the most suitable method.
denoise(data) // → cleaned Float32Array
denoise(data, { returnPlan: true }) // → { out, plan }
denoise(data, { force: 'wiener' }) // skip classifier| Param | Default | |
|---|---|---|
| fs | 44100 | Sample rate |
| force | — | One of 'dehum' \| 'declick' \| 'dewind' \| 'deesser' \| 'dereverb' \| 'omlsa' \| 'wiener' |
| returnPlan | false | Return { out, plan } with classifier scores + chosen method |
Routing (in priority order):
- tonal hum (Goertzel — ≥2 of first 3 harmonics show 50× line/off-line ratio at 50 or 60 Hz)
- impulses (excess kurtosis of AR residual > 12)
- sibilance (high/mid band power ratio > 8)
- LF rumble (low/mid band power ratio > 3)
- non-stationary noise (frame-energy CV > 0.6) → omlsa
- otherwise → wiener
Part of @audio/denoise — the denoise family umbrella. This README is generated from the umbrella docs.
MIT © audiojs
