Downloads · 30 days
164
41% of all-time downloads
eae1212/vosk-tts-ru-0.9-prepared
vosk-tts-ru-0.9-prepared is a text-to-speech model from eae1212. Use it when you need text read aloud. The card lists the license as apache-2.0.
This is one file from vosk-model-tts-ru-0.9-multi, passed through onnxruntime.quantization.shapeinference.quantpreprocess (symbolic shape inference + graph simplification).
Downloads · 30 days
164
41% of all-time downloads
All-time downloads
401
Public
Repo size
829 MB
Likes
0
Public
Click a slice to open those files.
.onnx829 MB · 100%
From the Hugging Face model README
This is one file from
vosk-model-tts-ru-0.9-multi, passed
through onnxruntime.quantization.shape_inference.quant_pre_process
(symbolic shape inference + graph simplification).
The weights are not touched. No quantization, no precision loss. Only the graph structure is cleaned up.
The original model.onnx takes 25 seconds to load on an Android phone
(Snapdragon, 8 cores) — and that is not graph optimization: it is equally
slow with optimization disabled. The prepared file loads in 1 second.
Measured on device, ONNX Runtime 1.24.3, best of three runs:
| file | size | load | synthesis (ratio to audio length) |
|---|---|---|---|
model.onnx (original) | 179 MB | 25.3 s | 0.27 |
model_prep.onnx (this) | 174 MB | 1.0 s | 0.27 |
| int8 quantized | 124 MB | 0.8 s | 0.25 |
Quantization turned out unnecessary: the prepared full-precision file is just as fast to load and loses nothing.
| file | size | note |
|---|---|---|
model_prep.onnx | 174 MB | synthesizer, prepared (this is the whole point) |
bert/model.onnx | 654 MB | language model, unmodified copy of the original |
bert/vocab.txt | 1.8 MB | its WordPiece vocabulary |
config.json | 3 KB | phoneme table and inference settings |
The language model needed no preparation — it already loads in 0.9 s. It is mirrored here only so that everything sits in one place; it is byte-identical to the file inside the official archive.
Not here: the dictionary file (101 MB). It is a plain text pronunciation
dictionary and is better converted to a binary format for mobile use.
Everything original is at https://alphacephei.com/vosk/models.
from onnxruntime.quantization.shape_inference import quant_pre_process
quant_pre_process("model.onnx", "model_prep.onnx", skip_symbolic_shape=False)
Файл получен из официальной модели Vosk-TTS без изменения весов — только приведение графа в порядок. Исходная модель грузится на телефоне 25 секунд на любом уровне оптимизации, включая отключённую; подготовленная — за одну.
Original model and all training work: Alpha Cephei, alphacep/vosk-tts. Licensed under Apache 2.0, same license applies here.