mcpField
S
synthesize

synthesize

github.com/terrylicaCreative & media176 installsUpdated 1d ago
Repository

About synthesize

A skill for generating speech from text with the Kokoro TTS CLI. It supports WAV output, selectable voices and languages, speed control, and chunked streaming for long text.

Key features

  1. 01Text-to-speech with Kokoro TTS
  2. 02WAV file output
  3. 03Voice and language selection
  4. 04Speech speed control
  5. 05Chunked streaming for long text

Use cases

  1. 01Creating a WAV narration from text
  2. 02Generating speech in a selected language
  3. 03Listening progressively to long-form speech

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/terrylica/cc-skills --skill synthesize

After installing, type/synthesizein Claude Code to confirm it loaded.

Bundled filesreferences/voice-catalog.md

Details

From the project README

Synthesize Speech

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.

Quick Usage

# 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

Parameters

ParameterDefaultDescription
--text(required)Text to synthesize
--voiceaf_heartVoice name (see voice catalog)
--langen-usLanguage code (en-us, zh, ja, etc.)
--speed1.0Speech speed multiplier
--output(required)Output WAV path
--chunkoffChunked streaming mode for long text

Voice Catalog

See Voice Catalog for all available voices with quality grades.

Top voices:

Voice IDNameGradeGender
af_heartHeartAFemale
af_bellaBellaA-Female
af_nicoleNicoleB-Female

Chunked Streaming

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>.

Troubleshooting

IssueCauseSolution
No audio outputModel not loadedRun /kokoro-tts:install first
Empty text errorInput was blankProvide non-empty --text
Slow generationFirst-run warmupNormal — subsequent runs faster

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.

Only update if the issue is real and reproducible — not speculative.

Comments

Markdown supported