MCP ExplorerExplorer

Kokoro Onnx Mcp

@djkzon a year ago
1 MIT
FreeCommunity
AI Systems
MCP Agent that runs kokoro for voice TTS.

Overview

What is Kokoro Onnx Mcp

kokoro_onnx_mcp is an MCP Agent that runs Kokoro for voice Text-to-Speech (TTS) using ONNX runtime, enabling high-quality voice synthesis.

Use cases

Use cases include creating audiobooks, voice assistants, language learning applications, and enhancing user interfaces with voice feedback.

How to use

To use kokoro_onnx_mcp, install it via pip, set up a project folder, and run a sample script after downloading the necessary model files. You can modify the text in the script to generate audio output.

Key features

Key features include support for multiple languages, fast near real-time performance on macOS M1, multiple voice options, and a lightweight model size (~300MB, quantized ~80MB).

Where to use

kokoro_onnx_mcp can be used in various fields such as education, entertainment, accessibility tools, and any application requiring voice synthesis.

Content

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
  1. 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.

  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

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers