Who it is forA creator who needs voiceovers without a paid TTS service.
The problemCloud TTS costs add up and needs an account.
The outcomeNumbered WAV files at 24000 Hz for your text.
What you need first
- Python with pip (the README conda file uses Python 3.9)
- espeak-ng installed for fallback and some languages
- Optional: an Apple Silicon Mac for MPS acceleration
Steps
- Install with
!pip install -q kokoro>=0.9.4 soundfilein Colab, or the same pip install locally - Install espeak-ng with
!apt-get -qq -y install espeak-ng > /dev/null 2>&1on Colab or Debian - Create KPipeline(lang_code='a') and call it with your text and voice='af_heart'
- Write each audio chunk with sf.write at 24000
Prompt for your agent
Using hexgrad/kokoro, install it with pip and espeak-ng, then write a script that reads <my text file> with KPipeline(lang_code='a') and voice af_heart and saves numbered WAV files.
Caveat. This card is written from the hexgrad/kokoro README, not from a test run by Deduped. Before you start, make sure you have Python with pip. Check the repo for newer instructions before you rely on these steps.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for hexgrad/kokoro and "Turn a script into WAV files 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