🦬🗣️🔊 Zubr TTS BE
Repository: alekringtonnn-ai/zubr-tts-be
—
📖 What This Model Is
zubr-tts-be is the Text-to-Speech (TTS) model by alekringtonnn-ai — it converts text → voice audio. This is the opposite task to ASR: instead of transcribing speech, the model generates natural-sounding speech from written text.
The model speaks with a male voice 🎙️ and is designed for Belarusian (the be in the name).
The model is built on k2-fsa/OmniVoice — a modern speech-generation architecture based on Qwen3-0.6B (~0.6 billion parameters). It is a compact speech language model fine-tuned for high-quality voice synthesis.
Key Features
- Text-to-Speech (TTS): the model’s task is speech synthesis (text → voice audio), not transcription.
- Male voice: the model speaks with a natural male voice.
- Base — OmniVoice from k2-fsa: a proven speech-generation architecture built on Qwen3-0.6B.
- Compactness: the model weighs only ~2.45 GB (fp32 safetensors) — it runs on consumer hardware, including laptops.
- Single-file distribution: all weights come in one
model.safetensorsfile.
⚠️ Important: this is a speech synthesis model — it is not intended for speech recognition (ASR), text generation from prompts (chat), or image processing. For transcription, see zubr-whisper; for the conversational models in the Zubr lineup, see zubr-mini-1.9-3b.
🎧 Voice Examples
Here is how the model sounds:
- Example 1 (male voice): primer1.mp3
- Example 2 (female voice): primer2.mp3
Model Tree
Qwen/Qwen3-0.6B ← base language model
│ (speech adaptation)
k2-fsa/OmniVoice ← speech generation model
│ (fine-tuning by alekringtonnn-ai)
alekringtonnn-ai/zubr-tts-be ← THIS repository — male voice
—
📊 Repository Contents
| File | Size | What it is |
|---|---|---|
| model.safetensors | ~2.45 GB | Model weights in safetensors format — the only file needed for inference |
| config.json | ~2.2 kB | Model architecture configuration |
| chat_template.jinja | ~4.2 kB | Chat template used to format prompts for the speech model |
| tokenizer_config.json | ~560 B | Tokenizer settings |
| primer1.mp3 | — | Voice example: male voice |
| primer2.mp3 | — | Voice example: female voice |
| train_config.json | ~1.5 kB | Training configuration (for reference) |
| optimizer.bin | ~4.9 GB | Optimizer state — only needed to resume training, not for inference |
💡 How to choose: for running the model you only need
model.safetensors+ the config/tokenizer files. Skipoptimizer.bin,scheduler.bin, andrandom_states_0.pkl— they are training artifacts and are not used for speech generation.
—
📥 How to Download
Requirements
- Python 3.9+ (3.10+ recommended).
- A GPU is recommended (CUDA); the model can also run on CPU, but slower.
- Free disk space: ~2.5 GB (weights only) or ~7.5 GB if you also download the training files.
Method 1: huggingface-cli (recommended)
# Install the CLI
pip install -U "huggingface_hub[cli]"
# Download the entire repository:
huggingface-cli download alekringtonnn-ai/zubr-tts-be
# Or only the files needed for inference:
huggingface-cli download alekringtonnn-ai/zubr-tts-be \
model.safetensors config.json chat_template.jinja tokenizer_config.json
By default, files are saved to ~/.cache/huggingface/hub/. The download path is printed to the console when finished.
Method 2: Direct links (browser / wget / curl)
# Weights
curl -L -o model.safetensors \
"https://huggingface.co/alekringtonnn-ai/zubr-tts-be/resolve/main/model.safetensors"
# Configuration
curl -L -o config.json \
"https://huggingface.co/alekringtonnn-ai/zubr-tts-be/resolve/main/config.json"
# Chat template
curl -L -o chat_template.jinja \
"https://huggingface.co/alekringtonnn-ai/zubr-tts-be/resolve/main/chat_template.jinja"
# Tokenizer config
curl -L -o tokenizer_config.json \
"https://huggingface.co/alekringtonnn-ai/zubr-tts-be/resolve/main/tokenizer_config.json"
The same links also work in a browser: open the file page and click “Download”, or append ?download=true to the URL.
—
🚀 How to Run
The model is based on the OmniVoice architecture (Qwen3-0.6B backbone), so it is loaded like a Hugging Face model and prompted through the chat template to generate speech:
Via Python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
repo = "alekringtonnn-ai/zubr-tts-be"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(
repo,
torch_dtype=torch.float32,
)
model.eval()
text = "Прывітанне! Гэта тэст агучвання."
# Format the prompt with the model’s chat template
messages = [{"role": "user", "content": text}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
inputs = tokenizer(prompt, return_tensors="pt")
# Generate (tokens encode the audio waveform)
with torch.no_grad():
output = model.generate(**inputs, max_new_tokens=1024)
# Decode the generated audio tokens and save as WAV
# (see the OmniVoice documentation for the exact audio decoding step)
💡 The exact audio decoding step (tokens → WAV) follows the k2-fsa/OmniVoice inference pipeline — refer to its repository for the reference implementation.
Tips
- Generate on a GPU for real-time or faster synthesis; on CPU, expect slower-than-realtime generation.
- Keep input sentences reasonably short (1–3 sentences) for the most stable pronunciation.
- Punctuation matters: commas and periods help the model place natural pauses.
—
⚙️ Recommended Parameters
| Parameter | Value | Comment |
|---|---|---|
max_new_tokens | 512–2048 | Audio is encoded as tokens; more tokens = longer audio |
torch_dtype | float32 | The weights are stored in fp32; half precision may reduce quality |
temperature | 0.6–0.8 | Lower for more stable pronunciation, higher for more expressiveness |
| Input text length | 1–3 sentences | Shorter inputs give cleaner, more natural speech |