From kokoro-tts
Synthesizes text to speech using the Kokoro TTS CLI tool. Supports single WAV output and chunked streaming for long text.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kokoro-tts:synthesize [text to speak][text to speak]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate speech from text using the Kokoro TTS CLI tool. Supports single WAV output or chunked streaming for long text.
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.
npx claudepluginhub terrylica/cc-skills --plugin kokoro-ttsGenerate spoken audio from text using the local Kokoro TTS engine. Use when the user asks to "say" something, requests a voice message, or wants text converted to speech.
Auditions Kokoro TTS voices via a bash script to compare quality and grade. Useful for selecting default voices or evaluating quality after engine upgrades.
Starts and stops a Kokoro TTS HTTP server with an OpenAI-compatible /v1/audio/speech endpoint. Useful for text-to-speech synthesis.