Pocket TTS — Indian English · single voice hindifullmale
86 MB. A complete Indian English text-to-speech model, 4-bit quantised, running
real-time on a CPU with no GPU anywhere in the loop.
Hear it first — sample_int4_g32.wav is generated by the
4-bit weights in this repo, not by the float model.
~110M parameters, 24 kHz, one voice, MIT.
Built by Prasad Vittaldev. Follow me on LinkedIn — I publish every new voice and language there as it launches.
Why this exists
Kyutai's pocket-tts is a genuinely remarkable piece of work: a text-to-speech model small enough and fast enough to run in real time on a CPU, released under MIT, with a training recipe that anyone can reproduce. That combination is rare — most speech models of this quality assume a GPU at inference and a restrictive licence.
What it shipped with, though, speaks English in American and British voices. None of them sound Indian.
This repository adds an Indian-accented English voice. Kyutai's architecture, training recipe and codec are used as published; what is added here is a teacher finetune on 246 hours of English read by 24 Indian speakers, a tokenizer trained on that text, and a depth distillation down to a model this size. The result keeps everything that makes pocket-tts a great deal — CPU real-time, MIT, on-device, no API key, no per-character billing, nothing leaving the machine — with an Indian accent.
Model
| Architecture | pocket-tts, 6-layer flow-matching backbone + Mimi codec |
| Parameters | ~110M (including the Mimi codec) |
| Sample rate | 24 kHz |
| Language | Indian English |
| Voice | hindifullmale — fixed, see below |
| Speed | Measured 5.8x real-time on CPU alone (no GPU) at int8, on desktop x86. Generating a minute of speech takes about 10 seconds. |
The voice is fixed
This model was distilled on a single speaker, and voice cloning did not
survive that. It ships a voice_prompt.wav because the API requires one, but
supplying a different prompt does not hand you that speaker's voice. Measured across 6 prompts spanning 106-266 Hz, this model's output moved 23 Hz in total, staying between 104 and 127 Hz:
| prompt clip | 24-layer teacher output | this model's output |
|---|---|---|
| 106 Hz | 108 Hz | 111 Hz |
| 116 Hz | 110 Hz | 104 Hz |
| 147 Hz | 135 Hz | 126 Hz |
| 210 Hz | 215 Hz | 113 Hz |
| 241 Hz | 240 Hz | 117 Hz |
| 266 Hz | 256 Hz | 127 Hz |
The teacher follows its prompt across the range; this model tracks it only weakly. It cannot be pushed below the speaker it was trained on either — the 106 Hz prompt still comes out at 111 Hz.
That is the expected consequence of single-speaker distillation and it is why each voice is a separate repository rather than one model with selectable voices. If you want a different voice, use a different repo.
Files: start with the 4-bit one
| file | precision | download | notes |
|---|---|---|---|
model_int4_g32.safetensors | int4 + fp16 scales | 86 MB | smallest. Unpack with the script below. |
model_bf16.safetensors | bfloat16 | 209 MB | loads directly |
model.safetensors | float32 | 418 MB | loads directly, no reason to prefer it |
The 4-bit file stores every backbone weight as two 4-bit codes per byte plus one
fp16 scale per group of 32, and keeps the Mimi audio codec in fp16 — quantising
a neural codec causes artefacts that have nothing to do with the language model.
Reconstruction is (code - 8) * scale.
What 4-bit buys and what it does not. It is a download and storage win: 86 MB instead of 418 MB, a 4.8x reduction. It is not a memory win — unpacking restores fp16 tensors, so RAM at inference matches the bf16 build. A native int4 kernel would change that, and none exists for pocket-tts today.
For speed, add --quantize to any of the three: dynamic int8 on attention
and feed-forward at load time, measured at 5.8x realtime against 3.5x realtime for float.
How far down can quantization go?
Every row below was generated from this model on one fixed passage (reference 52.0 s in float). Weight error is the mean relative error in the backbone Linear weights; words is the share of the passage's words that speech recognition recovered (Whisper normalises spelling and misses some names, so even float is below 100%). Single renders vary by a few percent, so only large differences mean anything.
| precision | weight error | backbone size | duration | words | verdict |
|---|---|---|---|---|---|
| float | 0.0% | 324 MB | 52.0 s | 94% | reference |
| int8 | 0.6% | 81 MB | 52.4 s | 94% | usable — shipped default (--quantize) |
| int4 group 32 | 10.7% | 46 MB | 53.9 s | 95% | usable — the int4 file in this repo |
| int4 group 128 | 14.0% | 42 MB | 53.1 s | 92% | slightly lossy |
| int3 group 32 | 23.9% | 36 MB | 51.1 s | 91% | slightly lossy |
| int3 group 128 | 30.6% | 32 MB | 52.0 s | 75% | degrading |
| int2 group 32 | 62.0% | 25 MB | 35.0 s | 1% | broken |
pocket-tts implements int8 only, so int4 is shipped as a storage format: quantize_int4.py unpacks it to fp16 for the stock loader, and quantization_sweep.py reproduces this table.
Usage
pip install pocket-tts
The 86 MB route
Download the 4-bit file, unpack it once, then use it like any other checkpoint:
huggingface-cli download prasadvittaldev/pocket-tts-indian-english-male-indictts model_int4_g32.safetensors quantize_int4.py --local-dir .
python quantize_int4.py --unpack --src model_int4_g32.safetensors --dst model.safetensors
That writes a normal safetensors file the stock loader reads. Point a config at it, or just use the hosted config and the full-precision weights below.
Straight from the Hub
python -m pocket_tts generate \
--config hf://prasadvittaldev/pocket-tts-indian-english-male-indictts/config.yaml \
--voice hf://prasadvittaldev/pocket-tts-indian-english-male-indictts/voice_prompt.wav \
--text "Your train to Chennai leaves from platform number four at half past six." \
--output-path out.wav \
--device cpu --quantize
--quantize is the int8 path: fastest at runtime, 5.8x realtime.
from pocket_tts import TTSModel
import numpy as np, soundfile as sf
model = TTSModel.load_model(config="hf://prasadvittaldev/pocket-tts-indian-english-male-indictts/config.yaml", quantize=True)
model.to("cpu")
state = model.get_state_for_audio_prompt("voice_prompt.wav")
chunks = list(model.generate_audio_stream(
model_state=state, text_to_generate="Your train to Chennai leaves from platform number four at half past six."))
sf.write("out.wav", np.concatenate([np.asarray(c).reshape(-1) for c in chunks]), 24000)
Long text and the voice prompt
Generate one sentence at a time and join the results. A generation chunk is capped at 50 tokens and anything past the cap is dropped. On this tokenizer 50 tokens is roughly 160 characters of English, so split long sentences on commas too.
Use the voice_prompt.wav shipped here, or a clip cut the same way. It is a 3.95 s excerpt that stops mid-sentence. With the uncut clip — a complete sentence followed by ~0.3 s of silence — this model spoke the prompt's own words instead of any input shorter than about 14 tokens ("The postman knows him by name." came out as "They have built a temple in his garden"). The same clip with the trailing silence removed, or cut mid-sentence at 2, 3, 4 or 5 s, was clean on every short sentence tested. If you make your own prompt, do not end it in silence.
Known limitations (measured)
- Rare Indian proper nouns. Common names and places are fine, but names that are rare in the training text can come out wrong. On a passage of 23 Indian names the model never saw in training, 14–17 were recognisable across two renders. "Raghava Rao", "Ramanujan", "Karimnagar" and "Erode" were wrong in every render. The 24-layer teacher also gets "Raghava Rao" wrong, so more distillation will not fix it. A respelling does not help either: "Godawari" came out worse than "Godavari".
- Occasional stutters. In long sentences a short phrase is sometimes repeated ("for his wife's for his wife's photograph"). It is intermittent, so a regenerate usually clears it.
- Hyphenated numbers. "seventy-two" was misread. Write numbers as separate words or digits you have checked.
- Render-to-render variation.
sample_int4_g32.wavis the cleanest of four renders of the same text. One of the other three repeated "number", and three of the four said "tick" for "ticket".
Audio samples
How it was made
- Teacher. Kyutai's released 24-layer English model was finetuned on 246 hours of English read by 24 Indian speakers (60,000 steps). The text embedding is reset and relearned against a 4,000-piece sentencepiece tokenizer trained on this corpus.
- Alignment. Word-level CTC forced alignment with
facebook/wav2vec2-base-960h. - Distillation. The 24-layer teacher was distilled down to this 6-layer student (65,000 steps), trained only on this single speaker's 9.8 hours / 6,720 clips. Depth is where the size is: the backbone is ~96% of the parameters.
- Name coverage. The student garbled Indian names the teacher said correctly: its own training clips contain only 14 of 317 common Indian names, cities, rivers and foods. The last 15,000 steps added 2,646 name-dense sentences (3.5 h) spoken by the 24-layer teacher in this voice. A clip was kept only if speech recognition recovered every name. These were mixed with the real recordings, which stayed about 70% of the clips.
Credits
This model would not exist without:
- kyutai-labs/pocket-tts — the architecture, the Mimi codec, the training and distillation recipes, released under MIT. All the hard modelling work is theirs.
- Speech corpora:
SPRINGLab/IndicTTS-English— IndicTTS English (SPRING Lab, IIT Madras) — English read by 24 Indian speakers
Licence
MIT, matching upstream pocket-tts. The training corpora carry their own licences — check the dataset pages above before commercial use.
More voices and languages
More Indian English voices and more Indian languages are on the way. Follow Prasad Vittaldev on LinkedIn for each new model launch.