Downloads · 30 days
0
zardus-ai/omnivoice-tts
omnivoice-tts is a text-to-speech model from zardus-ai. Use it when you need text read aloud. The card lists the license as mit.
OmniVoice TTS server with Intel Arc iGPU / dGPU support via PyTorch nightly XPU. Includes multiple quantization variants (BF16, INT8, INT4) for different VRAM budgets.
Downloads · 30 days
0
Access
Public
Updated Apr 5, 2026
Repo size
—
Likes
3
Public
Click a slice to open those files.
.py77.5 KB · 44%
From the Hugging Face model README
OmniVoice TTS server with Intel Arc iGPU / dGPU support via PyTorch nightly XPU. Includes multiple quantization variants (BF16, INT8, INT4) for different VRAM budgets.
torch.xpuPOST /v1/audio/voices/reloadinstall.bat
This creates a virtual environment and installs all required packages including PyTorch XPU nightly.
Download the BF16 model weights from Hugging Face:
👉 https://huggingface.co/drbaph/OmniVoice-bf16
You only need this one. The INT8 and INT4 quantized versions are generated locally from these weights using the provided quantization scripts.
After downloading, place the weights in the appropriate folder:
BF16 (full precision, ~6GB VRAM):
OmniVoice/model.safetensors
OmniVoice/audio_tokenizer/model.safetensors
INT8 (quantized, ~3.5GB VRAM):
OmniVoice_INT8/model.safetensors
OmniVoice_INT8/audio_tokenizer/model.safetensors
Run quantize_model.py to create INT8 weights from BF16.
INT4 (max quantized, ~2.2GB VRAM):
OmniVoice_INT4/model.safetensors
OmniVoice_INT4/audio_tokenizer/model.safetensors
Run quantize_model_int4.py to create INT4 weights from BF16.
Choose the variant that fits your VRAM:
| Script | Precision | VRAM | Speed | Quality |
|---|---|---|---|---|
start_api.bat | BF16 | ~6 GB | Fast | Best |
start_api_int8.bat | INT8 | ~3.5 GB | Faster | ~98% |
start_api_int8_compile.bat | INT8 + compile | ~3.5 GB | Fastest | ~98% |
start_api_int4.bat | INT4 | ~2.2 GB | Medium | ~95% |
start_api_int8_compile.bat
Server starts at http://localhost:8000
POST /v1/audio/speech
Content-Type: application/json
{
"model": "omnivoice",
"input": "Hello, this is a test.",
"voice": "david-attenborough-original",
"speed": 1.0
}
GET /v1/audio/voices
POST /v1/audio/voices/reload
GET /health
GET /docs
voices/ foldermy-voice.wav)POST /v1/audio/voices/reload or restart the serverClone voices in real-time from Telegram voice messages! The companion bot runs on the same machine as the TTS server and handles everything automatically:
Setup:
/addvoice and send a voice message!api_server.py (BF16)OmniVoice/ model folderapi_server_int8.py (INT8)OmniVoice_INT8/ model folderapi_server_int8_compile.py (INT8 + torch.compile)OmniVoice_INT8/ model folderapi_server_int4.py (INT4)OmniVoice_INT4/ model folderTo create quantized models from the BF16 weights:
quantize_model.py # Creates INT8 weights
quantize_model_int4.py # Creates INT4 weights
omnivoice-tts/
├── api_server.py # BF16 API server
├── api_server_int8.py # INT8 API server
├── api_server_int8_compile.py # INT8 + torch.compile API server
├── api_server_int4.py # INT4 API server
├── server.py # BF16 Gradio server
├── server_int8.py # INT8 Gradio server
├── server_int8_compile.py # INT8 + compile Gradio server
├── server_int4.py # INT4 Gradio server
├── quantize_model.py # INT8 quantization script
├── quantize_model_int4.py # INT4 quantization script
├── install.bat # Install dependencies
├── start_api*.bat # Start API servers
├── start_int*.bat # Start Gradio servers
├── stop.bat # Stop all servers
├── update.bat # Update dependencies
├── OmniVoice/ # BF16 model configs (weights not included)
├── OmniVoice_INT8/ # INT8 model configs
├── OmniVoice_INT4/ # INT4 model configs (generated)
└── voices/ # Voice reference audio
MIT