OmniVoice Abkhazian (Finetuned)
This is a fine-tuned version of k2-fsa/OmniVoice for the Abkhazian language (ab). It was trained on a small, open dataset of Abkhazian speech to improve synthesis quality and prosody for this low-resource language.
Model Details
- Base model: k2-fsa/OmniVoice — a diffusion-based TTS model supporting 600+ languages and zero-shot voice cloning.
- Training data: Nart/abkhaz-tts (~10 hours of transcribed Abkhazian speech).
- Language: Abkhazian (
ab). - Model size: ~2.4 GB (fp16).
- License: Apache 2.0 (inherited from the base model).
Intended Use
This model is intended for research and non-commercial use, specifically for:
- Generating Abkhazian speech from text.
- Voice cloning using a short reference audio (3–10 seconds) to control speaker identity and, importantly, stress placement.
- Building tools for language preservation and documentation.
How to Use
Installation
pip install omnivoice torch torchaudio
Basic Inference (Voice Cloning with Reference)
The key feature for Abkhazian is using a reference audio to guide the model's prosody, especially stress. Provide a short clip of a native speaker (or yourself) pronouncing the target phrase or a similar phrase.
import torch
import torchaudio
from omnivoice import OmniVoice
# 1. Load the fine-tuned model
model = OmniVoice.from_pretrained(
"Grundik/omnivoice-abkhazian-finetuned",
device_map="cuda:0", # or "cpu" if you do not have a GPU
dtype=torch.float16,
load_asr=True, # needed if you omit ref_text; model will auto-transcribe
)
# 2. Provide a reference audio (optional but recommended for stress control)
# Replace "path/to/your/reference.wav" with the actual path to your file.
# The audio should be clear speech, ideally 3-10 seconds.
ref_audio_path = "path/to/your/reference.wav" # <-- CHANGE THIS
# 3. Generate speech
text_to_speak = "Анцәа длыцхраар, аиспан ԥҳәызба қәԥш валуаа ргерб даӷраԥало илкәаҳашт."
audio = model.generate(
text=text_to_speak,
language="ab", # Abkhazian
ref_audio=ref_audio_path, # optional: guides stress and speaker identity
# ref_text="...", # optional: provide if you have transcription; otherwise ASR auto-transcribes
)
# 4. Save
torchaudio.save("output.wav", audio[0].cpu(), 24000)
print("Saved to output.wav")
Without a Reference (Auto Voice)
If you do not provide a reference, the model will use a default voice. Quality and stress may vary.
audio = model.generate(
text="Анцәа длыцхраар, ...",
language="ab",
)
Limitations
- Stress (ударение): Abkhazian stress is complex and not fully predictable from text alone. The fine-tuned model has improved but not eliminated stress errors. Using a reference audio with correct stress is the recommended workaround.
- Data size: The training set (~10 hours) is small for TTS. The model may produce unstable results on out-of-domain text or long utterances.
- Language coverage: This checkpoint is specialized for Abkhazian; using it with other languages may yield unpredictable results.
Training
- Hardware: Trained on a single consumer GPU (16 GB VRAM).
- Data: ~9.5 hours of Abkhazian speech with transcripts.
- Fine-tuning type: Full fine-tuning (not LoRA).
Citation
If you use this model, please also cite the original OmniVoice paper:
@article{zhu2026omnivoice,
title={OmniVoice: Towards Omnilingual Zero-Shot Text-to-Speech with Diffusion Language Models},
author={Zhu, Han and Ye, Lingxuan and Kang, Wei and Yao, Zengwei and Guo, Liyong and Kuang, Fangjun and Han, Zhifeng and Zhuang, Weiji and Lin, Long and Povey, Daniel},
journal={arXiv preprint arXiv:2604.00688},
year={2026}
}
Contact
For questions or feedback, please open an issue in this repository.