# Repository Briefing: Leonxlnx/earshot
> Source: https://repoforai.com/repo/Leonxlnx/earshot (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Leonxlnx/earshot
- **Official Docs / Website**: https://leonxlnx.github.io/earshot-site/
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (92/100 · Maintenance 35/35 · Adoption 17/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v1.0.0 (2026-11-20) — https://github.com/Leonxlnx/earshot/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Self-Hosted, Local AI, MCP, CLI
- **Momentum**: 6,415 ★ total (+7 24h / +474 7d) · 475 forks
- **Topics**: `ai-agents`, `audio`, `claude-code`, `mcp`, `sfx`, `sound-design`, `sound-effects`
- **When to Use**: Best for: Agent-assisted UI, game and motion projects that need local sound variants, batch asset delivery and file-level checks an agent can read. Skip if: You need arbitrary soundscapes from prompts, a particular recorded performance, or final mix approval without human audition.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Catalogue: 922 designs across 384 families; 309 designs learned from 692 public-domain recordings, with no audio files shipped in the repository.
- Render diagnostics: `make` reports the selected design, duration, peak timing and LUFS, and checks for clicks, cut tails, clipping and DC without a listening model.
- Layered composition: `build --part` maps phrases to layers and, with model-based feedback, tunes the recipe through a seeded search and writes WAV plus recipe JSON.
- Asset delivery: UI, game, arcade and film presets or a custom JSON spec produce asset sets with manifests and optional sprite maps.
- Agent integration: `earshot mcp`, the Claude Code plugin, CLI and Python API expose the audio workflow without requiring an external generation service.
- Audio analysis: Separate `listen`, `measure` and `images` extras let teams add model-based analysis, measurements or plotting without burdening a rendering-only install.
```

## Quick Start / Clone
```bash
npx skills add Leonxlnx/earshot                                   # the agent skills
pip install "earshot @ git+https://github.com/Leonxlnx/earshot"   # the tool
```
