by Leonxlnx
Sound effects for coding agents: ask in plain words and earshot renders the sound in code. CPU-only, no audio model, open source.
# Add to your Claude Code skills
git clone https://github.com/Leonxlnx/earshotLast scanned: 11/28/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-11-28T21:30:28.784Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}earshot is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Leonxlnx. Sound effects for coding agents: ask in plain words and earshot renders the sound in code. CPU-only, no audio model, open source. It has 6,043 GitHub stars.
Yes. earshot passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/Leonxlnx/earshot" and add it to your Claude Code skills directory (see the Installation section above).
earshot is primarily written in Python. It is open-source under Leonxlnx on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh earshot against similar tools.
No comments yet. Be the first to share your thoughts!
earshot makes sound effects for a coding agent, which cannot hear them. The agent asks in words; earshot answers from
a catalogue of 922 designs, most of the realistic ones recorded things rebuilt in code, and renders a new take of the
best one. When the catalogue has no such thing, the answer says so plainly, and earshot build makes it from
recorded parts: the agent names the parts in words, earshot finds a recording for each, lays them out as a recipe and
listens to the result with its own ears (a listening model) to say how well it fits and what is still off. earshot
also listens to any sound file and describes it in words and numbers.
It is made for agents such as Claude Code, which write the code of interfaces, games and films, and for the people who work with them. It runs on your own computer's CPU as a command line, a Python package, an MCP server and a Claude Code plugin, and every sound it makes is yours to use.
$ earshot make "three variations of a footstep on gravel" -o step.ogg
step_1.ogg: step/pebbles (0.51 s, peak at 0.10 s, -15 LUFS, clean) [gravel, footstep]
step_2.ogg: step/pebbles (0.40 s, peak at 0.07 s, -16 LUFS, clean)
step_3.ogg: step/pebbles (0.60 s, peak at 0.02 s, -16 LUFS, clean)
played: one event; the action: events=<n> or say it ("footsteps", "knocking", "three knocks")
also: step/gravel, step/floorboard, step/heels
The three files are three different real footsteps: step/pebbles is learned from recordings of steps on gravel
that are in the public domain, and each file is a new take rendered from them. What the catalogue lacks, the agent
builds with earshot build: Build what is missing.
npx skills add Leonxlnx/earshot # the agent skills
pip install "earshot @ git+https://github.com/Leonxlnx/earshot" # the tool
Install from GitHub: the name earshot on PyPI belongs to another project.
The earshot site plays all 922 sounds in the browser.
What is in the box:
earshot make): a catalogue of 922 designs in 384 families holds interface sounds, everyday
foley, ambience beds, game sounds, chip sound, drums, film and motion effects and three short music loops. 309 are
learned from 692 recordings in the public domain; no audio file is in the repository, and every sound is rendered
by code when it is asked for. Ready-made sets give an app, a game or a film its sounds in one call.earshot build, recipes): a sound made of recorded parts, laid out as a small JSON
recipe (scattered, repeated, bent in pitch, passing by, pulsing, drawn longer), heard and tuned by the listening
model. A cookbook of 99 recipes ships with it.forge), and fit, which turns a recording into code.earshot build, parts in words, recipesPython 3.10 or newer, CPU only; no GPU is used. ffmpeg on PATH is needed only to write ogg, mp3, m4a and webm (wav and flac are written without it) and to read video.
The base install makes sounds: make, make_set, sounds, recipes, the sound bank and film kits, and pack, on
the command line, in Python and as MCP tools. It brings numpy, scipy, soundfile, soxr and numba (about 350 MB
installed) and no model; nothing is downloaded when a sound is made.
pip install "earshot @ git+https://github.com/Leonxlnx/earshot"
earshot make "a soft success sound" -o success.wav
The first sound of a fresh install takes longer: numba compiles the synthesis loops once and keeps them on disk, so later calls start at once.
Listening, measuring and drawing come with extras, named in the brackets (several at once: earshot[listen,mcp]):
| extra | brings | for |
|---|---|---|
mcp |
the MCP SDK | earshot mcp, the MCP server and the plugin |
listen |
torch, transformers, librosa; the two listening models (about 1.1 GB to download, about 2.2 GB on disk) download on first use | describe, match, rank, find, compare, ab, realness, timeline, critique, profile, make --listen, the ears of build |
measure |
librosa | measure and find without the models |
images |
matplotlib, pillow | sheet, gallery, frames of a video, plots |
llm |
requests | the optional Gemini critique (earshot llm, your own API key) |
all |
every extra above |
A call that needs an extra that is not installed stops with one sentence that names the missing package and the
pip install command that adds it; earshot doctor lists what is installed. torch from the default index is large
on Linux (it brings CUDA); the CPU build is smaller:
pip install torch --index-url https://download.pytorch.org/whl/cpu # before the listen extra, optional
pip install "earshot[listen,mcp] @ git+https://github.com/Leonxlnx/earshot"
earshot doctor --fetch # downloads the listening models now (about 1.1 GB; 2.2 GB on disk), not on first use
As a uv tool, with the extras in the brackets (uv takes torch from the CPU index); update with uv tool upgrade earshot:
uv tool install "earshot[mcp] @ git+https://github.com/Leonxlnx/earshot"
To work on earshot itself, install from a clone:
git clone https://github.com/Leonxlnx/earshot && cd earshot
python -m venv .venv
.venv/bin/python -m pip install torch --index-url https://download.pytorch.org/whl/cpu # Windows: .venv/Scripts/python
.venv/bin/python -m pip install -e ".[all,dev]"
.venv/bin/python -m earshot doctor --load
The listening models. The first listening call downloads two open models (about 1.1 GB to download, about 2.2 GB
on disk) into .cache/hf inside a clone, ~/.cache/earshot/hf otherwise (or EARSHOT_HOME), each at a pinned
revision with safetensors weights: CLAP laion/larger_clap_general @ 16c8cc3 (text-audio embeddings) and the
AudioSet tagger MIT/ast-finetuned-audioset-10-10-0.4593 @ f826b80. After that earshot loads them from that
cache only and never contacts the Hub; a damaged cache is an error that names the folder, not a silent new
download. A cache made before 0.2.1 holds CLAP's revision ada0c23 as a pickle; earshot still loads it, never
downloads it, and earshot doctor --fetch replaces it with the pinned safetensors (776 MB).
Offline. EARSHOT_OFFLINE=1, HF_HUB_OFFLINE=1 and TRANSFORMERS_OFFLINE=1 all mean the same to earshot: it
never downloads, and a model missing from the cache is an error that says so. earshot never sets or clears them.
Settings (environment variables): EARSHOT_THREADS (torch CPU threads, default min(4, cores/2); the CLI and the
MCP server hold numpy and scipy's OpenBLAS to it too, unless OPENBLAS_NUM_THREADS is set), EARSHOT_HOME (the
cache root), EARSHOT_PRECISION (bf16 by default, used only on CPUs with native bf16 such as AVX512-BF16 or AMX,
fp32 everywhere else; fp32 forces fp32), EARSHOT_CLAP / EARSHOT_AST (another Hub model id, or a local model
folder with config.json and model.safetensors, loaded from disk as it is) and EARSHOT_CLAP_REVISION /
EARSHOT_AST_REVISION (another Hub revision; safetensors weights only). earshot doctor reports the revisions and
what the cache holds; --load also what loads.
earshot make reads a request, ranks the catalogue, renders a new take of the best design, checks it without models
(clicks, cut tails, clipping, DC) and writes the file. It loads no model and takes a few seconds for a one-shot.
$ earshot make "a soft success sound for a finance app" -o success.ogg
success.ogg: success/shutter (0.36 s, peak at 0.10 s, -15 LUFS, clean) [success]
also: complete/shutter, success/click, complete/chop
$ earshot make "a campfire" -o fire.ogg --dur 24
fire.ogg: fire/camp (24.00 s, peak at 19.96 s, -22 LUFS, seamless loop, clean) [campfire]
also: fire/large, fire/small, fire/whoosh
The first line of each file is the result: the design chosen, the length, where the loudest moment is (peak at),
the loudness, seamless loop for a loop, clean or what the check found, and the words that decided. also gives
three alternatives, to be taken with --sound ID. A request that names something the catalogue does not have still
gets a file, and the answer says so: earshot makes no fire alarm; timer/done is only the nearest sound it has,
with three starting points and the earshot build line that builds it. Lines such as not followed, not in this sound and not understood name what the request asked that this sound does not do. Every line and option:
docs/MAKE.md.
Name the thing, the job or the sound first; then feelings, material and numbers.
| the words | what they do | example |
|---|---|---|
| the thing, the job or the sound | choose the design: things ("a light switch", "a cork"), jobs ("success", "coin pickup", "toggle") and sounds ("chime", "whoosh", "rain") | "a notification" -> notify/knock |
| feelings | offsets on |