PierrunoYT/Kokoro-TTS-Local

A local implementation of the Kokoro Text-to-Speech model, featuring dynamic module loading, automatic dependency management, and a web interface.

What it solves

This project provides a local, easy-to-install implementation of the Kokoro-82M text-to-speech (TTS) model. It eliminates the need for cloud-based TTS services by allowing users to generate high-quality speech on their own hardware, including full offline support after the initial setup.

How it works

It wraps the Kokoro-82M model (an 82-million parameter model) and automates the downloading of model weights and voice files from Hugging Face. Users can interact with the system via a command-line interface (CLI) or a Gradio-based web interface. The system supports multiple output formats (WAV, MP3, AAC) and can utilize CUDA-compatible GPUs for faster audio generation.

Who it’s for

  • Developers and users who want high-quality, local TTS without relying on external APIs.
  • People needing offline speech synthesis for privacy or connectivity reasons.
  • Users looking for a multilingual TTS solution that supports 9 different languages.

Highlights

  • Multilingual Support: Includes 54 voices across 9 languages, including American and British English, Japanese, Mandarin Chinese, Spanish, French, Hindi, Italian, and Brazilian Portuguese.
  • Flexible Interfaces: Offers both an interactive CLI and a web-based UI with "Speed Dial" presets for saving favorite voice and speed combinations.
  • Offline Capability: Full offline mode support via the HF_HUB_OFFLINE environment variable.
  • Cross-Platform: Compatible with Windows, Linux, and macOS, with Docker support for simplified deployment.
  • Comprehensive Diagnostics: Includes a kokoro-tts-check tool to validate Python versions, CUDA availability, and system dependencies.

Related

  • Dispatch
  • Project
  • Project
  • Project
  • Project