/media-os:media-sox [operation] [input]from media-os
Processes audio with SoX: format conversion, trim, pad, reverse, speed/pitch, fade, silence detection/removal, noise profile+reduction, synth tones, channel ops, dither. Use for surgical audio work where precise effect chain order matters.
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
sox in.wav -r 48000 -b 16 -c 2 out.flac → Step 3sox in.wav out.wav silence 1 0.1 1% -1 0.5 1% → Step 3sox --norm in.wav out.wav → Step 3sox -n out.wav synth 3 sine 440 → Step 3sox --i in.wav or sox in.wav -n stats → Step 3ffmpeg afftdn for stationary noise).Use ffmpeg loudnorm for EBU R128 / broadcast loudness, demucs/spleeter for stem separation, whisper for transcripts — SoX does none of those.
brew install sox # macOS
sudo apt-get install sox # Debian/Ubuntu
sox --version # confirm
sox -h | grep 'AUDIO FILE FORMATS' # see compiled-in formats
MP3 read/write is often not compiled in on Homebrew builds. The old brew install sox --with-lame flag was removed from Homebrew years ago. If you need MP3, either convert via ffmpeg / lame externally, or sox in.wav -t wav - | lame - out.mp3. WAV / AIFF / FLAC / OGG Vorbis / raw / au are virtually always present.
Map the user's request to the matching SoX form:
| Goal | Shape |
|---|---|
| Convert container | sox in.EXT out.EXT |
| Resample | sox in -r 48000 out (file option, pre-filename) |
| Bit depth | sox in -b 16 out (file option) |
| Channels | sox in -c 1 out (file option) |
| Trim | sox in out trim START [DUR] (effect) |
| Pad | sox in out pad HEAD TAIL (effect) |
| Reverse | sox in out reverse |
| Tempo (keep pitch) | sox in out tempo 1.5 |
| Pitch (keep tempo) | sox in out pitch 200 (cents) |
| Speed (both) | sox in out speed 1.5 |
| Fade | sox in out fade IN STOP OUT |
| Silence trim | sox in out silence 1 0.1 1% -1 0.5 1% |
| Peak normalize | sox --norm in out |
| Gain (pre) | sox -v 0.5 in out (file opt) |
| Gain (effect) | sox in out gain -3 |
| Reverb | sox in out reverb 50 50 100 |
| Compand | sox in out compand 0.3,1 6:-70,-60,-20 -5 -90 0.2 |
| Noise profile | sox in -n trim 0 1 noiseprof noise.prof |
| Noise reduce | sox in out noisered noise.prof 0.21 |
| Synth tone | sox -n out synth 3 sine 440 |
| Synth noise | sox -n out synth 5 pinknoise |
| Concat | sox a.wav b.wav out.wav |
| Mix (sum) | sox -m a.wav b.wav out.wav |
| Probe | sox --i in |
| Stats | sox in -n stats |
Rule: file options (-r, -b, -c, -v, -e, -t, --norm) go before the file they modify. Effects (trim, pad, gain, fade, tempo, pitch, reverb, compand, silence, noiseprof, noisered, synth, reverse) go after the output filename, and are applied left-to-right.
sox in.wav -r 48000 -b 16 -c 1 out.flac
sox in.wav out.wav trim 0 30
sox in.wav out.wav trim 10 20
sox in.wav out.wav pad 1 2
sox in.wav out.wav tempo 1.5
sox in.wav out.wav pitch 200 # cents: 100 cents = 1 semitone
sox in.wav out.wav speed 1.5
sox in.wav out.wav fade 1 -0 1
sox in.wav out.wav silence 1 0.1 1% -1 0.5 1%
sox --norm in.wav out.wav
sox in.wav out.wav reverb 50 50 100
sox in.wav out.wav compand 0.3,1 6:-70,-60,-20 -5 -90 0.2
# 1) profile from 1s of noise-only at the start
sox in.wav -n trim 0 1 noiseprof noise.prof
# 2) subtract profile (0.21 is conservative; 0.30 aggressive; max 1.0)
sox in.wav out.wav noisered noise.prof 0.21
sox -n out.wav synth 3 sine 440
sox -n out.wav synth 5 pinknoise
sox a.wav b.wav out.wav
sox -m a.wav b.wav out.wav
sox --i in.wav
sox in.wav -n stats
scripts/sox.py — argparse wrapper for check / info / convert / trim / tempo / pitch / fade / silence-trim / denoise / normalize / synth / concat / mix / stats. Supports --dry-run and --verbose. Stdlib-only.uv run ${CLAUDE_SKILL_DIR}/scripts/sox.py check
uv run ${CLAUDE_SKILL_DIR}/scripts/sox.py convert --input in.wav --output out.flac --rate 48000 --bits 16
uv run ${CLAUDE_SKILL_DIR}/scripts/sox.py denoise --input in.wav --output clean.wav --noise-sample "0 1"
references/sox.md for the full effect catalog, file-option vs effect distinction, dither controls, noise-reduction best practices, synth waveforms, and recipe book (vinyl rip, podcast polish, per-episode silence trim, dynamic-range compression).sox -h. MP3 is frequently absent; WAV/AIFF/FLAC/OGG are virtually always present. Route MP3 through ffmpeg or lame.sox in out gain -6 norm ≠ sox in out norm gain -6.-v is a FILE option, not an effect. Place it before the filename it scales. sox -v 0.5 in.wav out.wav halves the input; sox in.wav -v 0.5 out.wav would apply 0.5 to the output gain handling.gain (effect) goes after the output filename, like all other effects. Don't confuse it with -v.sox -r 48000 -b 16 -c 1 -e signed-integer raw.pcm out.wav.tempo 1.5 = 50% faster, same pitch (WSOLA-style). pitch 200 = up 2 semitones (100 cents per semitone). speed 1.5 changes BOTH — equivalent to playing the file back faster (varispeed).-D before the output filename if you don't want it.silence syntax is cryptic. silence 1 0.1 1% -1 0.5 1%: first 1 = trim leading silence; 0.1 = min silence duration (s); 1% = amplitude threshold; -1 = also remove ALL internal/trailing silences; 0.5 = min internal-silence duration; 1% = same threshold.noisered second arg is sensitivity 0.0–1.0. Start at 0.21. Higher values destroy transients and introduce "underwater" artifacts. If profile was short or impure, drop to 0.15.noiseprof profile is plain text — you can inspect / diff it. It's tied to sample rate of the profiling source.-14/-16/-23 LUFS, use ffmpeg loudnorm or ffmpeg-normalize. sox --norm is peak-only.-t format flag: sox in.wav -t wav - | sox -t wav - out.wav effect.-n stats) reports DC offset, peak dBFS, RMS, bit-depth, crest factor — ideal for QC.Input: raw.wav (48 kHz 24-bit, interview with handling noise).
Steps:
# 1) profile 1s of room tone at the very start (trim it off later)
sox raw.wav -n trim 0 1 noiseprof noise.prof
# 2) denoise, trim, compress, peak-normalize, fade
sox raw.wav episode.wav \
noisered noise.prof 0.21 \
silence 1 0.1 1% -1 0.5 1% \
compand 0.3,1 6:-70,-60,-20 -5 -90 0.2 \
gain -n -1 \
fade 0.05 -0 0.2
Result: cleaned, silence-trimmed, compressed, -1 dBFS peak, gentle fades.
sox -n tone.wav synth 3 sine 440 vol -20dB
sox -m voice.wav tone.wav mixed.wav
for f in *.wav; do sox "$f" -r 48000 -b 16 "out/$f"; done
sox FAIL formats: no handler for file extension 'mp3'Cause: MP3 not compiled in.
Solution: Use ffmpeg -i in.mp3 in.wav first, or pipe: ffmpeg -i in.mp3 -f wav - | sox - out.wav <effects>.
sox FAIL sox: Input files must have the same sample-rateCause: concat/mix with mismatched sample rates.
Solution: Resample first: sox a.wav -r 48000 a_48k.wav, then concat.
Cause: stacked gain or effects pushed peaks > 0 dBFS.
Solution: Append gain -n -1 at the end of the chain (normalize to -1 dBFS).
Cause: noisered sensitivity too high, or profile taken from non-stationary noise.
Solution: Drop the second arg to 0.15; re-profile from a purer, longer noise-only sample; confirm noise is stationary (HVAC, hiss) — transient clicks need adeclick-style tools (ffmpeg/LADSPA).
Cause: effect args on wrong side of filename, or missing one of the six arguments.
Solution: Full form is silence ABOVE-PERIODS DURATION THRESHOLD BELOW-PERIODS DURATION THRESHOLD — all six required for full trim.
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