Who it is forA developer building a voice assistant prototype on a laptop without a GPU.
The problemCloud TTS adds latency, cost and a dependency.
The outcomeWAV files generated locally from text with a chosen voice.
What you need first
- Python with pip
- A CPU is enough for the lightweight models; Kitten-TTS 2 runs realtime on CPUs and consumer GPUs per the README
Steps
- Install with
pip install kittenml - Load the model with Kitten TTS("KittenML/kitten-tts-2")
- Call generate with your text and a voice such as WeatherPresenterCheerful
- Write the audio with soundfile at m.sample_rate
Prompt for your agent
Using KittenML/KittenTTS, install kittenml, generate <text> with voice "Matthew" and save output.wav. Confirm the file plays and its sample rate equals m.sample_rate.
Caveat. Use weights="emb4" to halve the download if bandwidth or disk is tight.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for KittenML/KittenTTS and "Add natural speech to a Python app in a few lines"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer