Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

demucs

Separate audio into stems (vocals, background, drums, bass, etc.) using fal.ai's Demucs model. Requires a fal.ai API key. By default extracts vocals and background (other) stems.

Usage

egaki demucs [audio]

Arguments

ArgumentRequiredDescription
[audio]Noaudio

Options

OptionDefaultDescription
--stems [list]-Comma-separated stems to extract: vocals, drums, bass, other, guitar, piano. Default: vocals,other
--model [model]-Demucs model variant. Default: htdemucs_6s. Options: htdemucs, htdemucs_ft, htdemucs_6s, hdemucs_mmi, mdx, mdx_extra, mdx_q, mdx_extra_q
--output-format [format]mp3Output audio format: mp3 or wav
-o, --output [dir]-Output directory for separated stems. Default: current directory
--shifts [n]-Number of random shifts for quality (higher = better but slower). Default: 1
--overlap [n]-Segment overlap 0.0-1.0 (higher = better quality). Default: 0.25
--stdin-Read audio from stdin instead of a file path
--json-Output result metadata as JSON to stdout

Global Options

OptionDefaultDescription
-h, --help-Display this message
-v, --version-Display version number

Examples

# Separate vocals and background from an audio file
egaki demucs song.mp3
# Extract all stems (vocals, drums, bass, guitar, piano, other)
egaki demucs song.mp3 --stems vocals,drums,bass,other,guitar,piano
# Extract only vocals as WAV
egaki demucs song.mp3 --stems vocals --output-format wav
# Save to a specific directory
egaki demucs song.mp3 -o stems/
# Higher quality (slower)
egaki demucs song.mp3 --shifts 5