Media Denoise AI
Context: $ARGUMENTS
Quick start
- Default, real-time speech denoise (MIT):
scripts/denoise.py denoise --model deepfilternet --in noisy.wav --out clean.wav→ Step 3 - Full restoration (denoise + dereverb + bandwidth extension):
scripts/denoise.py enhance --in muffled.wav --out clean.wav→ Step 4 - Batch a folder of podcast episodes:
scripts/denoise.py batch --model deepfilternet --in-dir raw/ --out-dir clean/→ Step 5 - Use ffmpeg's built-in RNNoise (fastest, no new install):
scripts/denoise.py denoise --model rnnoise --in noisy.wav --out clean.wav
When to use
- Remove steady background noise (HVAC, fan hum, traffic) from voice recordings
- Clean keyboard clicks, mouse clicks, fridge hum out of video-call recordings
- Restore old / cassette / lo-fi audio (Resemble Enhance handles bandwidth extension)
- Pre-process audio before ASR (
media-whisper) — dramatically reduces hallucinations - Pre-process audio before TTS voice-cloning reference clips (
media-tts-ai clone) - Clean podcast tracks before loudness-normalization
Why not just use ffmpeg? ffmpeg ships afftdn (spectral subtraction), anlmdn (non-local means), and arnndn (RNNoise port). All work but are limited:
afftdnis aggressive on breathiness and music, smears consonantsanlmdnis slow and fine-tuned for constant background onlyarnndnrequires RNN model files, speech-only, 16 kHz biased
AI-based options (DeepFilterNet, Resemble Enhance) give noticeably better SNR, preserve consonants, and handle transient noise (clicks) that ffmpeg filters struggle with.
Step 1 — Pick a model
| Task | Recommended | License | Speed | GPU req | Does dereverb? | Does BWE? |
| --------------------------------------------------- | ------------------ | -------- | ------------- | -------- | -------------- | --------- |
| Default realtime speech denoise, full-band 48 kHz | DeepFilterNet | MIT | ~real-time on CPU | none | partial | no |
| Ultra-fast, already in ffmpeg, low-quality baseline | RNNoise | BSD-3 | real-time | none | no | no |
| Full restoration (noise + reverb + bandwidth) | Resemble Enhance | Apache 2.0 | 0.2-0.5x RT on CPU | helpful | yes | yes |