Tiny Vanya
compact on-device Russian speech synthesis
2 min readupdated
Tiny Vanya (Malek Vanek) is a lightweight local Russian speech synthesis model featuring two voices: male M1 and female F1. Built on the tiny-voca architecture, the model is distilled from the larger Qwen3‑TTS 1.7B Base model. It runs entirely on-device without calling cloud servers, supporting CPU, GPU, and Neural Engine on Mac and iPhone.
Key features
- Local execution: runs offline on CPU, GPU, Apple Silicon, and in the browser.
- Dual voices: built-in male (M1) and female (F1) voice options.
- Lightweight: only 36.2M parameters (28.5M acoustic part and 7.7M vocoder).
- Smart frontend: uses eSpeak NG and a stress dictionary to correctly read numbers, dates, and text.
What you can do
- Integrate local voice generation into desktop or mobile apps via ONNX and Core ML.
- Run audio generation directly in the browser without deploying a backend.
- Use ready-made Python or Swift code for on-device text-to-speech.
Example
Example of speech generation in Python using ONNX Runtime:
from pathlib import Path
import soundfile as sf
from tiny_vanya.onnx_infer import Speech
speech = Speech(Path("tiny-vanya/onnx/f1.onnx"))
audio = speech.speak("Привет! Как дела?", voice="F1", speed=1.0)
sf.write("output.wav", audio, 24000)Read more
Details• Architecture: two-stage (acoustic transformer → 80-band log-mel → Vocos-style vocoder).
• Quality: CER 0.21% evaluated by Whisper large‑v3‑turbo on the test set.
• Requirements: weights take about 150 MB per voice in ONNX; Core ML and PyTorch packages are available.
• License: code is distributed under the Apache‑2.0 license, weights under Dialogs OpenRAIL terms.










Comments