--- id: kokoro-onnx version: "0.5.0" license: unclear license_treatment: unclear maintenance: active --- # kokoro-onnx — TTS with kokoro and onnx runtime License: unclear · Maintenance: active · Downloads: 550.9K/mo ## What it is and what it does Kokoro-onnx is a text-to-speech engine that runs inference using ONNX Runtime, wrapping the Kokoro-TTS model to generate speech from text. It supports multiple languages and offers a selection of voices, with model weights optimized for size while maintaining performance on modern hardware. The package depends on espeakng-loader for phoneme handling, numpy for numerical operations, onnxruntime for model inference, and phonemizer-fork for linguistic processing. The typical workflow involves installing the package, downloading the model and voice files from the project's releases, then calling the Kokoro class with text, language, voice, and output parameters. It's designed for developers who need embedded speech synthesis without heavy dependencies like full TensorFlow or PyTorch installations, making it suitable for edge deployment or resource-constrained environments. Use it for: - Generate speech for accessibility features in applications that need multiple language support. - Create audio narration for content in real-time or batch processing pipelines. - Build chatbot or voice assistant backends with lightweight inference on consumer hardware. - Produce multilingual voiceovers for media or educational content with minimal model overhead. - Prototype or deploy TTS features in resource-limited environments like embedded systems or edge devices. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Converts text to speech using ONNX Runtime, supporting multiple languages and voices with performance optimized for modern hardware. Yes, if you need lightweight multilingual text-to-speech with ONNX inference. The low installation friction, active maintenance, and zero known vulnerabilities make it a practical choice. However, verify the unclear license treatment against your project's requirements, and plan for the separate download of model files before first use. ## Install pip install kokoro-onnx uv add kokoro-onnx poetry add kokoro-onnx ## Installing kokoro-onnx Before you install: Low installation friction with a pure Python wheel and four runtime dependencies. Active maintenance with recent commits. License in practice: License treatment is unclear in the package metadata, though the description notes the package itself is MIT while the underlying Kokoro model uses Apache 2.0. Verify licensing terms before use in proprietary or restricted contexts. Quickstart: pip install kokoro-onnx from kokoro_onnx import Kokoro kokoro = Kokoro(lang="en-us") kokoro.create(text="Hello world", voice="af_heart", speed=1.0, outfile="audio.wav") Requires downloading model files (kokoro-v1.0.onnx and voices-v1.0.bin) separately and placing them in the working directory before first use. Verify before relying: - Whether the unclear license treatment poses practical restrictions for commercial or closed-source projects. - Performance characteristics on hardware other than macOS M1 mentioned in the description. - Whether all supported languages and voices are documented outside the external Hugging Face link. - Exact size of downloaded model files in typical deployment scenarios. ## Package facts - License: not declared (unclear) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 550.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags text to speech onnx, tts multiple languages, kokoro tts, neural speech synthesis, lightweight tts model, multilingual voice generation, real-time speech synthesis, tts, speech-synthesis, onnx [View on SkillFed](https://skillfed.io/packages/kokoro-onnx) · [View on PyPI](https://pypi.org/project/kokoro-onnx/)