/dev10x-qa:ttsfrom dev10x-qa
Synthesizes narration audio from text using local TTS engines (Kokoro for English, Piper for Polish/other languages) and assembles voice-over tracks for screen recordings.
Ships in dev10x-qa. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turns narration copy into audio with a locally-installed voice, then places the rendered lines on a timeline so they can be muxed onto a recording.
Everything runs through scripts/synthesize.py. Never call piper or
kokoro-tts directly — the wrapper owns engine selection, voice
resolution, the licence gate, the batching, and the failure messages.
| Kokoro | Piper | |
|---|---|---|
| Weights | Apache-2.0 — commercial use welcomed | per-voice; most good English voices are CC BY-NC-SA |
| Languages | 8 (no Polish) | 30+, including five pl_PL voices |
| Batching | one process per segment (~5s each) | one process for the whole batch (~1s) |
| Blending | --voice "af_sarah:60,am_adam:40" | none |
So English routes to Kokoro — which makes the commercial-use question
disappear on the default path instead of being negotiated per voice — and
Polish routes to Piper, which is the only engine that can speak it at all.
Kokoro's pf_/pm_ voices read as Polish at a glance and are Brazilian
Portuguese.
You never name an engine. It is inferred from the voice name's shape,
and the two namespaces cannot collide: af_heart is Kokoro,
pl_PL-gosia-medium is Piper.
uv tool install piper-tts
uv tool install kokoro-tts # requires-python <3.13; add --python 3.12 if needed
Piper voices are downloaded per voice; the downloader lives inside the
tool's venv and is not on PATH:
~/.local/share/uv/tools/piper-tts/bin/python -m piper.download_voices \
--download-dir ~/.local/share/piper/voices pl_PL-gosia-medium
Kokoro needs two files once, for all 50 voices:
mkdir -p ~/.local/share/kokoro
curl -L -o ~/.local/share/kokoro/kokoro-v1.0.onnx \
https://github.com/nazdridoy/kokoro-tts/releases/download/v1.0.0/kokoro-v1.0.onnx
curl -L -o ~/.local/share/kokoro/voices-v1.0.bin \
https://github.com/nazdridoy/kokoro-tts/releases/download/v1.0.0/voices-v1.0.bin
synthesize.py check reports both engines' readiness and prints the exact
command to fix whichever is missing. ffmpeg is required only for track.
| Command | Purpose |
|---|---|
check | Engine readiness (both), resolved voice, licence, acceptance |
pin | Persist the supervisor's voice choice to ~/.config/Dev10x/tts.yaml |
batch | Synthesize every segment |
track | Lay rendered segments at their offsets onto one voice-over WAV |
${CLAUDE_PLUGIN_ROOT}/skills/tts/scripts/synthesize.py check --lang pl
echo '{"segments":[{"id":"tc1","text":"One click assigns them."}]}' \
| ${CLAUDE_PLUGIN_ROOT}/skills/tts/scripts/synthesize.py batch --out-dir vo
${CLAUDE_PLUGIN_ROOT}/skills/tts/scripts/synthesize.py \
track --segments-file vo/narration.json --out vo/track.wav
--lang picks the voice for a language (en, pl); --voice names one
outright and outranks it.
batch returns each segment's wav and exact duration_ms. track
consumes the same list with an offset_ms per segment.
Every command prints JSON to stdout. On failure it prints
{"error": "..."} to stdout and exits non-zero, so a caller parses one
channel and never sees empty output on failure.
Most good English Piper voices are CC BY-NC-SA — no commercial use. QA
evidence recorded for client work is commercial use. The wrapper reports
this and never enforces it: an unaccepted non-commercial voice yields a
warning in the payload and licence_accepted: false, and synthesis
proceeds anyway.
On the built-in paths the gate no longer fires at all: Kokoro's weights
are Apache-2.0, and every pl_PL Piper voice is CC0, CC BY 4.0, or
Apache-2.0. It still fires for a Piper English voice chosen on purpose.
Piper licences are transcribed from the upstream MODEL_CARD files — a
voice's own .onnx.json has a license field that is null for every
voice checked. See references/voices.md for both
engines' tables and how to verify a voice not listed there.
REQUIRED: Call AskUserQuestion (do NOT use plain text) before the
first synthesis in a session when check reports a warning — that is,
the resolved voice is non-commercial or unknown AND not yet accepted.
Options:
af_heart (Apache-2.0) for English, pl_PL-gosia-medium (CC0) for
Polish.<voice> and accept its terms — records the acceptance so the
gate does not fire again for that voice.On either Switch / Keep, persist the answer so it is asked once:
${CLAUDE_PLUGIN_ROOT}/skills/tts/scripts/synthesize.py \
pin --voice af_heart --accept-licence
When check reports warning: null, the gate does not fire — asking
on every run is the friction the pin exists to remove.
Without --lang, resolved highest-first: --voice → DEV10X_TTS_VOICE
(or its DEV10X_PIPER_VOICE predecessor) → a matching projects[] entry
in ~/.config/Dev10x/tts.yaml → its defaults → the built-in af_heart.
With --lang (or DEV10X_TTS_LANG), the language-agnostic voice:
keys are skipped entirely and only languages: blocks are consulted — a
globally pinned English voice must not end up narrating Polish. An unknown
language is an error naming the pin command, never a silent fall back to
English. The walkthrough path always lands here: Narration resolves
explicit → DEV10X_TTS_LANG → en and forwards it (GH-1221).
# ~/.config/Dev10x/tts.yaml
defaults:
voice: af_heart # used when no language is requested
licence_accepted: true
languages:
en: {voice: af_heart, licence_accepted: true}
pl: {voice: pl_PL-gosia-medium, licence_accepted: true}
projects:
- match: ["*/my-repo", "*/my-repo-*"]
languages:
pl: {voice: pl_PL-bass-high, licence_accepted: true}
pin --lang pl --voice pl_PL-bass-high writes that nested block and leaves
the English default — and its recorded acceptance — untouched.
The file lives under ~/.config/Dev10x/ alongside the other durable prefs
(ADR-0018), so one answer covers a repo and every worktree of it, and no
self-settings consent gate fires. An acceptance is recorded per voice —
switching voices re-arms the gate rather than inheriting the old consent.
dev10x-qa:qa-self captions already carry narration copy. See
references/qa-self-narration.md for
the full recipe: declare the lines, attach Narration to the Annotator,
build the track, mux it on.
--length-scale only — no
per-word emphasis, no <break>. Kokoro receives its reciprocal as
--speed. --sentence-silence and --speaker are Piper-only and fail
loudly on a Kokoro voice rather than being silently dropped.--split-output chunks by size rather than by line, so there is no
batched shape that preserves the caption mapping. For a long script where
the timbre allows it, a Piper voice renders the whole batch in ~1s.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
6 skills in this plugin
/playwrightdev10x-qa:playwrightRun Playwright Python scripts against ExampleCorp staging safely. Use when writing or executing a Playwright automation script for self-QA or browser testing on staging-app.example.com. Handles CF Access headers, credential injection, syntax validation before execution, and uv run wrapping — so secrets are never hardcoded in scripts. TRIGGER when: running browser automation against ExampleCorp staging. DO NOT TRIGGER when: testing non-ExampleCorp sites, running unit tests, or writing Playwright scripts for other projects.
/qa-publishdev10x-qa:qa-publishPublish a finished QA run to the ticket and the PR as a readable verdict with a watchable video and inline screenshots — instead of raw files left in a temp directory, a ticket comment that never reaches Jira watchers, or evidence that silently claims coverage the run never had. TRIGGER when: a QA run has produced screenshots and a screen recording and the results need to reach a ticket and a PR. DO NOT TRIGGER when: executing the QA test cases (use dev10x-qa:qa-self), analyzing a PR for QA needs (use dev10x-coding:qa-scope), or publishing a single video with no ticket write-up (use dev10x-qa:yt-upload directly).
npx claudepluginhub dev10x-guru/dev10x-claude --plugin dev10x-qa