Skip to main content

PyPI - Version PyPI - Python Version codecov

onnxvoice

onnxvoice manages, verifies, stores, and executes ONNX voice-model assets through shared catalogs, a content-addressed cache, and a common Python API.

It is a model asset and runtime layer, not a complete text-to-speech frontend. Text normalization, G2P/phonemization, sentence planning, and higher-level voice policy belong to producer packages.

Install

The base package does not install ONNX Runtime. Install the provider extra for the target system:

python -m pip install onnxvoice
python -m pip install "onnxvoice[cpu]"
python -m pip install "onnxvoice[gpu]"
python -m pip install "onnxvoice[directml]"
python -m pip install "onnxvoice[openvino]"

For Pocket's optional Hugging Face voice-state downloads, add the pocket extra. See Pocket download setup.

Voicefolio owns cataloging, discovery, and download of reference WAVs. OnnxVoice's Pocket support is for ONNX bundles and predefined runtime voice states. See Pocket download setup.

Quick start

CLI

onnxvoice list --kind voice --lang en-US
onnxvoice install piper:en_US-lessac-medium
onnxvoice installed
onnxvoice cache info

Python

from onnxvoice import OnnxVoice

voice = OnnxVoice()
installation = voice.install("piper:en_US-lessac-medium")
runtime = voice.open(installation, provider="cpu")
try:
    # Supply model-ready token IDs from your frontend.
    result = runtime.infer([1, 20, 14, 5, 2])
    print(result.audio.shape, result.sample_rate)
finally:
    runtime.close()

install() acquires catalog assets. open() uses an existing managed installation and does not download assets. open_local() opens explicit files without copying or registering them.

Supported systems

System Built-in adapter Catalog Named voices
Piper Yes Yes Yes
Kokoro Yes Yes Yes
Pocket Yes Yes Catalog-dependent
Supertonic Yes Yes Yes
Kitten Yes Yes Yes
Inflect Yes Yes Fixed default voice
Sopro Yes (partial) Yes Zero-shot reference audio
Qwen3-TTS Yes Yes No; VoiceDesign/Base bundles

Sopro currently provides bundle management, graph inspection, tokenization, and reference preparation only. End-to-end Python synthesis remains capability-gated pending the real native-runtime and parity gate; see Sopro support. Catalog contents determine which named voices are available. Discovery does not depend on a separate capability list. Adapters execute system-specific model contracts and do not imply text normalization or phonemization support.

Documentation

The full documentation includes task-oriented CLI and Python guides, storage and update behavior, provider setup, local-model workflows, per-system runtime contracts, and the API reference.

See Qwen3-TTS WaveKat for the model-specific API and bundle contract.

Development

python -m pip install -e ".[dev,cpu]"
pytest -q
python docs/make.py html

License

The source code is Apache-2.0. Downloaded models, voices, and model cards retain their own licenses and terms. Installing an asset through onnxvoice does not relicense it.

Metadata

Release files for onnxvoice 0.2.8

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

Source distribution (sdist)

Source distribution for onnxvoice 0.2.8
File Size Uploaded
onnxvoice-0.2.8.tar.gz 1.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for onnxvoice 0.2.8
File Interpreter ABI Platform
onnxvoice-0.2.8-py3-none-any.whl Python 3 none any Details

Total release size: 2.1 MB

Release files / onnxvoice-0.2.8.tar.gz

Download URL onnxvoice-0.2.8.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
9e15c863699349cadabcb4d20dab74ee6762af9d71c85430cf20a709910249de
BLAKE2b-256 checksum
How to use checksums
0583218fcaa196e89989952a32e798e2ebbfaf25cfb418c88f27c00a7b51a41d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Release files / onnxvoice-0.2.8-py3-none-any.whl

Download URL onnxvoice-0.2.8-py3-none-any.whl
Size 218.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58ddfd358eb97bddc45da2ec6b4a1ca7589e9b043c11f0aa17b155ee1e06cf54
BLAKE2b-256 checksum
How to use checksums
075c48dbd131d07237c3bf0309019d60a77659655d1fb42ef425e09d118bcee3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.2.9

2 release files

This release

0.2.8 This release

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.0

2 release files

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