Downloads · 30 days
0
0N-Labs/onyx-tts
onyx-tts is a machine learning model from 0N-Labs. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Onyx-TTS is a high-performance, multilingual text-to-speech system developed by 0N Labs. It's built on ONNX Runtime, delivering fast and efficient speech synthesis with minimal resource requirements.
Downloads · 30 days
0
Access
Public
Updated May 25, 2025
Repo size
354 MB
Likes
2
Public
Click a slice to open those files.
.onnx326 MB · 92%
From the Hugging Face model README
Onyx-TTS is a high-performance, multilingual text-to-speech system developed by 0N Labs. It's built on ONNX Runtime, delivering fast and efficient speech synthesis with minimal resource requirements.
<p float="left"> <audio controls><source src="https://0N-Labs.github.io/example-one.wav" type="audio/wav"></audio> <audio controls><source src="https://0N-Labs.github.io/example-two.wav" type="audio/wav"></audio> </p>pip (Python package manager)Clone the repository:
git clone https://github.com/0N-Labs/onyx-tts.git
cd onyx-tts
Create and activate a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
Install the required dependencies:
pip install -r requirements.txt
Download the model files from the Releases page and place them in your project directory:
onyx-v1.0.onnx (main model)voices-v1.0.bin (voice data)import soundfile as sf
from onyx_tts import OnyxTTS
# Initialize the TTS engine with the downloaded model files
onyx = OnyxTTS("onyx-v1.0.onnx", "voices-v1.0.bin")
# Generate speech
samples, sample_rate = onyx.create(
"Hello! This is Onyx TTS by 0N Labs.",
voice="af_sarah", # See available voices in VOICES.md
speed=1.0, # Adjust speed (0.5–2.0)
lang="en-us"
)
# Save the generated audio
sf.write("output.wav", samples, sample_rate)
print("Speech generated successfully!")
To launch the demo UI:
python web_interface.py
Then visit: 👉 http://localhost:7860
To list all available voices:
from onyx_tts import OnyxTTS
onyx = OnyxTTS("onyx-v1.0.onnx", "voices-v1.0.bin")
print("Available voices:", onyx.get_voices())
See the full list in VOICES.md.
If you run into issues:
@software{onyx-tts,
author = {0N Labs},
title = {Onyx-TTS: High-performance Text-to-Speech},
year = {2025},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/0N-Labs/onyx-tts}}
}