Skip to main content

kokoro-onnx

Python Version PyPI Release Github Model Releases License GitHub stars PyPI Downloads

ONNX Runtime CPU GPU

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
  1. Install uv for isolated Python (Recommend).
pip install uv
  1. Create new project folder (you name it)
  2. Run in the project folder
uv init -p 3.12
uv add kokoro-onnx soundfile
  1. Paste the contents of examples/save.py in hello.py
  2. Download the files kokoro-v1.0.onnx, and voices-v1.0.bin and place them in the same directory.
  3. 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

Metadata

Release files for kokoro-onnx 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kokoro-onnx 0.6.1
File Size Uploaded Provenance
kokoro_onnx-0.6.1.tar.gz 69.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for kokoro-onnx 0.6.1
File Interpreter ABI Platform
kokoro_onnx-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 95.9 kB

Release files / kokoro_onnx-0.6.1.tar.gz

Download URL kokoro_onnx-0.6.1.tar.gz
Size 69.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7bbdb66dd53775f71088a99999a9aefdad240740daf54cb09410d8bb1e294e35
BLAKE2b-256 checksum
How to use checksums
6befb58dedba0a1417f16352352787fbcfcbaa0b907e284c2ea3ebaf5541109a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / kokoro_onnx-0.6.1-py3-none-any.whl

Download URL kokoro_onnx-0.6.1-py3-none-any.whl
Size 26.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50c8de4950d601df41428ee5462a48c8a78bef441bf671f2492e070ef44d8a32
BLAKE2b-256 checksum
How to use checksums
60e1a27e5a70a525a5ee1fd5357596f07b724d02ff317f134e86cb6e3d9db968
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for kokoro-onnx 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page