Views
No views yet
from_pretrained.1# Install OmniVoice from source (requires Python 3.10+, torch 2.8+ recommended)
2pip install git+https://github.com/k2-fsa/OmniVoice.git
3
4# Optional: install datasets if you want to evaluate
5pip install datasets soundfile torchaudioGPU recommended. Inference works on CPU but is much slower. ~3GB VRAM is enough for inference in fp16. Note about torchaudio 2.11+: torchaudio 2.11 removed all backends excepttorchcodec. If you hitImportError: TorchCodec is required, either installtorchcodec(pip install torchcodec) or downgrade totorchaudio==2.8.0.
1import torch
2from omnivoice import OmniVoice
3from omnivoice.models.omnivoice import OmniVoiceGenerationConfig
4import torchaudio
5
6model = OmniVoice.from_pretrained(
7 "NMikka/omnivoice-finetuned-ka",
8 device_map="cuda:0",
9 dtype=torch.float16,
10 load_asr=True, # auto-transcribe reference audio
11)
12
13# Voice cloning with reference
14prompt = model.create_voice_clone_prompt(
15 ref_audio="reference.wav",
16 ref_text=None, # auto-transcribed if None
17)
18
19result = model.generate(
20 text="გამარჯობა, ეს არის ქართული ტექსტი.",
21 language="Georgian",
22 voice_clone_prompt=prompt,
23 generation_config=OmniVoiceGenerationConfig(
24 num_step=32,
25 guidance_scale=2.0,
26 ),
27)
28
29torchaudio.save("output.wav", result[0].cpu(), 24000)instruct= instead of voice_clone_prompt=:1result = model.generate(
2 text="გამარჯობა, ეს არის ქართული ტექსტი.",
3 language="Georgian",
4 instruct="female, young adult",
5 generation_config=OmniVoiceGenerationConfig(num_step=32, guidance_scale=2.0),
6)| Model | FL-CER ↓ | FL-MOS ↑ | TTSDS Pitch ↑ | TTSDS SR ↑ | Voice Cloning |
|---|---|---|---|---|---|
| This model (099v2_ckpt480) | 1.61% | 2.920 | 82.07 | 75.51 | ✅ Robust both genders |
| OmniVoice pretrained | 1.64% | 2.749 | 85.64 | 76.34 | ⚠️ Speaker collapse |
| Parameter | Value |
|---|---|
| Base model | k2-fsa/OmniVoice (Qwen3-0.6B + HiggsAudioV2 codec, 600M params) |
| Training data | ~100 hours of Georgian Speech Data |
| Quality threshold | 0.99 text-audio match ratio |
| Learning rate | 2e-5 (lower than official 5e-5 to preserve cross-lingual capabilities) |
| Warmup ratio | 0.01 |
| Steps | 480 (~2 epochs) |
| Batch size | 4096 tokens × 2 GPUs × 4 grad accum = ~32k effective |
| Mixed precision | bf16 |
| Hardware | 2 × A6000 (48GB) |
1@misc{omnivoice-georgian-2026,
2 author = {Mikaberidze, Nika},
3 title = {OmniVoice Georgian: Fine-tuning and Benchmark for Georgian Text-to-Speech},
4 year = {2026},
5 publisher = {GitHub},
6 url = {https://github.com/NMikaa/TTS_pipelines}
7}1@article{omnivoice2026,
2 title = {OmniVoice: Towards Omnilingual Zero-Shot Text-to-Speech with Diffusion Language Models},
3 author = {Zhu, Han and others},
4 year = {2026},
5 url = {https://arxiv.org/abs/2604.00688}
6}