This release is a pre-release and may not be stable for production use.
phoonnx
phoonnx turns text into speech with ONNX voices. It loads voices from several ecosystems
(native phoonnx, Piper, Mimic3, Coqui, MMS, Transformers and others) through one
onnxruntime interface, and it ships a pipeline to train your own voices.
phoonnx-voices update-cache prints how many voices and language tags the bundled voice index holds.
The documentation index lists every page. To start, follow the Quickstart.
Quickstart
pip install --pre phoonnx
phoonnx ships as alpha releases, so the --pre flag is necessary. Without it, pip installs an
old stable release whose voice commands fail.
Download a voice from the command line:
# fill the local voice catalog, then fetch one voice
phoonnx-voices update-cache
phoonnx-voices download OpenVoiceOS/phoonnx_pt-PT_miro_unicode
Speak a sentence with it from Python:
import wave
from phoonnx.model_manager import TTSModelManager
manager = TTSModelManager()
manager.load()
manager.merge_default_voices()
voice = manager.voices["OpenVoiceOS/phoonnx_pt-PT_miro_unicode"].load()
with wave.open("hello.wav", "wb") as wav_file:
voice.synthesize_wav("Olá, isto é um teste.", wav_file)
This voice runs on the base install. Many other voices need an extra for their phonemizer, for
example pip install --pre "phoonnx[pt]" for the tugaphone voices.
Choose a voice shows which extra each voice needs.
The Quickstart gives the same steps with the output you should see.
Train your own voice
Record or obtain a single-speaker dataset, preprocess it, train a VITS model on one GPU,
export it to ONNX, and load it back. The bundled phoonnx_train toolkit does each step. The
Training quickstart walks through them.
Features
| Capability | Where |
|---|---|
| Run ONNX voices on CPU or GPU (CUDA/ROCm/DirectML/CoreML/OpenVINO) | Usage · Configuration |
| About 50 phonemizer backends across many languages | Phonemizers |
| Load Piper / Mimic3 / Coqui / Transformers / MMS voices | Architecture |
| 31 synthesis engines behind one adapter registry | Engines |
| Zero-shot voice cloning (YourTTS, StyleTTS2, ZipVoice, F5-TTS, Chatterbox) | Cloning |
| Low-latency streaming for VITS voices | Streaming |
| Optional 48 kHz audio super-resolution over synthesized audio | OVOS plugin |
| Download and cache voices from HuggingFace and other sources | Voice manager |
| Smaller int8 files for some large voices | Precision variants |
| Speak with no network once the voices are downloaded | Use phoonnx offline |
| Train and fine-tune voices | Training |
| OpenVoiceOS TTS plugin | OVOS plugin |
Documentation
The documentation index lists every page in reading order, grouped by task: start, voices, use, configure, deploy, train and reference. Coding agents that work on this repository read AGENTS.md.
OpenVoiceOS plugin
phoonnx ships the ovos-tts-plugin-phoonnx TTS plugin. Configure it in mycroft.conf:
"tts": {
"module": "ovos-tts-plugin-phoonnx",
"ovos-tts-plugin-phoonnx": {
"voice": "OpenVoiceOS/phoonnx_pt-PT_miro_unicode"
}
}
Full options in docs/ovos_plugin.md.
Docker / TTS server
From a checkout of this repository:
docker compose up
The compose file runs the ghcr.io/tigregotico/phoonnx:dev image, which is built from the
dev branch. See docs/docker.md. For running it as a public or long-lived
service, see docs/deployment.md.
Related projects
phoonnx is part of the OpenVoiceOS ecosystem:
- ovos-core: the voice assistant that loads this plugin
- ovos-plugin-manager: the plugin framework
ovos-tts-plugin-phoonnxregisters against - ovos-tts-server: a standalone HTTP server for any OVOS TTS plugin, including this one
License and credits
phoonnx is licensed under Apache-2.0. Copyright Casimiro Ferreira.
It builds on the work of others, including jaywalnut310/vits (the VITS backbone), and interoperates with the Piper, Mimic3, Coqui, MMS and Transformers voice formats. Language-specific components are credited on the Phonemizers page.
The SuperTonic inference code (phoonnx/engines/supertonic.py) is adapted from Supertone
Inc.'s MIT-licensed reference implementation. SuperTonic model weights
(Supertone/supertonic-3) are licensed OpenRAIL-M, not Apache-2.0. Review the model's
license before commercial use.
Next: Docs index
Metadata
Release files for phoonnx 1.129.12a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phoonnx-1.129.12a1.tar.gz | 2.7 MB | Without provenance | Details for phoonnx-1.129.12a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phoonnx-1.129.12a1-py3-none-any.whl | Python 3 | none | any | Details for phoonnx-1.129.12a1-py3-none-any.whl |
Total release size: 5.7 MB
Release files / phoonnx-1.129.12a1.tar.gz
| Download URL | phoonnx-1.129.12a1.tar.gz |
|---|---|
| Size | 2.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1388fe7c04bb51544e4ed55700b9c46ca414ae4a8868379fe7612a1a85458a88
|
|
BLAKE2b-256 checksum How to use checksums |
a58ba0fde42f48f3da158512624d658cb9b99ac41be3bff7fd815f4ebc9be7ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / phoonnx-1.129.12a1-py3-none-any.whl
| Download URL | phoonnx-1.129.12a1-py3-none-any.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3428497885a21ef88d06f494f1f12f95756a772190cf4db93bf5982cf466eb79
|
|
BLAKE2b-256 checksum How to use checksums |
f05e11cb7360d12dbc126e7b4c0f89c82eb80968561d58b5510279632dff75be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for phoonnx 1.129.12a1
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.