OmniVoice โ€” Badini Kurdish TTS

Fine-tune of k2-fsa/OmniVoice on Badini Kurdish (kmr) speech from three speakers (Hayfa, Abdullah, Bafreen). The weights are model.safetensors in this repo (best checkpoint, training step 27,000, started from the base model with learning rate 1e-5). This repo also holds the reference voices, the Badini text frontend and an inference script.

OmniVoice is a zero-shot voice-cloning model: every generation needs a short reference clip and its exact transcript. "Emotion" simply means which real recording of the speaker is used as the reference. This repo bundles them:

Voice Gender Emotions Files
hayfa female natural, angry, sad, happy, fear, surprise prompt-hayfa (natural), prompt-<emotion>
abdullah male angry, sad, happy, fear, surprise prompt-abdullah-<emotion>
bafreen female angry, sad, happy, fear, surprise prompt-bafreen-<emotion>

Each clip is a .wav (44.1 kHz, mono, 3โ€“7 s) with its exact transcript in the matching .txt. Abdullah and Bafreen have no neutral ("natural") recording. These are the same clips as in Dezheen89/cosyvoice.

Files

  • model.safetensors, config.json, tokenizer.json, tokenizer_config.json, chat_template.jinja โ€” the model
  • infer.py โ€” loads the model and synthesizes speech in the chosen voice and emotion
  • text preprocessing (inside infer.py, function prepare_text): converts numbers, negatives, decimals, currency, dates, times, %, fractions and abbreviations to spoken Badini words (spelled like the training transcripts) and cleans the text
  • prompt-*.wav / prompt-*.txt โ€” reference clips and their transcripts
  • training_config.json โ€” training settings, for reference only
  • test_files/ โ€” the notebook used to test the model, and infer_best_3speakers_original.py, the original 3-speaker script (fixed reference clips, plays the results in Jupyter)

Usage

pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu128
pip install omnivoice soundfile huggingface_hub

git clone https://huggingface.co/Dezheen89/omnivoice
cd omnivoice
python infer.py "text to speak" --voice abdullah --emotion sad --out output.wav

To use another voice, pass --prompt-wav and --prompt-text-file for a clip of that speaker and its exact transcript. Output is mono at the model's sampling rate (24 kHz).

Python:

import torch, soundfile as sf
from omnivoice import OmniVoice

model = OmniVoice.from_pretrained("Dezheen89/omnivoice", device_map="cuda:0", dtype=torch.float16)
prompt = model.create_voice_clone_prompt(
    ref_audio="prompt-bafreen-happy.wav",
    ref_text=open("prompt-bafreen-happy.txt", encoding="utf-8").read().strip(),
)
audio = model.generate(text="...", language="kmr", voice_clone_prompt=prompt)[0]
sf.write("output.wav", audio, model.sampling_rate)

For numbers, dates and abbreviations, infer.py runs the text through prepare_text first (--no-normalize turns it off).

License

Base model (k2-fsa/OmniVoice) is released under Apache-2.0. Its model card flags that the bundled Higgs Audio tokenizer is under a separate license โ€” check https://huggingface.co/k2-fsa/OmniVoice before redistributing.

Downloads last month
106
Safetensors
Model size
0.6B params
Tensor type
I64
ยท
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Dezheen89/omnivoice

Finetuned
Qwen/Qwen3-0.6B
Finetuned
k2-fsa/OmniVoice
Finetuned
(94)
this model