ONNX Runtime export of Oomni/mithi-v2-flash for on-device text-to-speech. Full precision (fp32), no quantization. 24 kHz mono output.
This is a format conversion of the original weights, not a retrained model. All credit for the model goes to the original authors.
Apache-2.0 (see LICENSE). Derived from:
Each .onnx graph loads its weights from the sibling .onnx.data file — keep them together.
| File | Inputs | Output |
|---|---|---|
indic_encoder.onnx |
input_ids (1, L) int64 |
hidden (1, L, 768) |
writer_read.onnx |
enc_ids (1,T) i64, word_vec (1,T,768) f32, has_word (1,T) bool, spk (1) i64, lang (1) i64, enc_pad (1,T) bool |
H (1,T,384) |
writer_step.onnx |
H (1,T,384), enc_pad (1,T) bool, dec_ids (1,Nd) i64, dec_map (1,Nd) i64, ctx (1,Nd,13) i64, dec_pad (1,Nd) bool |
h (1,Nd,384) |
kokoro_text.onnx |
ids (1,T) i64, lengths (1) i64, mask (1,T) bool |
asr (1,512,T) |
kokoro_decode.onnx |
asr (1,512,M) f32, f0 (1,N) f32, en (1,N) f32, style (1,128) f32 |
audio (1,1,600·M) |
asr is channels-first (1, 512, T). Align it to frame rate by repeating each phoneme
token's column dur[p] times (equivalently text_encoder(y) @ aln with
aln = one_hot(repeat_interleave(arange(L), dur))) before feeding kokoro_decode.
writer_step is called once per
token and the 13 prosody heads (dur, voicing, pitch, energy, breath) are small MLPs applied
to its last hidden row.onnx/kokoro_decode.onnx 2 MBonnx/indic_encoder.onnx 2 MBonnx/writer_step.onnx 673.4 kBonnx/writer_read.onnx 345.5 kBonnx/kokoro_text.onnx 86.9 kB