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

How to use Kokoro: what you can do with it

What is Kokoro? kokoro is the inference library for Kokoro-82M, an open-weight text-to-speech model with 82 million parameters that rivals larger models while being faster and cheaper to run. A KPipeline turns text into 24 kHz audio with voices like af_heart, and supports American and British English, Spanish, French, Hindi, Italian, Japanese, Brazilian Portuguese and Mandarin.

How do I use it? 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'. Full steps below.

Trended earlier

View repo on GitHub

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

3 use cases

Quick start with Kokoro

  1. Check you have what it needs: 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.
  2. Open hexgrad/kokoro on GitHub and read the README and license.
  3. Install with !pip install -q kokoro>=0.9.4 soundfile in Colab, or the same pip install locally
  4. Install espeak-ng with !apt-get -qq -y install espeak-ng > /dev/null 2>&1 on Colab or Debian
  5. Create KPipeline(lang_code='a') and call it with your text and voice='af_heart'
  6. Write each audio chunk with sf.write at 24000

These steps come from our top use case, Turn a script into WAV files in a few lines, which also has a copy-paste agent prompt.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for hexgrad/kokoro

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Best AI repos for Content

About this repo

  • Who it is forDevelopers and creators who want fast, lightweight, open TTS they can run themselves.
  • Why it is hot9.8k stars, talked about in 2 AI sources we track
  • LanguageJavaScript
  • Sourcegithub.com/hexgrad/kokoro ยท Back to Hot repos

Requirements

  • 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

Add this badge to your README

Maintain Kokoro? Show readers where to find these use cases. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/hexgrad/kokoro.svg)](https://dedupedai.com/use-cases/hexgrad-kokoro/?utm_source=github&utm_medium=badge&utm_campaign=hexgrad-kokoro)

HTML

<a href="https://dedupedai.com/use-cases/hexgrad-kokoro/?utm_source=github&amp;utm_medium=badge&amp;utm_campaign=hexgrad-kokoro"><img src="https://dedupedai.com/badge/hexgrad/kokoro.svg" alt="Use cases on Deduped" height="20"></a>

A static image, no tracking script. About the badge

Questions about Kokoro

What is Kokoro?

kokoro is the inference library for Kokoro-82M, an open-weight text-to-speech model with 82 million parameters that rivals larger models while being faster and cheaper to run. A KPipeline turns text into 24 kHz audio with voices like af_heart, and supports American and British English, Spanish, French, Hindi, Italian, Japanese, Brazilian Portuguese and Mandarin. It is an open-source project on GitHub: https://github.com/hexgrad/kokoro.

How do I use Kokoro?

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'. The use cases on this page give the full steps and a copy-paste agent prompt for each job.

Who is Kokoro for?

Developers and creators who want fast, lightweight, open TTS they can run themselves.

What can I do with Kokoro?

3 use cases so far, for example: Turn a script into WAV files in a few lines; Generate speech in Spanish, French, Hindi or Japanese; Speed up Kokoro on an Apple Silicon Mac. Each has steps and a copy-paste agent prompt.

What do I need to run Kokoro?

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.

What are alternatives to Kokoro?

Other hot AI repos in Content: Voice Studio, Impeccable, Chatterbox, F5 TTS, Whisper CPP.

Is Kokoro safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.