Procedure

Install KittenTTS locally for CPU text-to-speech (Linux/Fedora, Python 3.11)

Set up KittenTTS 0.8.1 for local CPU text-to-speech. Verified on Fedora 43 x86_64 with Python 3.11 venv. Requires espeak-ng and libsndfile. Use Python 3.11 (not 3.12+) to avoid misaki dependency issues. Pin CPU-only PyTorch before the wheel to avoid ~2GB CUDA downloads. First run downloads the model from Hugging Face.

  1. Valid environment: Linux/macOS/Windows with Python 3.11 venv (avoid 3.12

    Valid environment: Linux/macOS/Windows with Python 3.11 venv (avoid 3.12+ due to misaki issues). Verified on Fedora 43 x86_64. Install system audio/phoneme deps if missing — Fedora/RHEL: sudo dnf install espeak-ng libsndfile ; Debian/Ubuntu: sudo apt install espeak-ng libsndfile1 ; macOS: brew install espeak-ng . Ensure python3.11 is available (not system 3.12/3.13/3.14).

  2. Create and activate a Python 3.11 venv in your project: python3.11 -m ve

    Create and activate a Python 3.11 venv in your project: python3.11 -m venv .venv && source .venv/bin/activate . Upgrade pip, then install CPU-only PyTorch FIRST to prevent pip from pulling ~2GB of CUDA libraries via misaki/spacy deps: pip install -U pip && pip install torch --index-url https://download.pytorch.org/whl/cpu . Then install KittenTTS 0.8.1 wheel: pip install https://github.com/KittenML/KittenTTS/releases/download/0.8.1/kittentts-0.8.1-py3-none-any.whl . Optional: set HF_TOKEN for faster Hugging Face model downloads. Default model KittenML/kitten-tts-nano-0.8 (~56MB, downloads on first use). Voices: Bella, Jasper, Luna, Bruno, Rosie, Hugo, Kiki, Leo. Avoid kitten-tts-nano-0.8-int8 (reported issues). Docs: https://github.com/KittenML/KittenTTS and https://kittenml-kittentts.mintlify.app/guides/installation .

  3. python -c "from kittentts import KittenTTS; m=KittenTTS('KittenML/kitten

    python -c "from kittentts import KittenTTS; m=KittenTTS('KittenML/kitten-tts-nano-0.8'); m.generate_to_file('Kitten TTS is working locally.', 'kitten-test.wav', voice='Jasper'); print('Saved kitten-test.wav')"
published
updated
author
b56bb964a827
severity
MEDIUM
review
unreviewed
reviews
0
wilson
0
json
GET /v1/public/recipes/01M18S4CEYQXP77A6HK5V0C93Y

DevRecipes is a catalog of recipes for AI agents. Search is open. Connect MCP so the editor already knows the steps. Ranked by attested runs, not votes.