/sound-design:earshotfrom sound-design
Make and audition sounds with earshot when a product, game, page, animation or film needs sound and no recording is at hand: UI sounds, foley, ambience beds, game sounds. Also use it to judge, choose, trim or compare audio you cannot hear, before telling anyone how audio sounds.
Ships in sound-design. 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.
The full catalogue (interface sounds, foley, ambience beds, game sounds, recipes and parameters) is in references/making-sounds.md. Read it before synthesizing any sound; the loops below cover listening and judging.
You cannot hear. Never say how audio sounds, or that a sound "fits", without an earshot reading behind it, and quote
the number when you report ("strong match, z +3.9; p_real 0.96; -14.2 LUFS"). earshot runs locally on CPU (audio
never leaves the machine, except with the optional llm command) and caches every embedding and result on disk.
Each CLI call is a new process that loads the models first (~20-40 s, even for a cached file); inside the MCP server
or one Python script the models load once and repeat calls take seconds. For more than a handful of calls, use MCP
or a short script (from earshot import api; api.find(...); api.realness(...)). Any ffmpeg-readable file works,
including the audio of an mp4.
earshot rank "a soft felt mallet hit on a wooden block" downloads/sfx/ --top 5 - shortlist from a folder.earshot find winner.ogg "a single clean mallet hit" --top 3 - the best moments as sample trims (start / end in
seconds). Each segment has a kind: stroke (one onset until it decays) and event (strokes that belong together,
e.g. a key's down + up) start 5 ms before the attack and end after the decay; window is a stretch whose edges
find snapped onto the sound for one-shot queries (a plain stretch, to be crossfaded, for beds). head / tail =
how loud the first 5 ms / last 10 ms are against the trim's peak (-30 dB or lower = clean); a trim marked
'head cut' or 'tail cut' starts or ends inside a sound: do not use it as is. --kind event returns onset-based
trims only (hits, clicks, steps), --kind texture plain windows only (beds); the default reads the query.earshot describe winner.ogg --start 1.12 --end 1.48 - what it actually sounds like; check the top tags fit what
you need and the shape (attack / decay) fits the picture. AudioSet labels are weak on one-shots under ~0.5 s:
'tagger unsure' or a near class (Zipper for a swish, Finger snapping for a click) is neutral; only an outright
different class (Speech, Music, Engine, Vehicle) is a red flag.earshot realness winner.ogg --start 1.12 --end 1.48 (or a whole folder) - judge the trim you will use: a
multi-take file's p_real is a mean over every take and the silence between them. When the user wants real or
professionally produced sound, do not use a 'likely code-synthesized' trim, and read the evidence of an
'uncertain' one before using it (write why you kept it). When synthesized sound is the point (procedural music, UI
tones, sounds made with earshot forge), realness is information, not a gate. The verdict thresholds depend on
length (each summary names them): a sound up to 6 s uses the clip thresholds (lo 0.17 / hi 0.77), a longer file
the mean of its 4 s windows with weakly calibrated file thresholds (lo 0.40 / hi 0.77), so compare verdicts, not
raw p_real, across files of different lengths. Realness hears how a sound sounds, not where it came from: clean
professionally synthesized tones (UI sounds, chimes, synth stabs) also read as code-synthesized. If realness is
unavailable (model missing), say plainly that real-vs-synthetic was not checked. Exact digital zeros alone prove
nothing (most real recordings have some edit or fade padding).earshot ab a.ogg b.ogg --query "a crisp fast air whoosh", with
--a-start/--a-end/--b-start/--b-end for trims from find (A and B may be the same multi-take file). Optional:
earshot match winner.ogg "a deep thocky key press" --alts "a clicky blue switch" "a typewriter key" to test one
claim, or earshot compare winner.ogg --refs approved/ [--start --end] to check it fits the palette.earshot timeline film.mp4 --cues cues.json (or soundtrack.wav --video film.mp4) - the listening transcript:
events with time, level and tags, sections, loudness curve, picture cuts, sync per cut / cue. --detail low is
fast, high tags up to 96 events (most important first; the summary says how many were tagged, so an untagged
event is not a missing sound). Read the sync stats: offset_ms = sound minus picture (negative = early), and the
'chance' fraction says what random edit points would score; only better-than-chance sync means anything. A cut
listed with no hit can still carry a soft whoosh: check it on the sheet before adding a sound.earshot sheet film.mp4 -o sheet.png --cues cues.json (--from 10 --to 25 zooms, --detail low is faster) -
an annotated PNG: frames, sections, labelled events, spectrogram, loudness, beats, cue markers coloured by sync
(green = within a frame, amber = within 100 ms, red = no sound). OPEN THE PNG with your image reader: gaps,
pile-ups, masking and late hits are obvious at a glance.earshot critique film.mp4 (--fast skips the AudioSet / realness passes) - scorecard against the measured
range of professional launch films: each metric ok / low / high with its weight and actions with timestamps, and
a verdict (launch-grade / close / needs work / not launch-grade). Fix critical rows first, re-run 1-3 on the new
render. Its "onset on visual events" share counts new attacks within +-100 ms only (the references' definition);
its fixes and tips name the cuts with no sound at all, by the same matcher as timeline. If the file is one of the
profile's own reference films, critique says so and scores it against the others.earshot measure mix.wav [--music] or the MCP measure tool.earshot ab before.wav after.wav --query "warm punchy kick" or --refs pro_refs/ - which is closer, and how B
differs from A in measured words (louder, brighter, longer decay). For sounds inside longer files pass the trims
(--a-start 1.217 --a-end 1.615 --b-start 7.881 --b-end 8.285): a whole-file A/B of multi-take files compares every
take plus the silence between them. Then earshot timeline after.wav and compare the event lines and sync stats
with the old run. Change one thing at a time.Use this when the user wants a sound written as synthesis code and refined against real reference recordings. It
takes minutes per round; for an ordinary sound use earshot make, and for a sound built from the catalogue's parts
use a recipe (above). Every sample must be computed (no recorded audio inside); real recordings are only the
references the critic compares with.
earshot/forge/recipes/<name>.py: SPACE (parameter ranges), DEFAULTS, TARGET,
ALTS (realistic confusions) and render(params, r) -> 48 kHz array, built from earshot.forge.dsp (modal
resonators, contact excitations, noise colours, a time-varying SVF, a computed room, a mic with a noise floor).
Model the physics of the real thing, measured on the references.earshot forge <recipe> --refs <real refs> --budget 144 --reps 2 --tone 1.5 --keep 4 --robust 8 --dir <round dir>, or in one Python script per round that loads the models once:
forge(recipe, critic=Critic(target, alts, refs, tone=1.5), reps=2, space={...}). --tone puts the model-free
tonal balance and tail into the objective; --reps 2 ranks each candidate by 2 renders. About 3-5 minutes per
160 renders on a laptop CPU, including a 30-60 s model warm-up.tone words (the most trustworthy
once the model scores are high), robust (the mean over new seeds), alt_zs (the closest confusion), and
spectrograms next to the references (ffmpeg -i x.wav -lavfi showspectrumpic=s=900x360:scale=log:legend=0 x.png).
The AudioSet tags in report.json are held out only while you do not pick or steer by them.report.json ref_scores,
leave-one-out).Goodhart, say it plainly: the search optimises earshot's own models, so made sounds routinely out-score real recordings on them, which means the critic is satisfied, not that the sound is better. p_real is easy to fool (modal resonators plus a room and a noise floor read "real"); typicality rewards being an average; after a search every model check puts the made sound inside the real ones. Judge by measured closeness to the references (tonal balance, bands outside every reference, tails, lengths), robust re-renders and spectrograms, and ask for a human blind test (random order, loudness-matched, hidden key) before calling a made sound "as good as real".
Use this when a code-made film (a cinetic film, any cue sheet) needs its effects: render them from earshot's shipped bank instead of writing synth voices. No models load; a whole kit renders in about a minute and re-renders in seconds.
earshot kit init --preset calm -o audio/kit.json (calm for text-led films, crisp for
energetic product films, minimal for designed effects-only films, launch for films cut to music). Each role's
note says why its sound was chosen. calm / crisp / minimal keep riser, swell and suck off: a reveal resolves on
one element, and the lockup is one clean hit. launch sounds one riser or reverse swell at a section change and
uses the sounds made for music-led films (below).earshot sfx list --kind hit (or --category) shows the candidates with lengths, peak times
and knobs. Change a role's sound, set edits (pitch to the film's root for the hit or drop, dur / apex for
a fixed move), takes (12 or more for typing, 2-4 elsewhere), level_db. Audition one candidate with
earshot sfx render ID -o x.wav [--pitch E5] [--dur 0.8 --apex 0.32] and read its measured onset / peak / end.earshot kit render audio/kit.json --out audio/kit. The takes and kit.lock.json (measured onset, peak,
end, loudness per take) are what the mixer places on cue frames: onset on the frame for hits and touches, the
peak on a whoosh's apex, the end on a riser's hit (its peak when the role aligns on peak, as launch's riser and
swell do: those members fall after their climax; kit check notes an end-aligned one).earshot kit check audio/kit.json --out audio/kit. It refuses what a render cannot use (a knob or pitch
the sound cannot take, a level over 0 dBFS, two takes that would share a file). Every warning names a take and a
reason (clicks, a cut tail, comb ring, silence, a pitch that climbs more than 4 semitones, a hit with two attacks
or a build before it, pitch_off: a note the knob did not land); swap the sound or the knob rather than keeping a
warned take. Read the notes too (a sounded riser, a composite sting).timeline --cues, sheet) and check that each cue landed.The families for films cut to music (earshot sfx list --category ui_pop, ...), for the soft, short,
mid-register sound of music-led launch films: ui_pop (rounded mid pops for chips, bubbles and rows arriving: the
most used effect in those films), knock (mid-band wood and plastic), cut_hit (short sub hits with a kick),
mallet (gated glockenspiel / celesta / marimba notes, a soft pluck, chime runs; --pitch tunes them), drip
(water drops whose pitch rises), shutter (snap zooms, whip-cuts), reverse_swell (peaks just after a cut, one a
film), plus whoosh_big thump*, riser dark / build / snatch, swish bright / flick, whoosh_fast whip, glitch burst / mid
/ chirp and notify mid_tine / mid_wood. Prefer them over the bright 5 ms blips and long cinematic tails of the older
categories when the film is cut to music.
Levels against the music, not fixed (launch, or any role with bed_db). In films cut to music effects ride 3-10
dB over the music and read by timing and spectrum: a fixed level_db is either buried in loud passages or sticks
out in quiet ones. For each cue, measure the bed and set the take from the lock:
from earshot.forge import kit
lock = kit.render('audio/kit.json', 'audio/kit') # takes carry l50_lufs; roles bed_db, offset_ms
role = lock['roles']['pop']; take = role['takes'][i]
bed = kit.bed_level(music, t_cue) # the music's median 50 ms level, second before
gain = kit.gain_db(take, role, bed) # dB on the take file (never over -1 dBFS peak)
start = kit.place(take, role, t_cue) # taps / knocks / clicks lead, whoosh peaks land after
cues = kit.space_run(run_times, role['min_gap_ms']) # a run keeps its gap (pops 114 ms, keys 87)
Pull the music down 6-12 dB for 0.3-0.5 s before a hit, a drop, a big whoosh or a swell and bring it back on the hit
(the lock's mix.stop_down); do not duck the music under every effect. Without a music bed (an effects-led film)
level_db is the fallback; where the music is silent before a cue (a cold open, a gap in the score) bed_level
returns None and gain_db uses level_db. Report the gains you set and the bed levels you measured.
Say plainly what the bank is: forge sounds made in code (some tuned toward the measured style of a private set of
licensed reference clips, and checked to stay originals: CLAP 0.84 at most against any of them), and 15 sounds fitted
as code from CC0 recordings (fit/<role>/<name>, each with its source; the presets use them for clicks, ticks, keys,
touches and the snap), all chosen and checked by measurement, none by a listening test. They are not recordings: when
the brief asks for recorded sound, use skills/real-sound instead. To add a fit of your own (earshot fit --takes,
then bank add-fit), see docs/SFX.md ("Add your own fit").
earshot llm mix.wav --yes-upload [--with-timeline] [--prompt "Is the riser at 0:12 cheap?"] asks Google Gemini for
a rubric critique (sync, realism, mix, loudness, what sounds cheap, fixes with times). It only runs when the user has
set GEMINI_API_KEY (or GOOGLE_API_KEY) AND explicitly agreed that the audio is uploaded to Google; ask first, never
pass --yes-upload / consent=true on your own. Only audio is sent (mono 64 kbps). Its timestamps are approximate and
its scores are one model's opinion: confirm every fix with timeline / ab.
| number | what it is | trust |
|---|---|---|
| LUFS, dBTP, LRA, dBFS, ms, Hz | measurements (BS.1770 meter, spectrum, envelope) | exact; use them for levels |
| z (match / rank / find / describe tags) | how far a description stands out among the few hundred vocabulary descriptions scored on the same sound | verdicts: z >= 3 strong, 2.5-3 plausible, 2-2.5 weak, < 2 no match (held-out evidence per band in eval/semantics/RESULTS.md) |
| p_vs_alts | uncalibrated, sharp forced choice between your query and your alternatives | only says which wording fits best; judge by z |
| cosine | raw CLAP similarity | never a probability; compare only for the same sound and query |
| AudioSet labels (0..1) | independent per-class probabilities from the AST tagger | good for broad classes; hears only up to 8 kHz |
| p_real / verdict | real or pro-produced vs code-synthesized, from a small fitted model | strong evidence, not proof; read its evidence list; thresholds differ for clips (<= 6 s) and long files (named in each summary) |
| digital_silence_frac | share of sample frames with every channel below 1e-6 in absolute amplitude | weak alone: edit / fade padding is common in real recordings |
| typicality z (compare) | distance to the reference set vs the refs' own spread | >= -1 fits the set, < -2 outlier |
| sync offset_ms, chance | sound minus picture per cut / cue; what random edits would score | trust when well above chance |
| critique status | value vs the range of 7 professional launch films (loudness: web-delivery practice; true peak <= -1 dBTP for a master, <= 0 dBTP for decoded AAC / MP3, which already holds the codec overshoot) | a range, not a target: ok = inside what pros do |
Prefer measurements, then verdicts / z / probabilities; never present cosine as confidence.
Describe the sound, not its use: source + material + action + character ("a heavy wooden door slamming in a small room", not "a sound for the logo"). Give alternatives that are realistic confusions (thock vs click vs typewriter). When a z is borderline, try two or three phrasings: trust a reading that holds up under all of them. Job words are not heard: "a soft rounded pop, something appearing" passed none of 9 real pops. To check a sound for a job, describe the job's sound two or three ways and keep the best reading (docs/VALIDATION.md).
This skill is the instructions; the tool is a Python package. If the earshot command is missing, install it from
GitHub (the name earshot on PyPI belongs to another project):
pip install "earshot @ git+https://github.com/Leonxlnx/earshot" # makes sounds: no model, no GPU
pip install "earshot[listen,mcp] @ git+https://github.com/Leonxlnx/earshot" # adds listening and the MCP server
earshot doctor # packages, ffmpeg, models (pinned revision, cache state); --load times them
Making sounds needs only the first line; ffmpeg on PATH is needed for ogg, webm, mp3 and m4a. Listening downloads two
open models (about 1.1 GB to download, about 2.2 GB on disk) on first use. In a clone of the repo,
pip install -e ".[all]" does the same from the folder.
earshot <command> ... [--json] [--out result.json]. Text output starts with a plain summary; times are
m:ss.ss in text and seconds in JSON. Errors are one line on stderr: earshot <command>: error: ..., exit 1.claude mcp add earshot --scope user -e EARSHOT_THREADS=3 -- /path/to/earshot/.venv/bin/python -m earshot mcp, or in any client's .mcp.json:
{"mcpServers": {"earshot": {"command": "/path/to/earshot/.venv/bin/python", "args": ["-m", "earshot", "mcp"], "env": {"EARSHOT_THREADS": "3", "GEMINI_API_KEY": "${GEMINI_API_KEY:-}"}}}} (the key line only for the optional
llm tool; never write a literal key into a project file). Tools: make, make_set, sounds (no models); build; measure,
describe, match, rank, find, compare, ab, realness, timeline, sheet, critique, doctor, llm_critique; the sound
bank (no models): sfx_list, sfx_render, kit_render. Pass absolute paths; full=true returns all JSON. If Claude
Code shows no earshot tools, start it with MCP_TIMEOUT=60000 (PowerShell: $env:MCP_TIMEOUT=60000; claude).
earshot mcp --warm preloads the models at startup.EARSHOT_THREADS=2-3 (or --threads 2 on any command).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub frzxw/supercharger --plugin sound-design12 skills in this plugin
/audio-hierarchyAudio priority and mix rules: voice over music, effects tied to picture, ducking, loudness. Use when layering voice, music and SFX, when music buries the voiceover, when a mix sounds muddy, or when checking loudness before export./effect-densitySets how many designed effects to place per ten seconds and where the loudest moment goes in a film. Use when a mix feels cluttered or empty, when deciding how many sound effects a video needs, or when placing the loudest moment on the drop./logo-stingClose on the logo with near-silence and one note, with the music stopping on a bar line and the logo sound 8-20 dB under the loudest moment. Use when ending a launch or brand video, adding a logo sound or sting, or deciding how a brand video should end.Other plugins' skills for the same job