TTS with onnx runtime based on Kokoro-TTS
🚀 Version 1.0 models are out now! 🎉
podcast.mp4
- Supports multiple languages
- Fast performance near real-time on macOS M1
- Offer multiple voices
- Lightweight: ~300MB (quantized: ~80MB)
pip install -U kokoro-onnxInstructions
- 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.pyYou can edit the text in hello.py
That's it! audio.wav should be created.
See examples
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
See CONTRIBUTE.md
- kokoro-onnx: MIT
- kokoro model: Apache 2.0