Synthesize text to speech with Kokoro TTS. TRIGGERS - speak this, kokoro tts, text to speech, synthesize voice, say this.
From kokoro-ttsnpx claudepluginhub terrylica/cc-skills --plugin kokoro-ttsThis skill is limited to using the following tools:
references/voice-catalog.mdGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Optimizes cloud costs on AWS, Azure, GCP via rightsizing, tagging strategies, reserved instances, spot usage, and spending analysis. Use for expense reduction and governance.
Generate speech from text using the Kokoro TTS CLI tool. Supports single WAV output or chunked streaming for long text.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
# Single WAV
~/.local/share/kokoro/.venv/bin/python ~/.local/share/kokoro/tts_generate.py \
--text "Hello from Kokoro TTS" --voice af_heart --lang en-us --speed 1.0 \
--output /tmp/kokoro-tts-$$.wav
# Play it
afplay /tmp/kokoro-tts-$$.wav
| Parameter | Default | Description |
|---|---|---|
--text | (required) | Text to synthesize |
--voice | af_heart | Voice name (see voice catalog) |
--lang | en-us | Language code (en-us, zh, ja, etc.) |
--speed | 1.0 | Speech speed multiplier |
--output | (required) | Output WAV path |
--chunk | off | Chunked streaming mode for long text |
See Voice Catalog for all available voices with quality grades.
Top voices:
| Voice ID | Name | Grade | Gender |
|---|---|---|---|
| af_heart | Heart | A | Female |
| af_bella | Bella | A- | Female |
| af_nicole | Nicole | B- | Female |
For long text, use --chunk to get progressive playback:
~/.local/share/kokoro/.venv/bin/python ~/.local/share/kokoro/tts_generate.py \
--text "Long text here..." --voice af_heart --lang en-us --speed 1.0 \
--output /tmp/kokoro-tts-$$.wav --chunk
Each chunk WAV path is printed to stdout as it becomes ready. The final line is DONE <ms>.
| Issue | Cause | Solution |
|---|---|---|
| No audio output | Model not loaded | Run /kokoro-tts:install first |
| Empty text error | Input was blank | Provide non-empty --text |
| Slow generation | First-run warmup | Normal — subsequent runs faster |
After this skill completes, check before closing:
Only update if the issue is real and reproducible — not speculative.