k2-fsa/OmniVoice
Machine LearningA zero-shot multilingual TTS model that clones voices and designs voices across 600+ languages, with Python API and CLI tools.
What it is
OmniVoice is a zero-shot text-to-speech model from the k2-fsa team that covers more than 600 languages. It is built on a diffusion language model-style architecture and provides three generation modes: voice cloning from a short reference clip, voice design from speaker attributes such as gender, age, pitch, accent and dialect, and automatic voice selection when no prompt is given. The repository ships the inference and training code, a published model on Hugging Face, a local Gradio demo, and command-line tools for single-item and multi-GPU batch inference.
The intended audience is developers and researchers who want multilingual TTS inside their own pipelines, or who want to fine-tune and evaluate the model. Beyond speech generation, the model supports inline non-verbal tags such as [laughter], pinyin tone numbers for Chinese pronunciation correction, and CMU dictionary entries for English overrides.
Install and run
Prepare a fresh Python environment and install a PyTorch build appropriate to your hardware. For an NVIDIA GPU with CUDA 12.8, for example:
pip install torch==2.8.0+cu128 torchaudio==2.8.0+cu128 --extra-index-url https://download.pytorch.org/whl/cu128
pip install omnivoice
Apple Silicon users install plain torch/torchaudio, and Intel Arc users install the XPU wheels from Intel's index. To try the model without writing code, start the bundled web UI after installation:
omnivoice-demo --ip 0.0.0.0 --port 8001
From Python, load the pretrained model and generate speech by cloning a reference voice:
from omnivoice import OmniVoice
import soundfile as sf
import torch
model = OmniVoice.from_pretrained("k2-fsa/OmniVoice", device_map="cuda:0", dtype=torch.float16)
audio = model.generate(
text="Hello, this is a test of zero-shot voice cloning.",
ref_audio="ref.wav",
ref_text="Transcription of the reference audio.",
)
sf.write("out.wav", audio[0], 24000)
ref_text can be omitted, in which case Whisper ASR transcribes the reference audio. Reusable voice prompts can be encoded once with create_voice_clone_prompt and saved with .save("my_voice.pt"). The same modes are reachable from the omnivoice-infer and omnivoice-infer-batch CLIs; batch jobs read a JSONL file where only id and text are mandatory. Hosted alternatives include a Hugging Face Space and a Colab notebook.
Constraints
Inference needs a supported accelerator: CUDA GPUs, Apple Silicon (MPS), or Intel Arc via XPU. flash_attn is unavailable on XPU, so the model falls back to SDPA. Voice cloning works best with 3–10 seconds of reference audio; longer clips slow inference and may reduce quality. Cross-lingual cloning carries an accent from the reference audio's language, and reference audio in the same language as the target gives standard pronunciation.
Voice design is trained on Chinese and English data only, so other languages may produce unstable results; cloning is described as the most stable mode. Optional text normalization (normalize_text=True) requires the omnivoice[tn] extra, and on macOS Apple Silicon pynini must be installed via conda first. FlashInfer acceleration requires NVIDIA GPUs and roughly 2–2.9x speedups were reported on a single H100 depending on batch size. The project is Apache-2.0 licensed, and the README explicitly prohibits unauthorized voice cloning, impersonation, fraud, and other illegal use.
HotRepo's take
OmniVoice appeared on the Python weekly list for 2026-12-04 at position 17, with 745 stars gained in that week against a total of 17,728 stars and 2,600 forks. The distribution is substantial, but the materials here contain only that single weekly snapshot and no daily ranking or longer time series, so there is no basis for describing a trend. What stands out technically is the combination of language breadth, voice cloning and voice design in one model with published training examples and batch inference tooling; those are the parts worth evaluating if you are choosing a TTS stack rather than the star count alone.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- OpenBMB/VoxCPMA 2B tokenizer-free TTS model for 30-language speech synthesis, voice design, and voice cloning.
- pnnbao97/VieNeu-TTSVietnamese text-to-speech with instant voice cloning that runs on CPU or GPU for real-time speech.
- VoxDance-Lab/VoxMelA tokenizer-free autoregressive TTS framework that models mel-spectrograms directly and supports English/Chinese zero-shot voice cloning.
- microsoft/VibeVoiceA family of open-weight speech models for long-form transcription and expressive multi-speaker TTS.
- abus-aikorea/voice-proA local WebUI that turns videos into transcribed, translated, cloned-voice dubs without cloud APIs.