Sound design for video, as plain ffmpeg filtergraphs. 59 effects, from underwater, old radio and phone calls to trailer hits, risers and whooshes, built so coding agents (and people) can use them when they put a video together.
- One string, any pipeline. Every effect compiles to a filtergraph you pass straight to
ffmpeg -af. It works from the CLI, Python, Remotion or your own render script, and what you hear in the studio is exactly what renders. - Made for moments. Cinema elements (hit, riser, whoosh, sub drop, braam, a gap before the drop, a cut with a tail) are synthesized and land on the exact second you mark, with no licensed samples in the repo. When a recorded sound works better,
layermixes your own sample in at that second, attack first. - Agents know when to use what. Each effect ships with a description and "when to use it", and two skills teach Claude Code and Codex how to pick, chain and mix them.
- ElevenLabs built in. Generate a sound effect, a voice or a song from a prompt and run it through any effect in one step.
You need Node 20+, pnpm and ffmpeg 7 (the gyan.dev builds on Windows, brew install ffmpeg on macOS).
git clone https://github.com/NachoEstevo/audiofx.git
cd audiofx
pnpm install
pnpm studioThe studio opens at http://127.0.0.1:5177. Pick an audio, tap a sound to hear it on your audio, hold A to compare with the original, and add the ones you like to your chain to tweak and export them.
The studio has three screens. Sounds is the one above. Mix loads a video, marks its cuts, lays voice, music and effects on a timeline with the music ducked under the voice, and exports the mix or the video with the new audio. Review walks every effect over your audio so you can mark each one keep, tweak or cut; verdicts are saved in ~/.audiofx/review.json.
node bin/sfx.mjs doctor checks ffmpeg and the filters the catalog needs.
sfx apply voice.wav call.wav telephone
sfx apply clip.mp4 clip-fx.mp4 "underwater:depth=0.8@3.2-7" loudness
sfx apply mix.wav mix-hit.wav "riser:at=6" "drop-gap:at=5.55" "hit:at=6"
sfx apply mix.wav mix-door.wav "layer:file=door.wav,at=6,align=onset" # a recorded sample on the cut
sfx graph "reverb:space=cathedral,mix=0.4" # just the filtergraph
sfx list # the catalog
sfx describe am-radio # params and when to use itA step is effect[:param=value,...][@from-to]. Steps run in order, @from-to limits an effect to a window, and video outputs keep the picture untouched. Run pnpm link --global to get sfx on your PATH, or call node bin/sfx.mjs. The full catalog is in CATALOG.md.
sfx cuts clip.mp4 # the hard cuts: where hits and whooshes land
sfx mix final.mp4 --video clip.mp4 --voice vo.wav --music song.mp3 --sfx door.wav@6
sfx mix final.mp4 --video clip.mp4 --voice vo.wav --music song.mp3 --print > mix.json
sfx mix mix.json final.mp4 # the same from a project file you can edit
sfx sections song.mp3 # where a track rises (drop candidates) and falls
sfx apply interview.wav clean.wav denoise voice-clean de-essersfx mix lays voice, music and effect tracks on a timeline, ducks the music under the voice by an exact depth in dB, and brings the master to a loudness target (-14 LUFS by default) under a -1 dB ceiling. A project file adds per-clip, per-track and master effect chains, so the stems of a song can be separate tracks and only the drums go underwater. Video outputs keep the picture untouched.
Add an ElevenLabs API key and generate the raw material right where you process it:
sfx generate voice "Hey, it's me. Open the door." call.wav voice-clean telephone
sfx generate music "Upbeat indie pop, 120 bpm" song.wav "underwater@12-18" --duration 30 --instrumental
sfx generate sfx "Heavy wooden door slams in a stone hallway" door.wav "reverb:space=hall,mix=0.25"To connect, run npx -y @elevenlabs/cli@latest onboard init (it writes a .env) or put ELEVENLABS_API_KEY=... in ~/.audiofx/.env. The key stays on your machine. Generations are kept in ~/.audiofx/generated so you can reuse them, and the studio has a Generate tab that does the same.
pnpm skill:installThis installs two skills into ~/.claude/skills and ~/.codex/skills:
- sound-design: which effect fits each scene, chain order, sync and tail rules, recipes for Python, Remotion and ducking.
- elevenlabs-fx: connecting to ElevenLabs (API key, hosted MCP, official skills), prompting sound effects, and recipes that combine generation with effects.
The studio lists the audio in ~/Music and ~/Downloads. To use other folders, create ~/.audiofx/library.json:
{ "folders": ["C:/Users/you/Videos/media", "D:/Projects/sounds"], "exclude": ["client-x", "old takes"] }exclude is optional: it hides the files whose path contains any of those texts.
Recorded sounds you want to layer (from a sound library subscription, a generation, your own recordings) go in ~/.audiofx/samples, each with a small .json that records where it came from:
sfx sample add door.wav --title "Door slam, heavy wood"
sfx sample listThey show up in the studio's Samples tab, and the moments can use one instead of the synthesized impact or whoosh. Samples stay on your machine: the repo's .gitignore excludes audio, and the studio only ever handles library ids, never paths.
pnpm test # effects render without NaN, keep sync, hit their frequency targets
pnpm typecheck
pnpm catalog # regenerate CATALOG.md from src/core/effectsHow it is built (filtergraph compilation, gain staging, the WebGL orbs) is in docs/DESIGN.md.
- Waveform and scrubber adapted from ElevenLabs UI (MIT). The studio takes ElevenLabs' product style as a visual reference without using their brand.
- The fluid orbs and the logo are adapted from Rare UI's FluidOrb (MIT + Commons Clause + attribution).
- Motion and interaction details inspired by transitions.dev and detail.design.
MIT. Third-party components keep their own licenses, noted in the file headers and in the LICENSE file.
