DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to turn a script into WAV files in a few lines with Kokoro

Run a KPipeline with the af_heart voice and save each generated chunk as audio.

Short answer: Install with !pip install -q kokoro>=0.9.4 soundfile in Colab, or the same pip install locally; then install espeak-ng with !apt-get -qq -y install espeak-ng > /dev/null 2>&1 on Colab or Debian; create KPipeline(lang_code='a') and call it with your text and voice='af_heart'. All steps.

  • Top pick
  • Content
  • Beginner
  • 15 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI

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

  1. Install with !pip install -q kokoro>=0.9.4 soundfile in Colab, or the same pip install locally
  2. Install espeak-ng with !apt-get -qq -y install espeak-ng > /dev/null 2>&1 on Colab or Debian
  3. Create KPipeline(lang_code='a') and call it with your text and voice='af_heart'
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer