Tiny Voca English ONNX
An optimized FP32 ONNX export of Tiny Voca, Muhammed Nazeem’s English text-to-speech model. This release uses the public English checkpoint and supports the original F2 and M2 voices at 24 kHz.
| File | Precision | Size | Learned parameters |
|---|---|---|---|
exact.onnx |
FP32 | 21.36 MB | 4,537,291 |
The file contains the complete synthesis graph, with standard ONNX opset 17,
internal noise generation and the original audio and durations outputs.
The graph operates on one utterance at a time. The tensor shapes, provenance
and artifact hashes are in manifest.json.
Inference
Install numpy and onnxruntime, then run the bundled example with the
pre-encoded sample.
sha256sum -c SHA256SUMS
python infer.py exact.onnx speech.wav --voice F2
python infer.py exact.onnx speech-m2.wav --voice M2
For custom text, install Dizione at the pinned source
revision
and set DIZIONE_DATA to the directory of the
upstream phonemizer assets.
Then add --text "Your sentence." to the example. Callers should split
long passages before synthesis, as the upstream demo does. The duration
output is measured in frames of 256 samples. voice is indexed as F2 = 0
and M2 = 1. speed and pitch_range are multipliers.
pitch_shift is in natural-log frequency units.
Quality and latency
With shared noise, the exact FP32 graph preserved all durations and sample counts in the native and Chromium tests. Minimum waveform SNR was 143.42 dB on native ONNX Runtime and 140.53 dB on ONNX Runtime Web. The native evaluation covered 100 English texts in both voices. An independent set of 24 difficult renders also preserved every duration and sample count.
A compact INT8 candidate is in research, with human blind listening pending. This release provides the verified FP32 graph.
The table reports median text-to-audio latency reduction for one 1.97-second passage on an AMD EPYC 9V74. The ranges come from two reversed orders. These end-to-end measures include phonemization and waveform delivery.
| Variant | Native 1 thread | Native 4 threads | Chromium 1 thread | Chromium 4 threads |
|---|---|---|---|---|
| FP32 exact | 6.7–10.6% | 8.3–9.3% | 2.7–5.0% | 8.0–10.2% |
Tested with ONNX Runtime 1.32.0 on CPU and Chromium 159 with ONNX Runtime Web 1.20.1 WASM on Linux. Performance depends on sentence length and thread count. Mobile, Safari, network startup and other CPU architectures were outside this benchmark. See the benchmark and raw results.
License and attribution
The ONNX graph and example are distributed under Apache-2.0. See LICENSE and NOTICE. Credit Muhammed Nazeem and cite the original Tiny Voca release and CITATION.cff. The optional Dizione code and language data come from their upstream repositories, with their own accompanying license files. See the upstream phonemizer licenses.
Model tree for ymelka/tiny-voca-english-onnx
Base model
n4ze3m/tiny-voca