Repolode
thewh1teagle

thewh1teagle/kokoro-onnx

Python package for offline text-to-speech using the Kokoro model running on ONNX Runtime, with CPU and GPU support.

Stars
2,794
Forks
306
Open issues
80
Last commit
2 months ago

What is it?

kokoro-onnx is a Python package that turns text into speech by running the Kokoro-82M text-to-speech model through ONNX Runtime. It is built on the Kokoro-TTS model and lets developers generate audio locally without calling a cloud speech service.

The project offers several voices and supports multiple languages. Version 1.0 model files are provided for download, and the package is installed from PyPI with pip. A quantized model variant is available, which the project describes as much smaller than the full model, and the author reports near real-time performance on macOS M1.

The repository includes example scripts that save generated speech to a WAV file. It recommends the misaki g2p package for text-to-phoneme conversion with the v1.0 models.

Key features

  • 01Runs Kokoro text-to-speech models locally via ONNX Runtime
  • 02Installable from PyPI with pip
  • 03Offers multiple voices and languages
  • 04Provides a quantized model that is much smaller than the full version
  • 05Supports both CPU and GPU execution

Use cases

  • Adding offline speech output to a Python application
  • Generating audio narration for videos or articles from scripts
  • Prototyping voice features without a cloud TTS account

Topics

FAQ

What is kokoro-onnx?
Python package for offline text-to-speech using the Kokoro model running on ONNX Runtime, with CPU and GPU support. kokoro-onnx is a Python package that turns text into speech by running the Kokoro-82M text-to-speech model through ONNX Runtime. It is built on the Kokoro-TTS model and lets developers generate audio locally without calling a cloud speech service.
Is kokoro-onnx free to use? What license does it have?
kokoro-onnx is open source under the MIT license. Check the license terms before using it in commercial products.
Is kokoro-onnx still maintained?
Updated within 6 months. The last commit to kokoro-onnx was on Sep 1, 2026.
What can I use kokoro-onnx for?
Adding offline speech output to a Python application Generating audio narration for videos or articles from scripts Prototyping voice features without a cloud TTS account
Where can I get kokoro-onnx?
The source code and installation instructions are on GitHub: https://github.com/thewh1teagle/kokoro-onnx

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects