/media-os:media-denoise-ai [input] [output]from media-os
AI audio noise reduction using DeepFilterNet, RNNoise, and Resemble Enhance. Removes hum/hiss/clicks from voice recordings, podcasts, and video calls beyond ffmpeg's built-in filters.
Ships in media-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Context: $ARGUMENTS
scripts/denoise.py denoise --model deepfilternet --in noisy.wav --out clean.wav → Step 3scripts/denoise.py enhance --in muffled.wav --out clean.wav → Step 4scripts/denoise.py batch --model deepfilternet --in-dir raw/ --out-dir clean/ → Step 5scripts/denoise.py denoise --model rnnoise --in noisy.wav --out clean.wavmedia-whisper) — dramatically reduces hallucinationsmedia-tts-ai clone)Why not just use ffmpeg? ffmpeg ships afftdn (spectral subtraction), anlmdn (non-local means), and arnndn (RNNoise port). All work but are limited:
afftdn is aggressive on breathiness and music, smears consonantsanlmdn is slow and fine-tuned for constant background onlyarnndn requires RNN model files, speech-only, 16 kHz biasedAI-based options (DeepFilterNet, Resemble Enhance) give noticeably better SNR, preserve consonants, and handle transient noise (clicks) that ffmpeg filters struggle with.
| 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 |
See references/models.md for detailed comparison. Licensing in references/LICENSES.md.
# DeepFilterNet (ships compiled Rust binary + Python wrapper)
pip install deepfilternet
# or prebuilt binary (faster startup):
# cargo install deep-filter
# or download from https://github.com/Rikorose/DeepFilterNet/releases
# Resemble Enhance (PyTorch)
pip install resemble-enhance
# RNNoise is already in ffmpeg as the arnndn filter — no install needed.
# Optional: download RNN model files for arnndn from:
# https://github.com/GregorR/rnnoise-models
Or let the script fetch:
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py install deepfilternet
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py install resemble
Check what's available:
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py check
# DeepFilterNet (default)
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py denoise \
--model deepfilternet \
--in noisy.wav \
--out clean.wav
# RNNoise via ffmpeg arnndn (fastest, needs RNN model file)
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py denoise \
--model rnnoise \
--in noisy.wav \
--out clean.wav \
--rnn-model cb.rnnn # optional; uses ffmpeg default if omitted
# Resemble Enhance (denoise only, no BWE)
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py denoise \
--model resemble \
--in noisy.wav \
--out clean.wav
Resemble Enhance's superpower. Great for old recordings, bad phone calls, muffled interviews.
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py enhance \
--in muffled_phonecall.wav \
--out clean.wav
# Control denoising strength (0.0 light, 1.0 full)
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py enhance \
--in muffled.wav \
--out clean.wav \
--nfe-steps 64 \
--solver midpoint \
--strength 1.0
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py batch \
--model deepfilternet \
--in-dir raw_episodes/ \
--out-dir clean_episodes/
# Mirrors the input folder structure. Skips files already in out-dir by default.
media-ffmpeg-normalize
ffmpeg-normalize clean.wav -o final.wav -t -16 -tp -1.5 -lrt 11
ffmpeg -af silenceremove=... — see ffmpeg-audio-filter skillffmpeg -i video.mp4 -i clean.wav -map 0:v -map 1:a -c:v copy -shortest out.mp4
arnndn) requires a .rnnn model file. ffmpeg ships without one. Download a model from github.com/GregorR/rnnoise-models (or xiph origin) and pass --rnn-model path/to/cb.rnnn.ffmpeg -ar 44100 afterwards if your pipeline requires it.--solver choice: midpoint (default) is best quality. euler is faster but slightly worse SNR. Don't use rk4 unless debugging.amerge.deesser for that — see ffmpeg-audio-fx).media-demucs.references/LICENSES.md.uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py denoise \
--model deepfilternet \
--in episode_raw.wav \
--out episode_clean.wav
ffmpeg-normalize episode_clean.wav -o episode_final.wav -t -16 -tp -1.5
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py enhance \
--in phonecall_1998.wav \
--out phonecall_restored.wav
# Resemble Enhance upscales to 44.1 kHz and dereverbs.
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py denoise \
--model deepfilternet \
--in interview.wav \
--out interview_clean.wav
# Hand off to media-whisper
uv run .../media-whisper/scripts/whisper.py transcribe \
--input interview_clean.wav \
--output-srt interview.srt \
--model medium.en
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py batch \
--model deepfilternet \
--in-dir recordings/ \
--out-dir cleaned/ \
--verbose
# Download an RNN model first (one-time)
curl -Lo cb.rnnn https://raw.githubusercontent.com/GregorR/rnnoise-models/master/conjoined-burgers-2018-08-28/cb.rnnn
uv run ${CLAUDE_SKILL_DIR}/scripts/denoise.py denoise \
--model rnnoise \
--in noisy.wav \
--out clean.wav \
--rnn-model cb.rnnn
ModuleNotFoundError: No module named 'deepfilternet'Cause: DeepFilterNet Python wrapper isn't installed.
Solution: pip install deepfilternet or install the prebuilt Rust binary via cargo install deep-filter and rerun — the script auto-detects the binary.
arnndn: could not open '.rnnn' model fileCause: no RNN model file specified for ffmpeg's arnndn filter.
Solution: download one from https://github.com/GregorR/rnnoise-models and pass via --rnn-model. E.g. cb.rnnn (conjoined-burgers 2018 — general speech).
Cause: running DeepFilterNet on music, or chaining two AI denoisers.
Solution: use Resemble Enhance for less aggressive processing, or run denoise on voice-only segments and re-mux with music tracks.
Cause: input file too long for VRAM.
Solution: split the input with ffmpeg-cut-concat into chunks <60 s, process each, concat with ffmpeg -f concat. Or run CPU: CUDA_VISIBLE_DEVICES= uv run ....
Cause: Resemble Enhance always outputs 44.1 kHz (bandwidth extension reference rate).
Solution: resample: ffmpeg -i clean.wav -ar 48000 clean_48k.wav.
Cause: DeepFilterNet and Resemble Enhance are speech models — they suppress music as "noise".
Solution: isolate voice and music tracks with media-demucs, denoise voice only, re-mux.
references/models.md — detailed per-model comparison (quality, speed, dereverb, BWE, known failure modes, real-world recipes).references/LICENSES.md — strict confirmation that all three models are commercial-safe.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub damionrashford/media-os --plugin media-os110 skills in this plugin
/audio-coreaudioManipulate macOS audio at the Core Audio HAL layer: afinfo (audio file metadata), afplay (play), afconvert (convert format/rate/bit-depth/channel layout), say (TTS), SwitchAudioSource (change default input/output/system device — brew install switchaudio-osx), audiodevice CLIs (npm/Go variants), AppleScript via osascript to drive System Preferences Sound. HAL plugins at /Library/Audio/Plug-Ins/HAL/ load virtual drivers (BlackHole 2ch/16ch/64ch, Loopback, Background Music). Aggregate Device (drift-corrected multi-in) and Multi-Output Device via Audio MIDI Setup.app or AudioHardwareCreateAggregateDevice. Use when the user asks to change default macOS audio device, route audio between apps on Mac, install BlackHole, build an Aggregate Device, convert audio files with afconvert, or script Mac audio from the terminal.
/audio-jackRoute professional low-latency audio with JACK Audio Connection Kit (jackaudio.org): jackd server (ALSA/CoreAudio/PortAudio/ASIO backends), jack_control (D-Bus JACK2 config), jack_lsp (list ports/connections), jack_connect/jack_disconnect (manage links), jack_cpu_load, jack_samplerate, jack_bufsize (runtime period size), jack_transport, jack_rec (multi-channel WAV recording), jack_iodelay (round-trip latency), jack_wait, jack_midi_dump. JACK1 C maintenance vs JACK2 C++ multicore. Modern Linux swaps jackd for PipeWire's libjack shim — same client API. JackTrip for uncompressed multichannel UDP over the Internet. Use when the user asks to run a JACK server, connect audio clients, measure roundtrip latency, record from JACK ports, set JACK period size, or bridge JACK over the network with JackTrip.
Other plugins' skills for the same job