Skip to main content

vaani-kokoro-worker

The Kokoro speech process for Vaani, run as its own program.

Vaani speaks with the Kokoro-82M model (Apache-2.0) through kokoro-onnx (MIT). Turning text into phonemes goes through phonemizer and the espeak-ng library, which are both GPL-3.0-or-later. That code runs in this separate program, which is itself licensed GPL-3.0-or-later (see LICENSE). Vaani starts it as a child process and talks to it only over stdin and stdout.

You don't run this yourself. pip install 'vaani-voice[kokoro]' installs it, and Vaani starts it when tts.engine is kokoro.

Protocol

Every message is one line of UTF-8 JSON. The spoken text is never logged.

Direction Message
worker → Vaani, once at start {"event": "ready", "protocol": 1, "version": "...", "sample_rate": 24000}, or {"event": "error", "error": "..."} and exit 1
Vaani → worker {"op": "synthesize", "id": 1, "text": "...", "voice": "af_heart", "voice_file": null, "language": "en-us", "speed": 1.0}
worker → Vaani {"id": 1, "ok": true, "sample_rate": 24000, "samples": N}, then 4 * N bytes of little-endian float32 audio
worker → Vaani, on failure {"id": 1, "ok": false, "error": "..."}, with no audio after it
Vaani → worker {"op": "quit"}, or close stdin, to make the worker exit 0

voice_file names a .npy voice array (never a pickle). When it is set, voice is ignored.

Usage

vaani-kokoro-worker --model kokoro-v1.0.int8.onnx --voices voices-v1.0.bin

Copyright (c) 2026 Kirtika.

Metadata

Release files for vaani-kokoro-worker 0.1.0

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

Source distribution (sdist)

Source distribution for vaani-kokoro-worker 0.1.0
File Size Uploaded Provenance Actions
vaani_kokoro_worker-0.1.0.tar.gz 18.8 kB Without provenance Details for vaani_kokoro_worker-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vaani-kokoro-worker 0.1.0
File Interpreter ABI Platform Actions
vaani_kokoro_worker-0.1.0-py3-none-any.whl Python 3 none any Details for vaani_kokoro_worker-0.1.0-py3-none-any.whl

Total release size: 37.0 kB

Release files / vaani_kokoro_worker-0.1.0.tar.gz

Download URL vaani_kokoro_worker-0.1.0.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
42efca04607d5b7dae15dc1631e3144f10b77706e2729bbe03f9e8d0f943c968
BLAKE2b-256 checksum
How to use checksums
0e72a2b3631fb8f6baaa5d4f079225549c0a8df116c3b4f78bbbca2fdd2627ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / vaani_kokoro_worker-0.1.0-py3-none-any.whl

Download URL vaani_kokoro_worker-0.1.0-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43871b10faffec8f8714c27396df6d4f92916982e7024809710d76c4d0b88c90
BLAKE2b-256 checksum
How to use checksums
f722fdb04780b8bafb840d0df762fb664e2a0844ccedb1d61c1f1a52b7de26aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for vaani-kokoro-worker 0.1.0

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