Diagnose Kokoro TTS issues. TRIGGERS - kokoro not working, tts diagnose, kokoro error, tts troubleshoot.
From kokoro-ttsnpx claudepluginhub terrylica/cc-skills --plugin kokoro-ttsThis skill is limited to using the following tools:
references/common-issues.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.
Troubleshoot Kokoro TTS engine issues through systematic diagnostics.
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.
| Issue | Likely Cause | Diagnostic | Fix |
|---|---|---|---|
| Import error | Venv corrupted | python -c "from mlx_audio.tts.utils import load_model" | kokoro-install.sh --uninstall && --install |
| Model not found | Download incomplete | ls ~/.cache/huggingface/hub/models--mlx-community--Kokoro-82M-bf16/ | kokoro-install.sh --install to re-download |
| Slow synthesis | First-run warmup | Time a test synthesis | Normal — subsequent runs use cached model |
| Not Apple Silicon | Intel/Linux system | uname -m != arm64 | MLX-Audio requires Apple Silicon (M1+) |
| Wrong Python | Not 3.13 | ~/.local/share/kokoro/.venv/bin/python --version | Rebuild venv with --uninstall && --install |
| Server won't start | Port in use | lsof -i :8779 | Kill existing process or change port |
| No audio from CLI | Empty text | Check --text argument | Provide non-empty text |
Use AskUserQuestion:
# Platform check
echo "Arch: $(uname -m)"
echo "macOS: $(sw_vers -productVersion)"
# Venv check
[[ -d ~/.local/share/kokoro/.venv ]] && echo "Venv: OK" || echo "Venv: MISSING"
# Python version
~/.local/share/kokoro/.venv/bin/python --version 2>/dev/null || echo "Python: NOT FOUND"
# MLX-Audio import
~/.local/share/kokoro/.venv/bin/python -c "from mlx_audio.tts.utils import load_model; print('MLX-Audio: OK')" 2>&1 || echo "MLX-Audio: FAIL"
# Scripts present
for f in kokoro_common.py tts_generate.py tts_server.py; do
[[ -f ~/.local/share/kokoro/$f ]] && echo "$f: OK" || echo "$f: MISSING"
done
# Version info
cat ~/.local/share/kokoro/version.json 2>/dev/null || echo "version.json: MISSING"
Use the Known Issues table above to identify the root cause and apply the targeted fix.
# Quick synthesis test
~/.local/share/kokoro/.venv/bin/python ~/.local/share/kokoro/tts_generate.py \
--text "Diagnostic test" --voice af_heart --lang en-us --speed 1.0 \
--output /tmp/kokoro-diag-test.wav && echo "Synthesis: OK"
After this skill completes, reflect before closing the task:
Do NOT defer. The next invocation inherits whatever you leave behind.