kokoro-onnx  by thewh1teagle

Text-to-speech with ONNX Runtime

Created 8 months ago
2,195 stars

Top 20.6% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a text-to-speech (TTS) system leveraging the Kokoro-TTS model and ONNX Runtime for efficient inference. It targets developers and users seeking a fast, lightweight, and multilingual TTS solution, offering near real-time performance on Apple Silicon (M1) and a compact model size.

How It Works

The system utilizes ONNX Runtime for accelerated model execution, enabling fast inference speeds. It supports multiple languages and voices, with version 1.0 models available. The architecture is designed for efficiency, with quantized models being particularly lightweight.

Quick Start & Requirements

  1. Install uv for isolated Python environments: pip install uv
  2. Initialize a new project with Python 3.12: uv init -p 3.12
  3. Add the package: uv add kokoro-onnx soundfile
  4. Download model files: kokoro-v1.0.onnx and voices-v1.0.bin.
  5. Place examples/save.py content into hello.py and ensure model files are in the same directory.
  6. Run the script: uv run hello.py

Highlighted Details

  • Fast performance, near real-time on macOS M1.
  • Lightweight model size (~300MB, quantized ~80MB).
  • Supports multiple languages and voices.

Maintenance & Community

Information regarding community channels, roadmap, or specific maintainers is not detailed in the provided README.

Licensing & Compatibility

The kokoro-onnx package is licensed under MIT. The Kokoro model itself is licensed under Apache 2.0. These licenses appear compatible with most commercial and closed-source applications.

Limitations & Caveats

The README recommends using the misaki g2p package for version 1.0 models, suggesting potential compatibility considerations or performance benefits with this specific g2p implementation. Further details on community support or project roadmap are not readily available.

Health Check
Last Commit

3 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
2
Star History
47 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.