hima-tts-nano-te

Telugu text to speech in a small model (62M parameters). It runs on a laptop CPU, faster than real time, and there are ONNX and MLX versions for even faster local use.

Four ways to pick the voice:

How Uses
Built-in voice voice="Bhavana" the base model + the voices adapter
Copy a voice voice="my_voice.wav" (5 to 10 s of clear speech) the base model
Random voice leave voice out the base model
Saved voice voice="my_voice.safetensors" the base model

Built-in voices

Voice
Bhavana female
Lakshmi female
Sravani female
Srinivas male
Karthik male
Pranay male

The six voices live in voices/: a small adapter for the model (voices/adapter.safetensors) and each voice's settings (voices/voices.safetensors). They are optional: the base model in model.safetensors never changes, and TTS(".", use_voices=False) (or --no-voices) skips them completely.

Install

pip install -U huggingface_hub
hf download Prahaladha/hima-tts-nano-te --local-dir hima-tts-nano-te
cd hima-tts-nano-te
pip install -r requirements.txt

Use it

Command line, inside the folder:

python -m hima_tts "ఏమండీ, సాయంత్రం free గా ఉన్నారా? బయటికి వెళ్ళి coffee తాగుదాం." --voice Bhavana -o hello.wav     # built-in voice
python -m hima_tts "ఏమండీ, సాయంత్రం free గా ఉన్నారా? బయటికి వెళ్ళి coffee తాగుదాం." --voice my_voice.wav -o me.wav     # copy a voice (needs: pip install speechbrain)
python -m hima_tts "ఏమండీ, సాయంత్రం free గా ఉన్నారా? బయటికి వెళ్ళి coffee తాగుదాం." -o random.wav                     # a new random voice
python -m hima_tts --list-voices

Python, inside the folder:

from hima_tts import TTS

tts = TTS(".")
audio = tts.say("ఏమండీ, సాయంత్రం free గా ఉన్నారా? బయటికి వెళ్ళి coffee తాగుదాం.", voice="Bhavana")
tts.save(audio, "hello.wav")

say returns the audio as a NumPy array at 24 kHz. Pass seed= to get the same take every time.

Keep a voice you like

A random voice is different every time. To keep one, or to copy a voice once and reuse it without the recording:

python -m hima_tts --save-voice my_voice.safetensors --from my_voice.wav     # from a recording
python -m hima_tts --save-voice calm.safetensors --seed 7                    # a random voice; try seeds until you like one
python -m hima_tts "ఏమండీ, సాయంత్రం free గా ఉన్నారా? బయటికి వెళ్ళి coffee తాగుదాం." --voice calm.safetensors -o out.wav

In Python: tts.make_voice("my_voice.wav", path="my_voice.safetensors") or tts.make_voice(None, path="calm.safetensors", seed=7).

Writing the text

  • Write Telugu in Telugu script. English words can stay in English letters, as people type them: Weekend Vizag trip plan చేస్తున్నాం, నువ్వు కూడా వస్తావు కదా?
  • Numbers, dates and amounts are turned into words before reading, so you can write ₹2,500 or 15/08/2026 as usual.
  • Long text is fine. It is split at sentence ends and read one sentence at a time.

Faster versions

The same model, converted for speed, in separate repos (no PyTorch needed):

Repo Runs on Speed (Apple M4 Pro)
this repo CPU or GPU, PyTorch 6x real time on the CPU
hima-tts-nano-te-ONNX any CPU (Windows, Linux, Mac) 11x real time, 15x with int8
hima-tts-nano-te-mlx-fp16 Mac GPU (Apple silicon) 29x real time, 70x with many texts at once
hima-tts-nano-te-mlx-8bit Mac GPU, smaller download 50x with many texts at once

"70x real time" means one second of work makes that many seconds of speech. They all take the same voices, and a voice saved here with --save-voice works there too.

How well it reads

1,202 Telugu sentences, each read back by two speech recognizers. Letters wrong counts an English word written in Telugu script or in Latin letters as the same word.

Letters wrong (lower is better) Sarvam saaras v4 Hima ASR
This model 4.2% 5.2%
ONNX int8 4.3% 5.0%

Files

File What it is
model.safetensors the base model
voices/adapter.safetensors the adapter for the six built-in voices
voices/voices.safetensors, voices/voices.json the six voices' settings and names
tokenizer.model text tokenizer
codec.safetensors turns the model's output into audio
config.yaml model and sampling settings
hima_tts/ the code
Downloads last month
181
Safetensors
Model size
61.9M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Prahaladha/hima-tts-nano-te

Finetunes
2 models
Quantizations
1 model

Space using Prahaladha/hima-tts-nano-te 1