← ClaudeAtlas

kokoro-local-ttslisted

Use when deploying or running the Kokoro-82M local text-to-speech model - setting it up on a new machine, choosing voices, synthesizing long texts or audiobooks, or debugging a Kokoro/TTS pipeline failure. Triggers on "deploy Kokoro", "local TTS", "text to speech locally", "本地语音模型", "部署这个 TTS 模型", "which Kokoro voice". Skip for cloud TTS APIs (different tradeoffs) and for languages Kokoro does not cover.
annexiao/read-the-best-first · ★ 0 · AI & Automation · score 70
Install: claude install-skill annexiao/read-the-best-first
# Kokoro-82M Local TTS (deployment reference) ## Overview Kokoro-82M (hexgrad/Kokoro-82M on Hugging Face) is an 82M-parameter, Apache-2.0 TTS model whose quality approaches commercial APIs at zero marginal cost. It runs comfortably on any Apple-Silicon Mac or modest GPU. This skill is the deployment recipe plus the operational facts a model card never tells you. ## Setup (once per machine) ```bash brew install espeak-ng ffmpeg python@3.12 atomicparsley mp4v2 # Linux: apt install espeak-ng ffmpeg python3.12 mkdir -p ~/tts && cd ~/tts python3.12 -m venv .venv .venv/bin/pip install "kokoro>=0.9.4" soundfile numpy ``` First synthesis auto-downloads the model weights (~330 MB) from Hugging Face into `~/.cache/huggingface`, plus spaCy's `en_core_web_sm`. No account or token needed. Why each piece (the parts the model card assumes you know): - **Python 3.12, not the newest**: torch and friends ship prebuilt wheels one or two versions behind the latest Python. Chasing 3.14 fails at install time. - **espeak-ng even though the model is neural**: misaki (the grapheme-to-phoneme layer, i.e. text → pronunciation symbols) falls back to it for out-of-vocabulary words. Missing it fails at runtime on rare words, not at import. - **ffmpeg**: not for the model itself; for encoding waveforms into AAC/m4b and anything container-related. - The model card's install commands use `!pip` / `!apt-get` prefixes, meaning they were written for Colab (Linux notebook). Translate `apt-get` →