/media-os:media-demucs [input]from media-os
Isolates vocals, drums, bass, and other stems from mixed audio using Demucs and Spleeter. Useful for karaoke track extraction, remixing prep, and removing music from speech recordings.
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
demucs --two-stems vocals song.mp3 → Step 3demucs song.mp3 → Step 3demucs -n htdemucs_6s song.mp3 → Step 3uv run scripts/stems.py split --input song.mp3 --outdir out → Step 3Demucs (recommended, modern transformer):
pip install demucs
# or: pipx install demucs
Spleeter (older, faster on CPU, legacy):
pip install spleeter
Check what is available on this machine:
uv run ${CLAUDE_SKILL_DIR}/scripts/stems.py check
First-time use downloads model weights (~200 MB–2 GB each) into ~/.cache/torch/hub/checkpoints/.
| Task | Model |
|---|---|
| Best overall quality | htdemucs_ft (fine-tuned Hybrid Transformer) |
| Default good quality | htdemucs |
| Higher quality, slower, more VRAM | mdx_extra |
| CPU / low-VRAM fallback | mdx_q (quantized) |
| 6 stems (vocals/drums/bass/guitar/piano/other) | htdemucs_6s |
| Fast batch karaoke on CPU | Spleeter 2stems |
See references/stems.md for a full quality/speed/VRAM table.
demucs song.mp3
# → separated/htdemucs/song/{vocals,drums,bass,other}.wav
demucs --two-stems vocals song.mp3
# → vocals.wav + no_vocals.wav
demucs -n htdemucs_6s song.mp3
# → vocals, drums, bass, guitar, piano, other
demucs -n htdemucs_ft --shifts 10 --overlap 0.25 song.mp3
--shifts N averages N random time shifts (2× cost per shift, higher quality).--overlap 0.25 controls overlap-add blending between chunks.--segment S shrinks chunk size for low-VRAM GPUs.demucs --device cuda -o OUTDIR --flac song.mp3 # GPU + FLAC
demucs --device cpu song.mp3 # force CPU
demucs --mp3 song.mp3 # MP3 output
demucs --int24 song.mp3 # 24-bit WAV
demucs *.mp3 # batch
spleeter separate -p spleeter:2stems -o output in.mp3 # vocals / accompaniment
spleeter separate -p spleeter:4stems -o output in.mp3 # vocals / drums / bass / other
spleeter separate -p spleeter:5stems -o output in.mp3 # + piano
uv run ${CLAUDE_SKILL_DIR}/scripts/stems.py karaoke \
--input song.mp3 --output-vocals vox.wav --output-backing inst.wav
Subcommands: check, split, karaoke, vocals-only, backing-only. All support --dry-run and --verbose.
sox stem.wav clean.wav noisered prof 0.2 or ffmpeg afftdn.media-ffmpeg-normalize or loudnorm).demucs --flac --int24 ....~/.cache/torch/hub/checkpoints/. Individual models are 200 MB–2 GB.htdemucs_ft is usually top quality but ~4× slower than htdemucs (it runs 4 fine-tuned sub-models and averages).mdx_extra needs ~4 GB VRAM. On OOM: switch to smaller model or add --segment 7.mdx_q is the best CPU option.tensorflow-gpu.--int24 or --flac for more bit depth.--shifts 10 roughly 20× runtime vs default — reserve for final deliverables, not iteration.--two-stems vocals yields vocals.wav and no_vocals.wav (not accompaniment.wav — that's Spleeter naming).htdemucs_6s) guitar/piano separation is weaker than the 4-stem base; bleed is common.--shifts 10 is the best quality/time trade.demucs --two-stems vocals --shifts 10 -n htdemucs_ft -o karaoke song.mp3
# use: karaoke/htdemucs_ft/song/no_vocals.wav
demucs -n htdemucs_ft --flac -o stems song.wav
# stems/htdemucs_ft/song/{vocals,drums,bass,other}.flac
demucs -n htdemucs --device cuda -o out input/*.mp3
demucs -n htdemucs song.mp3
# keep only separated/htdemucs/song/bass.wav
CUDA out of memoryCause: Model/chunk too large for GPU VRAM.
Solution: Add --segment 7 (or lower), switch to htdemucs instead of mdx_extra, or --device cpu.
No module named 'demucs'Cause: Not installed in the active env.
Solution: pip install demucs (or pipx install demucs). Confirm with scripts/stems.py check.
Cause: Default model, low --shifts, or non-44.1 kHz input.
Solution: Use -n htdemucs_ft --shifts 10; pre-resample source to 44.1 kHz.
Cause: Spleeter pins old TensorFlow. Solution: Use Demucs, or create a Python 3.8/3.9 venv just for Spleeter.
Cause: Huggingface Hub / torch.hub mirror issue.
Solution: Retry; or pre-download weights and place them under ~/.cache/torch/hub/checkpoints/.
references/stems.md for model comparison, VRAM/quality/speed table, stem layouts per model, CLI flag reference, and a recipe book (karaoke, vocal isolation for ML, bass-only for DJ, drums-for-sampling).What SKILL.md sets; muted values are Claude Code's defaults
110 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.
/audio-pipewireRoute and introspect Linux audio/video/MIDI graphs with PipeWire: pw-cli (interactive object/module control), pw-dump (full graph JSON with --monitor), pw-link (list/create/destroy port links), pw-cat / pw-play / pw-record (playback+record), pw-top (real-time DSP load + xrun viewer), pw-metadata (shared metadata store), pw-loopback (source/sink bridges), pw-midiplay/pw-midirecord, pw-jack (JACK client compat shim), pw-mon, pw-profiler. WirePlumber session manager handles routing/defaults/profiles. Replaces PulseAudio (via pipewire-pulse) and JACK (via libjack.so shim) simultaneously. Use when the user asks to route Linux audio, link two apps, list audio devices on Linux, create a loopback, record system audio, monitor the audio graph, or set up a virtual audio device on modern Linux.
/audio-wasapiManipulate Windows audio via WASAPI (learn.microsoft.com/coreaudio): SoundVolumeView + svcl.exe (NirSoft — set default device, per-app volumes, save/load profiles), AudioDeviceCmdlets PowerShell module (Get-AudioDevice, Set-AudioDevice, Get-AudioDevicePlaybackMute), nircmd setdefaultsounddevice. Shared mode (Windows engine resamples all streams to endpoint fixed format) vs Exclusive mode (bit-perfect, audiophile, ~sub-3ms latency with IAudioClient3 + event-driven callbacks). WASAPI then MMDevice then Audio Engine (audiodg.exe) then WDM/KS. ASIO is Steinberg's parallel stack bypassing Windows audio. Virtual audio devices: VB-Audio Virtual Cable, VoiceMeeter/Banana/Potato. Use when the user asks to change Windows default audio device, route app audio, use VoiceMeeter, install VB-Cable, set a specific device from PowerShell, or enable exclusive-mode low-latency output.
/cv-mediapipeGoogle MediaPipe Tasks API (current supported, NOT legacy mediapipe.solutions): Vision Tasks (Face Detector, Face Landmarker, Face Stylizer, Hand Landmarker, Gesture Recognizer, Pose Landmarker, Holistic Landmarker, Object Detector, Image Classifier, Image Segmenter, Interactive Segmenter, Image Embedder, Image Generator), Audio Tasks (Audio Classifier), Text Tasks (Text Classifier, Text Embedder, Language Detector), GenAI Tasks (LLM Inference — on-device Gemma/Phi-2/Falcon/StableLM). Three run modes: IMAGE, VIDEO, LIVE_STREAM (async). Python: mediapipe.tasks.python.vision/audio/text/genai. Docs at ai.google.dev/edge/mediapipe/solutions. Model Maker for transfer learning. Use when the user asks to detect pose/face/hand landmarks, classify an image, run a body-pose model, segment people, recognize gestures, do on-device LLM inference via MediaPipe, or build a mobile/embedded CV pipeline.
/cv-opencvComputer vision on images + video with OpenCV (docs.opencv.org/4.x/): core (Mat / ndarray, linalg), imgproc (filtering, morphology, geometric transforms, color conv, histograms, contours), imgcodecs (imread/imwrite — PNG, JPEG, TIFF, WebP, EXR), videoio (VideoCapture / VideoWriter — FFMPEG, GStreamer, V4L2, AVFoundation, MSMF backends), calib3d (camera calibration, stereo, solvePnP, homography), features2d (ORB, AKAZE, BRISK, KAZE, SIFT), objdetect (FaceDetectorYN, FaceRecognizerSF, HOG, ArUco, QRCode), dnn (ONNX/TF/Caffe/Darknet, CUDA + OpenVINO + Vulkan backends, model zoo at github.com/opencv/opencv_zoo), photo (inpainting, denoising, HDR Debevec/Robertson), stitching (panorama), video (optical flow Farneback/LK/DIS, BackgroundSubtractorMOG2/KNN, tracking KCF/CSRT/MIL/Nano/Vit/DaSiamRPN). Python-first via cv2. Use when the user asks to detect faces, track objects, run YOLO inference, capture + process webcam frames, calibrate a camera, stitch a panorama, or use OpenCV from Python/C++.
npx claudepluginhub damionrashford/media-os --plugin media-osOther plugins' skills for the same job