Leonxlnx/earshot
A CPU-only MCP server that turns agent requests into sound effects and audio reports
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
earshot is a CPU-only Python audio engine exposed through a CLI, Python API and MCP server, with a Claude Code plugin for agent integration. earshot make interprets a prompt, ranks named catalogue designs, renders a fresh take, and checks and writes the file. NumPy, SciPy, SoundFile, soxr and Numba are part of the base stack. Designs use procedural synthesis or representations learned from recordings; the render path does not load a general-purpose audio generation model.
earshot build adds a composition path: it maps part descriptions to source designs and layer controls such as timing, repetition, motion and gain. With listen, the render is evaluated by the listening models and the recipe is tuned through a seeded search. That analysis path brings in PyTorch, Transformers and librosa. MCP support is a separate extra that adds the SDK, so an agent can call synthesis tools without installing the listening stack.
Key Capabilities & Differentiators
make covers 922 designs in 384 families, spanning UI cues, foley, ambience, games, drums and motion effects. It can render isolated events, repeated actions, variations and ambience loops. Prompt controls include duration, gaps, pitch and eight shared sound axes; explicit options take precedence. Results report the selected design, duration, peak timing, LUFS and signal checks. When the catalogue lacks the requested sound, the tool can write a nearest match while flagging the mismatch and offering alternatives.
build writes a WAV and a recipe JSON, and reports how it mapped each requested part and which words it did not understand. Preset sets cover UI (17 sounds), game (22), arcade (16) and film (17); custom JSON specs, manifests and optional audio sprite maps help wire assets into an application. Output defaults to 48 kHz stereo with a --mono option. WAV and FLAC are written directly; Ogg, WebM, M4A and MP3 export require ffmpeg. Optional analysis tools include describe, match, compare, timeline and critique.
Trade-offs & Limitations
Compared with an open-ended text-to-audio generator, earshot is easier to control when the sound already has a useful catalogue design or can be decomposed into layers. It gives an agent design IDs, alternatives, signal checks and explicit mismatch reports rather than just an audio file. The cost is narrower coverage: a nearest match can still miss the defining sound, and layering does not guarantee that a listener will recognize the intended scene. English is the practical prompt default; German support is limited to a table of common sound words.
Compared with a sample library, earshot can produce new takes and consistent asset sets without distributing the original recordings, but it cannot substitute for auditioning a specific performance or recording. Model feedback complements human review rather than proving a sound is right for a mix. Base rendering avoids a per-call cloud dependency, while listening adds model downloads, storage and CPU work. For web delivery, prefer the WebM/MP3 pairing where older Safari support matters: Ogg Vorbis is unsupported before Safari 18.4.
Hardware & Deployment Guide
Use Python 3.10 or later and install from GitHub: pip install "earshot @ git+https://github.com/Leonxlnx/earshot". The PyPI name belongs to a different project. The base install occupies about 350 MB, renders locally without downloading models, and has a first-render cost while Numba compiles and caches synthesis loops. Add ffmpeg to PATH for video input or the compressed export formats that require it.
For agents, install earshot[mcp] from GitHub and run earshot mcp; add listen only where analysis is needed. earshot doctor --fetch preloads the two listening models for offline use (about 1.1 GB downloaded and 2.2 GB on disk). The uv tool installation uses the CPU PyTorch index when PyTorch is needed, avoiding the large default Linux CUDA dependency set. Gemini critique is an optional API-key path. v0.4.0 focused on turning audio into evidence for agents, v0.4.1 streamlined uv installs and upgrades, and v1.0.0 added text-driven catalogue rendering.
make reports the selected design, duration, peak timing and LUFS, and checks for clicks, cut tails, clipping and DC without a listening model.build --part maps phrases to layers and, with model-based feedback, tunes the recipe through a seeded search and writes WAV plus recipe JSON.earshot mcp, the Claude Code plugin, CLI and Python API expose the audio workflow without requiring an external generation service.listen, measure and images extras let teams add model-based analysis, measurements or plotting without burdening a rendering-only install.Agent-assisted UI, game and motion projects that need local sound variants, batch asset delivery and file-level checks an agent can read.
You need arbitrary soundscapes from prompts, a particular recorded performance, or final mix approval without human audition.
Quick Start & Installation
npx skills add Leonxlnx/earshot # the agent skills pip install "earshot @ git+https://github.com/Leonxlnx/earshot" # the tool
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Leonxlnx/earshot.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about earshot
How should I integrate earshot into an agent workflow?
mcp extra and use earshot mcp for agent tool calls. Use the CLI for build scripts or the Python API for code that calls earshot directly. The Claude Code plugin and agent skills are separate integration options; installing skills does not replace installing the Python tool. Add listen if the workflow needs model-based audio analysis or feedback on a render.Do I need a GPU, and what resources should I budget?
Can I self-host earshot and ship the rendered audio in a commercial product?
When is earshot a better fit than a sample library or a text-to-audio model?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy