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.
Pocket reference-voice prompts are managed assets as well: kyutai-tts-voices:<id> references resolve to pinned, integrity-checked prompts. See Python usage.
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 |
| Yes | Yes | Catalog-dependent | |
| Supertonic | Yes | Yes | Yes |
| Kitten | Yes | Yes | Yes |
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.
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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| onnxvoice-0.2.2.tar.gz | 1.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| onnxvoice-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.8 MB
Release files / onnxvoice-0.2.2.tar.gz
| Download URL | onnxvoice-0.2.2.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
815b169b4f5e2ed4633c958300d6ebb046fa91bf4c75320db3db6bec3725322d
|
|
BLAKE2b-256 checksum How to use checksums |
be7ef450e338415c00f6f3e522c7082f58edbcbfa0b7c2c651ddaf727e8d36c2
|
| 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.2-py3-none-any.whl
| Download URL | onnxvoice-0.2.2-py3-none-any.whl |
|---|---|
| Size | 149.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96053cb59a39203d6caa741c63b9c76c151398ffa9e207c5200a9d8ca5df5b69
|
|
BLAKE2b-256 checksum How to use checksums |
87726eb88a1acf262b8844f348a609c4c97c3c6c2e5aede6952f7bc9b3de3ea3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|