Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Ask DeepWiki

phoonnx

phoonnx

Multilingual phonemization and Text-to-Speech using ONNX models. phoonnx loads and runs TTS voices from several ecosystems (native phoonnx, Piper, Mimic3, Coqui, MMS, Transformers) through one onnxruntime-based interface, and ships a training pipeline for building your own voices.

It reaches 1000+ languages and voices across the bundled voice indexes. See the full list in VOICES.md.

30-second quickstart

pip install phoonnx

Download a voice and synthesize a WAV from the command line:

# populate the local voice catalog, then fetch one voice
phoonnx-voices update-cache
phoonnx-voices download OpenVoiceOS/phoonnx_pt-PT_miro_tugaphone

The same thing from Python:

import wave
from phoonnx.voice import TTSVoice

voice = TTSVoice.load("model.onnx", "model.json")
with wave.open("hello.wav", "wb") as wav_file:
    voice.synthesize_wav("Hello world!", wav_file)

New here? Start with the Quickstart — it downloads a voice and speaks a sentence end-to-end.

Train your own voice in an afternoon

Record (or obtain) a single-speaker dataset, preprocess it, train a VITS model on one GPU, export to ONNX, and load it back — all with the bundled phoonnx_train toolkit. Follow the golden path in docs/training/quickstart.md.

Features

Capability Where
Run ONNX voices on CPU or GPU (CUDA/ROCm/DirectML/CoreML/OpenVINO) Usage · Configuration
~40 phonemizer backends across many languages Phonemizers
Load Piper / Mimic3 / Coqui / Transformers / MMS voices Architecture
14 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
Train and fine-tune new voices Training
Drop-in OpenVoiceOS TTS plugin OVOS plugin

Documentation

The docs are organized around three reader paths — see the documentation index:

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_tugaphone"
  }
}

Full options in docs/ovos_plugin.md.

Docker / TTS server

docker compose up

See docs/docker.md. For running it as a public or long-lived service, see docs/deployment.md.

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-phoonnx registers 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.

Metadata

Release files for phoonnx 1.98.1a4

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

Source distribution (sdist)

Source distribution for phoonnx 1.98.1a4
File Size Uploaded Provenance Actions
phoonnx-1.98.1a4.tar.gz 10.5 MB Without provenance Details for phoonnx-1.98.1a4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phoonnx 1.98.1a4
File Interpreter ABI Platform Actions
phoonnx-1.98.1a4-py3-none-any.whl Python 3 none any Details for phoonnx-1.98.1a4-py3-none-any.whl

Total release size: 21.3 MB

Release files / phoonnx-1.98.1a4.tar.gz

Download URL phoonnx-1.98.1a4.tar.gz
Size 10.5 MB
Tags Source
SHA-256 checksum
How to use checksums
c72c80ba37d4cc97fbb9c33bff68542f689f8268d18810bde3d91a79b2d412c0
BLAKE2b-256 checksum
How to use checksums
375e19eb879a0c097739484a146557e0f30a4f68e76480e8faee19928dbddc9e
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.98.1a4-py3-none-any.whl

Download URL phoonnx-1.98.1a4-py3-none-any.whl
Size 10.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1f186d44245cf0dfaf81282eff96b1db40fe00a2aa8bd793703a6c1c29339c6c
BLAKE2b-256 checksum
How to use checksums
dc45167409e27b5ab43d319b9f9da56ad0336d8f603138f63cf686df5e0515ec
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.98.1a4

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