text-to-speech
Skill2 starsChanged 4 months agoMITView on GitHub
Use when you need to convert a text document to an audio file via a local TTS pipeline. Outputs MP3. Handles narrative rewrite, text normalization, prosody prep, and audio render. Backend is configurable. Triggers: text to speech, narrate document, make audio from text, synthesize speech, TTS, MP3 from document, convert to podcast, audio version of document.
- Installs packages
13 other projects use a version of this.
Adopted by
Most recently taken up by
- calesthio/OpenMontagetheir own version, first seen Oct 3, 2026
- pjmuller/skillstheir own version, first seen Oct 3, 2026
- RobStrayer/voice-agent-skillstheir own version, first seen Oct 1, 2026
- elevenlabs/skillstheir own version, first seen Sep 30, 2026
- sarvamai/skillstheir own version, first seen Sep 28, 2026
- dmccreary/ibook-skillstheir own version, first seen Sep 27, 2026
Used with
Projects with it also use voice-changer, sound-effects and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
wlzhSkillvoice-changer
音频变声处理工具 - 使用 RVC AI 模型进行真实的声音转换,支持视频直接输入
Also in 4 projects that use this
awesome-genmediaSkillsound-effects
Generate custom sound effects using each::sense AI. Create realistic and stylized audio for any scenario including impacts, ambiences, foley, UI sounds, nature, mechanical effects, and transitions. Powered by stable-audio-2-5 for precise audio generation. Use for: video production, game development, podcasts, apps, UI/UX, presentations, film. Triggers: sound effect, sfx, audio effect, foley, generate sound, ambient sound, ui sound, impact sound, whoosh, explosion, nature sound, notification sound, create audio
Also in 4 projects that use this
elevenlabsSkillspeech-engine
Add real-time voice conversations to a custom agent runtime with ElevenLabs Speech Engine. Use when building Speech Engine servers, WebSocket handlers, WebRTC browser clients, conversation token endpoints, interruption-aware streaming responses, or voice-enabled chat agents that connect developer-owned server logic to ElevenLabs speech-to-text and text-to-speech.
Also in 3 projects that use this
elevenlabsSkillvoice-isolator
Remove background noise and isolate vocals/speech from audio using ElevenLabs Voice Isolator (audio isolation) API. Use when cleaning up noisy recordings, removing music or background ambience from dialogue, isolating speech from field recordings, preparing audio for transcription, extracting vocals, or any "denoise / clean up / isolate voice" task.
Also in 3 projects that use this
perso-aiSkilldubbing
Auto-dub (voice-translate) videos into other languages, with lip-sync (Perso AI Dubbing).
Also in 4 projects that use this
sonilo-aiSkillsetup-api-key
Guides users through connecting to Sonilo — signing in with `sonilo login` (OAuth, no key), the remote OAuth plugin for Claude Code or Muse Code, or an API key for CI and headless use. Use when the user needs to configure Sonilo, wants to sign in or connect their Sonilo account, when Sonilo tools are missing, or when a call fails because no key or credential is available. First checks what already works, and only runs full setup when needed.
Also in 3 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- calesthio/OpenMontage★ 63ksame name
- wlzh/skills★ 617same name
- elevenlabs/skills★ 472same name
- dmccreary/ibook-skills★ 105same name
- sarvamai/skills★ 73same name
- martinholovsky/claude-skills-generator★ 47same name
- awesome-genmedia/skills★ 36same name
- Harmeet10000/skills★ 7same name
- claude-world/claude-agent★ 4same name
- elevenlabs/plugin★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-council-reviewSkill
- ai-reviewSkill
- apple-mailSkill
- apple-notesSkill
- ballotSkill
- chrome-browserSkill
- dossierSkill
- lab-notesSkill
- pandocSkill
- paprika-recipesSkill
- pdf-zineSkill
- private-podcast-feedSkill
- send-to-kindleSkill
- tmux-controlSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
Place synth-backend.yaml in your project root to override CLI defaults:
- Very specific: line 68
When --backend kokoro (default), the pipeline runs four layers:
- Very specific: line 74
Do NOT let synth-audio.sh/pipeline.py shell out to claude --print for you — a nested claude --print launched from inside your own session …
- Distinctive: line 86
Read the input document.
- Very specific: line 124
Place phoneme-dict.yaml in your project root for project-specific proper nouns:
- Very specific: line 141
Place stress.yaml in your project root:
- Very specific: line 175
After render, transcribes the MP3 with Whisper and reports IPA regressions, missing ordinal patterns, and unexpected artefacts.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
text-to-speech
Converts a text document to an MP3 audio file via a local TTS pipeline. The skill ships a wrapper script (synth-audio.sh) with a clean text → audio-file interface. The current backend is Kokoro-82M; swapping backends is a config change.
Does NOT install any TTS backend. See Backend Dependencies.
v2.0.0 breaking change: the narrative rewrite (L1) no longer runs automatically inside
synth-audio.sh. If you're a driving Claude Code agent, dispatch a rewrite subagent first — see L1 Narrative Rewrite below — this is the normal way to use the skill now, not an edge case. A baresynth-audio.sh input.md output.mp3with no existingnarrative.txtnow fails loudly instead of silently shelling out toclaude --print(that nested call could inherit your session's output style/CLAUDE.md and leak meta-commentary into the audio — see L1 Narrative Rewrite for why). For headless/standalone use, pass--allow-inline-llm-rewrite.
Quick Start
${CLAUDE_SKILL_DIR}/scripts/synth-audio.sh input.md output.mp3 --skip-layer 1
# ^ requires <output.mp3>.workdir/narrative.txt to already exist — see
# "L1 Narrative Rewrite" below for how to produce it (subagent dispatch)Copy and configure backend settings (optional):
cp ${CLAUDE_SKILL_DIR}/templates/synth-backend.yaml.example ./synth-backend.yaml
# Edit synth-backend.yaml to match your setupBackend Config (synth-backend.yaml)
Place synth-backend.yaml in your project root to override CLI defaults:
backend: kokoro # current: kokoro | future: orpheus | ...
kokoro:
voice: am_puck # validated voice (R5, 5-round iteration)
speed: 0.92 # validated speed — see Kokoro backend section
phoneme_dict: ./phoneme-dict.yaml # optional IPA overrides
stress_hints: ./stress.yaml # optional emphasis overridesSee ${CLAUDE_SKILL_DIR}/templates/synth-backend.yaml.example for annotated defaults.
Kokoro Backend
When --backend kokoro (default), the pipeline runs four layers:
L1 narrative rewrite (LLM) → L2 normalization → L3 prosody prep → render
L1 Narrative Rewrite — dispatch a subagent (do this first)
If you are the driving Claude Code agent, do this before calling synth-audio.sh.
Do NOT let synth-audio.sh/pipeline.py shell out to claude --print for you —
a nested claude --print launched from inside your own session inherits your
active output style, project CLAUDE.md, and any other session framing, and
can return meta-commentary instead of a rewrite (observed failure: a literal
★ Insight block rendered into the audio). Dispatching a subagent via the
Agent/Task tool gives a genuinely isolated context instead.
- Determine
<workdir>=<output.mp3 path with .mp3 stripped>.workdirandmkdir -pit (this matches the directory the backend itself creates). - Dispatch one subagent (general-purpose) with a self-contained prompt:
- Read
${CLAUDE_SKILL_DIR}/scripts/backends/prompts/narrative-chapter-focused.mdand follow it exactly as the rewrite rules. - Read the input document.
- Output ONLY the rewritten prose with
[[CHAPTER: ...]]markers — no preamble, no explanation, no markdown fences, no commentary about the task itself. - Instruct it to write the result directly to
<workdir>/narrative.txt(via Write) and return only a short status line — don't have it return multi-thousand-word prose through the tool result. - For documents >5000 words, either let the subagent chunk internally by
H2, or dispatch one subagent per H2 section in parallel and concatenate
— this replaces
chunk_and_rewrite.py's ownclaude --printcalls when you're running inside a session.
- Read
- Run:
${CLAUDE_SKILL_DIR}/scripts/synth-audio.sh input.md output.mp3 --skip-layer 1 [other flags]pipeline.pyvalidatesnarrative.txt(chapter markers present, word count plausible vs. the source, no known contamination patterns) before continuing to L2/L3/render — if validation fails it exits loudly rather than rendering audio from a bad narrative. Re-dispatch the subagent and retry.
Standalone / headless (no driving agent present): pass
--allow-inline-llm-rewrite to synth-audio.sh. This falls back to an
isolated inline claude --print --safe-mode call inside the pipeline
(--safe-mode disables CLAUDE.md auto-discovery, output styles, hooks,
plugins, and custom agents/commands). It's a weaker guarantee than subagent
dispatch — there's no independent process boundary confirming isolation
beyond the flag itself — so validate_narrative() still runs as the
backstop either way. Prefer subagent dispatch whenever a driving agent is
available.
Voice and Speed
- Voice:
am_puck(validated across 5 rounds of iteration) - Speed:
0.92×— empirical: at 0.95+ the/s/→/k/transition in compound nouns like "Six key concepts" slurs to "Zik's"; 0.92 is the last clean value
Phoneme Dictionary (L3a)
Place phoneme-dict.yaml in your project root for project-specific proper nouns:
terms:
MyProduct:
ipa: "mˈaɪ pɹˈɒdʌkt"
notes: "Default G2P stresses wrong syllable"MUST use [word](/IPA/) Markdown-link form. Bare /IPA/ is not reliably parsed — in Round 4 misaki voiced IPA characters as literal names ("slash D stress I slash"). The backend applies the link form automatically from your dict entries.
⚠️ Do NOT add entries where default G2P is already correct. misaki will voice the word twice ("Letta Letta"). Test with --verify before committing new entries.
See ${CLAUDE_SKILL_DIR}/templates/phoneme-dict.yaml.example for format and warnings.
Stress Hints (L3b)
Place stress.yaml in your project root:
emphasize:
- not
- only
- critical
deemphasize: []⚠️ deemphasize MUST stay empty. Round 4 regression: ~650 (-1) wraps on articles, pronouns, and linking verbs produced a "timid, reserved" cadence that listeners flagged in review. Known-unsafe: articles (the, a, an), pronouns (I, you, it, they, we), be-forms (is, are, was, were), filler adverbs (just, really, very, quite). Do NOT re-add.
See ${CLAUDE_SKILL_DIR}/templates/stress.yaml.example for safe examples with commentary.
Em-Dash Chunking (L3c)
Kokoro only creates chunk boundaries at ., !, ?. An em-dash does not force a breath pause. The pipeline converts X — Y to X. — Y — adding a pause while preserving the em-dash's intonation curve (removing the dash entirely produced flat, mechanical prosody).
List Prosody (L1 prompt rules)
The narrative rewrite enforces a spoken-list structure:
- Announce list length up front ("Here are six requirements.")
- Period-terminate every item
- Ordinal words (First, Second… Tenth) — not numerals
- Sub-opener topic sentence for items >40 words
- Anchor + capstone for nested sub-lists ("So that is the first tier. Next, the second tier…")
Whisper Self-Check (--verify)
${CLAUDE_SKILL_DIR}/scripts/synth-audio.sh input.md output.mp3 --verifyAfter render, transcribes the MP3 with Whisper and reports IPA regressions, missing ordinal patterns, and unexpected artefacts. Requires mlx-whisper (Apple Silicon; uv pip install mlx-whisper).
ID3 Lyrics (USLT) — narrative debug artefact
The backend embeds the final narrative.txt (chapter markers stripped to
plain title lines) into the rendered MP3's ID3 USLT (lyrics) frame by
default — the spoken text travels inside the file, so you can compare it
against the source without a separate artefact. Pass --no-lyrics to
synth-audio.sh to skip it. Read it back with:
uv run --with mutagen --no-project python -c "
from mutagen.id3 import ID3
id3 = ID3('output.mp3')
for k, f in id3.items():
if k.startswith('USLT'):
print(str(f.text))
"Backend Dependencies
The skill does NOT install or configure backend software. Caller must provide:
- Kokoro-82M:
uv pip install kokoro(hexgrad/kokoro) - Python 3.11+ with
uv - ffmpeg:
brew install ffmpeg - espeak-ng: conditional dependency —
brew install espeak-ngas a fallback. Kokoro'smisakiG2P depends onespeakng_loader, whose bundledlibespeak-ng.dylibdata-path resolution is not reliably correct on every install (observed: byte-identical dylib+data works fine from a normally-located venv, hard-aborts before Python can flush stdout from a venv nested under a long path — it's install-dependent, not universal).kokoro.shruns a probe-first preflight (macOS): it actually exercisesmisaki's G2P once, and only if that fails does it symlink the loader's dylibs to a Homebrewespeak-ngbuild — silent and a no-op when the bundled path already works. If TTS aborts with anespeak-ng-datapath error and you don't haveespeak-nginstalled via Homebrew, that's the fallback you need. VIRTUAL_ENVmust be set in the calling environment.misakiauto-installs theen-core-web-smspaCy model viauv pip installon first use; underuv run --no-projectwith no activeVIRTUAL_ENVthis fails with an unhelpful "No virtual environment found" (exit 2, no traceback).kokoro.shchecks this upfront and fails loudly with the fix (export VIRTUAL_ENV=/path/to/your/venv) rather than letting the render fail deep inside misaki.- mutagen:
uv pip install mutagen(for ID3 chapter + lyrics injection) - mlx-whisper (optional, for
--verify):uv pip install mlx-whisper
Known Kokoro Limitations
- Phoneme doubling: Adding a phoneme-dict entry where G2P is already correct renders the word twice. Drop the entry; test with
--verify. - Whisper vocabulary gaps: Novel compounds (atproto → "AppProto"). Gloss in prose on first mention.
- Chunker edge cases:
etc.,e.g.may survive L2 normalization. Spot-check the Kokoro text output.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

