Skip to main content

mova-tts

Ukrainian text-to-speech with voice cloning. The model is a fine-tune of neuphonic/neutts-air on ~1780 hours of Ukrainian speech. It runs through llama.cpp (GGUF) with the NeuCodec audio codec. It streams, with the first audio after 0.16 s on an RTX 4090, and it runs faster than real time on a CPU.

pip install mova-tts
hf auth login        # once: the NeuCodec audio codec is a gated repo, see below

The audio codec comes from Neuphonic's gated Hugging Face repos. Open neuphonic/neucodec and neuphonic/neucodec-onnx-decoder once, accept the terms (access is granted at once), and log in with hf auth login. The mova-tts model itself is public.

from mova_tts import MovaTTS, preset, presets

tts = MovaTTS()                                        # downloads the model on first use
print(presets())                                       # ['lada', 'mykyta', 'oleksa', 'tetiana']
wav = tts.synthesize("Доброго дня! Сьогодні я розповім вам про нашу нову систему.", preset("tetiana"))
tts.save(wav, "out.wav")
preset voice UTMOS WER
tetiana (default) female 3.64 0.020
mykyta male 3.72 0.039
oleksa male 3.29 0.010
lada female, noisier source recordings 2.55 0.029

The preset voices come from the OpenTTS datasets (Apache-2.0). The scores are from 8 takes of 4 test sentences per voice. A preset is already encoded, so it needs no recording. Hear samples on the model page.

To clone any voice, give a clean 3–12 second recording and the exact text spoken in it: tts.voice("me.wav", "Точний текст, який звучить у записі."). Encode a voice once and reuse it with voice.save("me.npz") and Voice.load("me.npz"). Another ready voice to try cloning with is tts.example_voice(), a Common Voice recording (CC0) bundled as a wav.

mova-tts "Доброго дня! Як ваші справи?" --preset mykyta -o out.wav
mova-tts "Доброго дня!" --ref me.wav --ref-text "що сказано в me.wav" -o out.wav

Streaming

for chunk in tts.stream("Перше речення. Друге речення.", voice):
    play(chunk)                        # float32, 24 kHz mono

Audio comes in one-second chunks. The first chunk is 0.2 s long and needs 35 generated codes. Long text is generated sentence by sentence.

Speed

Time to first audio (front-end included) and real-time factor (RTF: generation time divided by audio length). Median over 6 sentences, measured on one machine:

hardware first audio RTF
NVIDIA RTX 4090 (Q8_0 or Q4_K_M) 0.16 s 0.14
Intel i9-13900KF, CPU only, 8 threads (Q8_0 or Q4_K_M) 1.0 s 0.72

device="auto" uses CUDA if it is available, then the Apple GPU (Metal), then the CPU. On the CPU and on a Mac, the audio is decoded with the NeuCodec ONNX decoder. On the CPU, set threads= to the number of performance cores. More threads than that slow it down.

Quality

The model was evaluated on 234 held-out sentences (Common Voice and audiobooks, speakers never seen in training), cloning each speaker from a different sentence of theirs. Each sentence is sampled, so every row gives the range over 3 seeds (2 for Q4_K_M):

WER CER UTMOS speaker similarity
synthesize(), Q8_0 0.123–0.140 0.035–0.041 3.45 0.48–0.50
stream(), Q8_0 0.135–0.140 0.041–0.046 3.37 0.48–0.50
stream(), Q4_K_M 0.131–0.135 0.041 3.33 0.48–0.49

WER and CER come from Whisper large-v3 transcripts of the generated audio. UTMOS is a predicted naturalness score from 1 to 5. Speaker similarity is the ECAPA cosine to the speaker's real recordings. A take that does not stop, or stops too early, is regenerated with another seed. stream() can do that only before its first chunk is out.

Text front-end

  1. Clean-up, then numbers, dates and units turned into words with skypro1111/m2m100-ukr-verbalization. That model (~0.5 GB) downloads the first time a text contains digits.
  2. Latin words transliterated, with acronyms spelled out by letter names: CRM becomes сі-ар-ем.
  3. Stress from naholos.
  4. IPA from ipa-uk, vendored here under MIT.

If a word is stressed wrong, mark it yourself and your mark always wins. You can write за+мок or за́мок in the text, or keep a list of such words in a file:

tts = MovaTTS(user_dict="my_words.txt")     # one stressed word per line: за+мок
print(tts.frontend.stressed("Старий замок"))  # check the stress before synthesis

Options

MovaTTS(quant="Q4_K_M")     # smaller model: 0.6 GB instead of 0.8 GB
MovaTTS(device="cpu")       # "auto" | "cuda" | "metal" | "cpu"
MovaTTS(seed=42)            # repeatable takes; default is a new take every call
MovaTTS(watermark=False)    # synthesize() adds a Perth watermark by default

Each take is sampled, so it sounds a little different every time. Sometimes a take stretches a word or pauses oddly. If that happens, generate again or use another seed.

Model and training

  • Base: neuphonic/neutts-air, a 0.7B Qwen-based speech language model (Apache-2.0). It was fully fine-tuned in two stages: 12k steps on a 740-hour subset, then 20k steps on all the data.
  • Data: ~1780 hours of Ukrainian speech: audiobooks read by professional narrators, podcasts, Common Voice, and studio voice recordings. All audio was re-encoded with NeuCodec. Stress labels come from the recordings themselves: the text was aligned with the Montreal Forced Aligner, and an acoustic detector marked the stress each speaker actually used.
  • Weights: Mikhailo/mova-tts holds safetensors (for transformers) and GGUF Q8_0 and Q4_K_M files (for llama.cpp).

Responsible use

Clone only voices you have permission to use. synthesize() output carries the imperceptible Perth watermark, so generated audio can be detected.

License

Code and model: Apache-2.0, like NeuTTS-Air and NeuCodec. The vendored ipa-uk is MIT (LICENSES/ipa-uk.txt).

Metadata

Release files for mova-tts 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mova-tts 0.1.3
File Size Uploaded Provenance Actions
mova_tts-0.1.3.tar.gz 272.5 kB Without provenance Details for mova_tts-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mova-tts 0.1.3
File Interpreter ABI Platform Actions
mova_tts-0.1.3-py3-none-any.whl Python 3 none any Details for mova_tts-0.1.3-py3-none-any.whl

Total release size: 543.6 kB

Release files / mova_tts-0.1.3.tar.gz

Download URL mova_tts-0.1.3.tar.gz
Size 272.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8d496f8091dde7bf49983d3b0593cb253f526893eeec6bab81d256a7db08de1c
BLAKE2b-256 checksum
How to use checksums
147b4799090b8df27162ad4af2eb30be566b1923e8388f0102d5ec6944507c6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.12

Release files / mova_tts-0.1.3-py3-none-any.whl

Download URL mova_tts-0.1.3-py3-none-any.whl
Size 271.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
086b39e7e30c7288eb32ea271ad40c701bdf0994356e9e090f03a8f20e7691f6
BLAKE2b-256 checksum
How to use checksums
dfa9d684324c0729a83761578125bea17b05601c2325138f23e48a3ab32bddde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.12

Security for mova-tts 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page