TTS with kokoro and onnx runtime
Project Links
Meta
Author: thewh1teagle
Requires Python: <3.14,>=3.10
Classifiers
kokoro-onnx
TTS with onnx runtime based on Kokoro-TTS
๐ Version 1.0 models are out now! ๐
https://github.com/user-attachments/assets/00ca06e8-bbbd-4e08-bfb7-23c0acb10ef9
Features
- Supports multiple languages
- Fast performance near real-time on macOS M1
- Offer multiple voices
- Lightweight: ~300MB (quantized: ~80MB)
Setup
pip install -U kokoro-onnx
Instructions
- Install uv for isolated Python (Recommend).
pip install uv
- Create new project folder (you name it)
- Run in the project folder
uv init -p 3.12
uv add kokoro-onnx soundfile
- Paste the contents of
examples/save.pyinhello.py - Download the files
kokoro-v1.0.onnx, andvoices-v1.0.binand place them in the same directory. - Run
uv run hello.py
You can edit the text in hello.py
That's it! audio.wav should be created.
Examples
See examples
Voices
See the latest voices and languages in Kokoro-82M/VOICES.md
Note: It's recommend to use misaki g2p package from v1.0, see examples
Contribute
See CONTRIBUTE.md
License
- kokoro-onnx: MIT
- kokoro model: Apache 2.0
0.5.0
Jan 30, 2026
0.4.9
May 10, 2025
0.4.8
Apr 08, 2025
0.4.7
Apr 01, 2025
0.4.6
Mar 30, 2025
0.4.6b1
Mar 28, 2025
0.4.6b0
Mar 28, 2025
0.4.5
Mar 01, 2025
0.4.4
Feb 28, 2025
0.4.3
Feb 27, 2025
0.4.2
Feb 09, 2025
0.4.1
Feb 09, 2025
0.4.0
Feb 05, 2025
0.3.9
Feb 05, 2025
0.3.8
Feb 03, 2025
0.3.7
Jan 28, 2025
0.3.6
Jan 22, 2025
0.3.5
Jan 22, 2025
0.3.4
Jan 21, 2025
0.3.3
Jan 17, 2025
0.3.2
Jan 17, 2025
0.3.1
Jan 16, 2025
0.3.0
Jan 16, 2025
0.2.9
Jan 16, 2025
0.2.8
Jan 15, 2025
0.2.7
Jan 15, 2025
0.2.6
Jan 11, 2025
0.2.5
Jan 09, 2025
0.2.4
Jan 09, 2025
0.2.3
Jan 06, 2025
0.2.2
Jan 06, 2025
0.2.1
Jan 06, 2025
0.2.0
Jan 05, 2025
0.1.9
Jan 05, 2025
0.1.8
Jan 05, 2025
0.1.7
Jan 05, 2025
0.1.6
Jan 05, 2025
0.1.5
Jan 05, 2025
0.1.4
Jan 04, 2025
0.1.3
Jan 03, 2025
0.1.2
Jan 03, 2025
0.1.1
Jan 03, 2025
0.1.0
Jan 03, 2025
Wheel compatibility matrix
Files in release
Extras:
Dependencies:
espeakng-loader
(>=0.2.4)
numpy
(>=2.0.2)
onnxruntime
(>=1.20.1)
phonemizer-fork
(>=3.3.2)