TTS with onnx runtime based on Kokoro-TTS
🚀 Version 1.0 models are out now! 🎉
podcast.mp4
- Supports English (with French, Japanese, Korean, and Chinese coming soon)
- Fast performance near real-time on macOS M1
- Offer multiple voices
- Lightweight: ~300MB (quantized: ~80MB)
pip install -U kokoro-onnx
Instructions
- Install uv for isolated Python (Recommend).
Basically open the terminal (PowerShell / Bash) and run the command listed in their website.
Note: you don't have to use uv
. but it just make things much simpler. You can use regular Python as well.
- 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.py
inhello.py
- Download the files
kokoro-v1.0.onnx
, andvoices-v1.0.bin
and 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.
See examples
See the latest information in kokoro-onnx/releases
See CONTRIBUTE.md
- kokoro-onnx: MIT
- kokoro model: Apache 2.0