text-to-speech

text-to-speech is a skill for Claude Code from eins78/agent-skills. It costs 85 tokens per session (2,839 once invoked), scanned A, original, MIT.

A local text-to-speech pipeline that turns a text document into an MP3 audio file. Text-to-speech means generating spoken audio from written words.

In plain words
What is it for?
Use it to prepare a document for narration, normalize its text, create a narrative version when needed, and render the result as an MP3.
Why use it?
It handles preparation of the text and audio rendering in one workflow, while requiring the spoken narrative to be prepared explicitly. It does not install the speech-generation backend.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Part of the eins78-skills plugin — 15 skills shipped together

Good fit Use it to prepare a document for narration, normalize its text, create a narrative version when needed, and render the result as an MP3.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eins78/agent-skills/text-to-speech
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add eins78/agent-skills --skill text-to-speech
Clone the repo
git clone --depth 1 https://github.com/eins78/agent-skills

Made for: Claude Code.

Or install eins78-skills, the plugin that ships this one along with the rest of its 15 skills.

Its marketplace also offers this one on its own, as the plugin text-to-speech/plugin install text-to-speech after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for text-to-speech

README.md
[![agentmods](https://agentmods.dev/badge/skills/eins78/agent-skills/text-to-speech/github.svg)](https://agentmods.dev/skills/eins78/agent-skills/text-to-speech)
Your own site
<a href="https://agentmods.dev/skills/eins78/agent-skills/text-to-speech"><img src="https://agentmods.dev/badge/skills/eins78/agent-skills/text-to-speech/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for text-to-speech

Your own site · 80×15
<a href="https://agentmods.dev/skills/eins78/agent-skills/text-to-speech"><img src="https://agentmods.dev/badge/skills/eins78/agent-skills/text-to-speech.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,839 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.02839
Opus 5 $0.00043 $0.01419
Sonnet 5 $0.00017 $0.00568
Haiku 4.5 $0.00009 $0.00284

Measured 10d ago against content hash 46faeab3069c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

text-to-speech scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/backends/kokoro.sh, scripts/backends/lib/chunk_and_rewrite.py, scripts/backends/lib/inject_chapters.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/text-to-speech/SKILL.md · 229 lines

How it starts

The opening of the file, as written. The whole thing — 229 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 bare synth-audio.sh input.md output.mp3 with no existing narrative.txt now fails loudly instead of silently shelling out to claude --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 setup

Backend 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 overrides

Read the full file on GitHub · 229 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 229 lines · 85 tokens per session scan A 46faeab3069c

Subscribe to this mod's changes

text-to-speech is a skill published in the GitHub repository eins78/agent-skills (2 stars, last pushed 3d ago), licensed MIT. It adds 85 tokens to every session and 2,839 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

video-shotcraft

Create cinematic product videos from shot recipe cards, a validated template, and code/audio assets (Remotion + real page screenshots + 2.5D camera moves + beat-synced cuts + sound design). Use when the user asks to turn a frontend project or webpage into a product video, says "use video-shotcraft to make a…

Vincentwei1021/video-shotcraft · 204 tokens

xiaohongshu-auto-posting

Automates the complete Xiaohongshu (XHS / Little Red Book) content operation workflow: pain-point topic collection → style case collection → topic selection → content writing → publishing → performance tracking. Use when user mentions xiaohongshu auto posting, xhs auto post, little red book posting, xiaohongshu post…

browser-act/skills · 182 tokens

tiktok-shop-branding

Brand building and positioning on TikTok Shop. Brand identity development, content pillars, community engagement, brand storytelling, and authenticity strategies. Use when the user asks about TikTok branding, brand building, brand identity, or brand positioning on TikTok.

nexscope-ai/eCommerce-Skills · 55 tokens

tiktok-shop-content-strategy

TikTok Shop content creation strategy and planning. Trending formats, viral hooks, product showcasing, hashtag strategy, and content calendar development. Use when the user asks about TikTok content strategy, viral content creation, TikTok marketing, or content planning.

nexscope-ai/eCommerce-Skills · 56 tokens

ppt-design-skill

Design, generate, review, and revise editable PowerPoint presentations through a rigorous brief-to-PNG workflow using the public pptx-designer Python library.

sunchaokun/PPT-Design-Skill · 35 tokens

etsy-digital-products

Digital product creation and selling — templates, printables, planners, digital art, delivery setup.

nexscope-ai/eCommerce-Skills · 23 tokens