Downloads · 30 days
0
prasadvittaldev/pocket-tts-tamil-onnx-int4
pocket-tts-tamil-onnx-int4 is a text-to-speech model from prasadvittaldev. Use it when you need text read aloud. It is set up for onnx. The card lists the license as cc-by-4.0.
Text to speech for Tamil that runs entirely on a CPU — in a web page, with no server, no GPU and no API key. The whole pack is 106 MB.
Downloads · 30 days
0
Access
Public
Updated Sep 5, 2026
Repo size
111 MB
Likes
0
Public
Click a slice to open those files.
.onnx111 MB · 99%
From the Hugging Face model README
Text to speech for Tamil that runs entirely on a CPU — in a web page, with no server, no GPU and no API key. The whole pack is 106 MB.
Made by Prasad Vittaldev. If this is useful to you, follow me on LinkedIn — I post each new model as it lands: https://in.linkedin.com/in/prasadvittaldev
Try it in your browser right now: https://prasadtts.vercel.app
Kyutai's Pocket TTS is a genuinely small, genuinely good TTS model — a 6-layer flow-matching language model (89.4M parameters) over the Mimi neural codec at 24 kHz. The weights are published openly under CC-BY-4.0.
Getting it into a browser is a separate problem from getting it small. This pack solves the parts that are not obvious:
.onnx — ONNX Runtime
Web cannot read an external .onnx.data companion and fails at session
creation with Module.MountedFiles is not available. Most ONNX exports of
models this size split by default.step that
must equal the cache length. Set it to zero and the model silently ignores the
voice and emits near-silence — measured at rms 0.0026 versus 0.176 correct.| file | size | what it is |
|---|---|---|
flow_lm_main_int4.onnx | 38.9 MB | language model, int4 (MatMulNBits, block 128, symmetric) |
flow_lm_flow_int8.onnx | 9.5 MB | flow head, int8 dynamic |
mimi_decoder_int8.onnx | 21.6 MB | Mimi codec decoder, int8 dynamic |
mimi_encoder_int8.onnx | 19.8 MB | Mimi codec encoder, int8 (only needed to clone a new voice) |
text_conditioner.onnx | 15.6 MB | text conditioner, float32 -- it is almost entirely embedding lookups, so int8 saves nothing and only adds risk |
Plus bundle.json (graph/state manifest), tokenizer.model (SentencePiece), and
bos_before_voice.npy. Voice embeddings are under voices/.
Every voice below is a real audio file in this repo — click and listen.
In a browser, the easiest path is https://prasadtts.vercel.app — pick Tamil, and the model downloads once and is cached locally.
With ONNX Runtime in Python:
pip install onnxruntime numpy huggingface_hub soundfile
huggingface-cli download prasadvittaldev/pocket-tts-tamil-onnx-int4 --local-dir ./tamil
Then run it with the reference ONNX runtime from
KevinAHM/pocket-tts-onnx-export
(MIT), pointing --models_dir at the folder you just downloaded and
--precision int4.
If you build something with this, I would like to hear about it.