OmniVoice is a high-quality voice cloning TTS model supporting over 600 languages, based on a novel diffusion language model style architecture, capable of generating high-quality speech with superior inference speed. It supports two main capabilities: voice cloning and voice design.
Main capabilities
- 600+ language support: the widest language coverage among zero-shot TTS models.
- Voice cloning: achieves state-of-the-art voice cloning quality.
- Voice design: control the voice through specified speaker attributes, including gender, age, pitch, dialect/accent, whisper, etc.
- Fine-grained control: supports non-verbal symbols (such as [laughter]) and pronunciation correction via pinyin or phonemes.
- Fast inference: RTF can be as low as 0.025 (40 times faster than real-time).
- Diffusion language model style architecture: simple, streamlined, and scalable design, balancing quality and speed.
Installation Two methods are provided: pip or uv. It is recommended to use a fresh virtual environment (such as conda, venv, etc.) to avoid conflicts. Step 1: Install PyTorch. Refer to the PyTorch official website for other version installation methods. Intel Arc GPUs (Alchemist and Battlemage architectures) can be supported through PyTorch's XPU backend, requiring installation of the corresponding operating system's Intel GPU driver and installation of XPU-supporting PyTorch from Intel's wheel index. flash_attn is not available on XPU, and the model will automatically fall back to SDPA; training using packed sequences (flex_attention) has partial support on XPU, and single-GPU SDPA training should work normally. Tested on Arc A310 (Alchemist, 4 GB) and Arc Pro B50 (Battlemage, 16 GB). Step 2: Install OmniVoice (choose one of two). Clone the repository and sync dependencies; a mirror can be used: uv sync --default-index "https://mirrors.aliyun.com/pypi/simple"。
Quick start Try it without coding: launch the local Web UI: omnivoice-demo --ip 0.0.0.0 --port 8001; or experience it directly on HuggingFace Space; or run it in Google Colab. If you have difficulty connecting to HuggingFace when downloading the pretrained model, you can set export HF_ENDPOINT="https://hf-mirror.com"。
Three Generation Modes OmniVoice supports three generation modes, and all features in this section can also be used through the command-line tool.
- Voice Cloning: Clone a voice from a short reference audio; ref_audio and ref_text must be provided. The reference audio can be encoded once and the generated prompt saved to skip the audio loading/automatic transcription steps in subsequent sessions. It is recommended to use a 3–10 second reference audio clip; longer audio will slow down inference and may reduce cloning quality. For standard pronunciation, reference audio in the same language as the target speech should be used; in cross-lingual voice cloning (where the reference audio and target speech are in different languages), the generated speech will carry the accent of the reference audio's language.
- Arabic Numeral Handling: For better results, it is recommended to first normalize Arabic numerals into words (e.g., "123" → "one hundred twenty-three"). This can be done automatically by passing normalize_text=True in generate() (requires installing an extra dependency: pip install "omnivoice[tn]", which brings in WeTextProcessing). Chinese and English use WeTextProcessing; other languages fall back to num2words for handling integers. Inline control syntax ([laughter], [B EY1 S], pinyin tone marks) will be preserved. On macOS (Apple Silicon), pynini has no wheel and must first be installed via conda install -c conda-forge pynini. See docs/tips.md for more tips.
- Voice Design: Describe the desired voice using speaker attributes, with no reference audio needed. Supported attributes include gender (male/female), age (child to elderly), pitch (very low to very high), style (whisper), English accent (American, British, etc.), and Chinese dialect (Sichuan, Shaanxi, etc.). Attributes are comma-separated and can be freely combined across categories. Note: the model is primarily trained for the voice cloning task, so voice cloning is the most stable mode. Voice design is trained only on Chinese and English data and can generalize to other languages, but may produce unstable results for some low-resource languages or edge cases. See docs/voice-design.m for the complete attribute reference, Chinese equivalents, and usage tips.d.
- Automatic voice selection: let the model automatically select a voice.
Generation parameters The above three modes share the same model.generate() API. Generation behavior can be further controlled via keyword arguments; see docs/generation-parameters.md for details.
Non-verbal and pronunciation control OmniVoice supports inline non-verbal symbols and pronunciation correction in the input text.
- Non-verbal symbols: directly insert tags such as [laughter] into the text to add expressive non-verbal sounds. Supported tags include: [laughter], [sigh], [confirmation-en], [question-en], [question-ah], [question-oh], [question-ei], [question-yi], [surprise-ah], [surprise-oh], [surprise-wa], [surprise-yo], [dissatisfaction-hnn].
- Pronunciation control (Chinese): use pinyin with tone numbers to correct the pronunciation of specific characters.
- Pronunciation control (English): use the CMU pronunciation dictionary (uppercase, in square brackets) to override the default English pronunciation.
Command-line tools Three CLI entry points are provided. The CLI tools support all features available in the Python API (voice cloning, voice design, automatic voice, generation parameters, etc.), all controlled via command-line arguments. omnivoice-demo provides a Web UI for voice cloning and voice design; see omnivoice-demo --help for the full options. omnivoice-infer-batch can distribute batch inference across multiple GPUs, targeting large-scale TTS tasks. The test list is a JSONL file with one JSON object per line; among them, id and text are required fields, ref_audio and ref_text are used for voice cloning mode, and instruct is used for voice design mode. If no reference audio or instruct is provided, the model will generate text with a random voice. language_id, duration and speed are optional fields; duration (seconds) fixes the output length, and speed controls the speaking rate. If both duration and speed are provided, speed will be ignored.
FlashInfer acceleration Using FlashInfer kernels (sequence packing for CFG cond/uncond pairs, fused RMSNorm/RoPE/GEMM kernels, and optional CUDA graphs) can losslessly accelerate inference by about 2–2.9x. Installation is for NVIDIA GPUs, and you need to choose an index matching your CUDA version (for example, choose cu128 for PyTorch built with CUDA 12.8). CUDA graphs are recommended for single-stream (batch=1) scenarios, where kernel launch overhead dominates; at batch >= 4, the regular FlashInfer path is already the fastest configuration.
Training and evaluation See examples/ for the complete workflow (from data preparation to training, evaluation, and fine-tuning).
Discussion and communication You can discuss directly on GitHub Issues. You can also scan the QR code to join the WeChat group or follow the WeChat official account.
Community projects OmniVoice is supported by a growing ecosystem of community projects; see Community Projects.
Usage restrictions Users are strictly prohibited from using this model for unauthorized voice cloning, voice impersonation, fraud, scams, or any other illegal or unethical activities. All users should ensure full compliance with applicable local laws, regulations, and ethical standards. The developers are not responsible for any misuse of the model, advocate responsible AI development and use, and encourage the community to uphold safety and ethical principles in AI research and applications.