Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

OmniVoice

OmniVoice: A massively multilingual zero-shot text-to-speech model supporting voice cloning, voice design, and automatic voice selection.

What problem it solves

OmniVoice provides a massively multilingual zero-shot text-to-speech model supporting over 600 languages. It supports voice cloning, voice design, and automatic voice selection, along with inline non-verbal symbols and pronunciation correction.

Key features

  • Broad multilingual speech generation — Generate zero-shot text-to-speech across more than 600 languages, with voice cloning, voice design, and automatic voice selection available through the same API.

    Source: README, docs

  • Voice cloning and voice design — Clone a voice from a short reference recording, or create one by specifying attributes such as gender, age, pitch, accent, dialect, and style without reference audio.

    Source: README, docs/voice-design.md

  • Expressive and pronunciation controls — Insert non-verbal tags into input text and apply pronunciation corrections with pinyin or the CMU pronunciation dictionary.

    Source: README

  • Python and command-line workflows — Use the Python API for programmatic generation, an interactive web demo for direct experimentation, and single-item or multi-GPU batch inference from the command line.

    Source: README, omnivoice/cli

  • Reusable voice prompts and optional normalization — Encode and save a cloned voice prompt for use in later sessions, and opt into text normalization for numbers, dates, and currency.

    Source: README

Quick start

Copied verbatim from the project's README.

# From PyPI (stable release)
pip install omnivoice

# From the latest source on GitHub (no need to clone)
pip install git+https://github.com/k2-fsa/OmniVoice.git

# For development (clone first, editable install)
git clone https://github.com/k2-fsa/OmniVoice.git
cd OmniVoice
pip install -e .
from omnivoice import OmniVoice
import soundfile as sf
import torch

model = OmniVoice.from_pretrained(
    "k2-fsa/OmniVoice",
    device_map="cuda:0",
    dtype=torch.float16
)
# Apple Silicon users: use device_map="mps" instead
# Intel Arc GPU users: use device_map="xpu" instead

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.",
) # audio is a list of `np.ndarray` with shape (T,) at 24 kHz.

# If you don't want to input `ref_text` manually, you can directly omit the `ref_text`.
# The model will use Whisper ASR to auto-transcribe it. To use a local copy (or
# a different Whisper model), pass `asr_model_name="..."` to `from_pretrained`.
# To control which device Whisper is loaded on (e.g. another GPU in multi-GPU
# setups, or the CPU), pass `asr_device="cuda:1"` (or `"cpu"`).

sf.write("out.wav", audio[0], 24000)

Who it may suit

Inference: may suit developers and speech researchers who need multilingual zero-shot TTS, voice cloning, voice design, or programmatic and batch speech generation workflows.

Topics to discuss

  • How should multilingual voice cloning quality be evaluated across languages and reference-audio conditions?

  • Which speaker attributes and non-verbal controls are most useful for production voice-design workflows?

  • What safeguards and consent practices should communities adopt for voice cloning and reuse?


Written by ReadmeX AI from the project's README, source and public GitHub data; it may contain mistakes.

Read the original README https://github.com/k2-fsa/OmniVoice#readme

ReadmeX opened this community for a trending project; it is not run by the project. Maintainers can claim it from the community page.

github.comhttps://github.com/k2-fsa/OmniVoice

Comments

…