The problem
Whisper small is a general-purpose model. It handles close to a hundred languages and is small enough to run on a laptop. But it has heard far less Hindi than English, and it shows: on our Hindi test clips it gets most of the words wrong.
We wanted to know how far a small, free experiment could close that gap.
What we did
- Started from
openai/whisper-small.
- Showed it Hindi speech with the right answers. Two public datasets:
- FLEURS Hindi, training split: 6.7 hours. The text has punctuation and digits.
- Kathbath Hindi: 68 hours of people reading sentences aloud (45,876 clips).
- Let every weight in the model change. This is a full fine-tune, not LoRA or an adapter.
- Trained on one free T4 GPU for 6,000 steps, about four hours.
Results
Scores on 418 Hindi test clips (80 minutes of speech). Lower is better.
Table with columns: Stock Whisper small, This model | Stock Whisper small | This model |
|---|
| Words wrong per 100, strict | 88.27 | 22.68 |
| Words wrong per 100, ignoring punctuation | 83.33 | 19.91 |
| Characters wrong per 100, strict | 50.09 | 8.79 |
| Characters wrong per 100, ignoring punctuation | 49.44 | 8.16 |
How to read this:
- Words wrong per 100 is the word error rate. We line up the model's text against a human transcript and count wrong words, missing words and extra words.
- Strict means the text must match exactly. A missing comma counts as a mistake, and so does writing "दो" where the transcript says "2".
- Ignoring punctuation removes punctuation from both sides first, so it shows whether the words themselves are right.
- Both models were scored by the same code, on the same clips, with the language set to Hindi.
Test data: the Hindi test split of adalat-ai/fleurs-ro (CC-BY-4.0). The model never trained on these clips.
How we got here
This model is the fourth step of an experiment. Each step changed one thing.
Table with columns: Step, What changed, Words wrong per 100, strict| Step | What changed | Words wrong per 100, strict |
|---|
| Start | Stock Whisper small | 88.27 |
| 1 | 6.7 hours of FLEURS Hindi, gentle learning rate (1e-5) | 29.02 |
| 2 | Same data, a stronger recipe (learning rate 2e-4, warmup, cosine decay, weight decay) | 30.13 |
| 3 | Added about 37 hours of Kathbath | 24.22 |
| 4 | Added about 75 hours of Kathbath (this model) | 22.68 |
We ran step 4 twice with the same recipe. The first time it scored 23.37; the model here is from the second.
What we learned
A little of the right data goes a long way. Under 7 hours of Hindi removed most of the errors. Stock Whisper barely knows Hindi; it mostly needed to be shown.
Settings mattered less than data. Step 2 used a recipe built for much larger datasets on the same 6.7 hours, and scored a point worse.
More of the same data runs out of steam. The first 30 extra hours bought about 5 points. The next 38 bought about 1. In step 3 the model had also started to memorise its training clips, which is why step 4 added new clips instead of training for longer on the old ones.
Part of the score is writing style, not hearing. Hindi has more than one accepted spelling for many words (हालाँकि and हालांकि), more than one way to space them (आमतौर and आम तौर), and numbers can be digits or words. When we forgave those differences on the first step-4 run, its score improved by about 3 points. The rest is real mishearing.
What it still gets wrong
- It has only heard people reading aloud. Phone calls, conversations, noisy rooms and several people talking are untested, and likely to be worse.
- Numbers are a weak spot. It mishears them (70 as 17), and it sometimes spells out a number that should be digits.
- Names and rare words are often off by a character or two.
- Clips longer than 30 seconds must be cut into pieces first. That is a Whisper limit, not something this model changes.
- It is still a small model. Expect roughly one word in five to need correcting. It is a starting point, not a finished product.
How to use it
import soundfile as sfimport torchfrom transformers import WhisperForConditionalGeneration, WhisperProcessor repo = "soniparneet/whisper-small-hindi-finetune"processor = WhisperProcessor.from_pretrained(repo)model = WhisperForConditionalGeneration.from_pretrained(repo) audio, sample_rate = sf.read("clip.wav", dtype="float32") # mono, 16 kHz, up to 30 secondsfeatures = processor.feature_extractor(audio, sampling_rate=sample_rate, return_tensors="pt").input_featureswith torch.no_grad(): ids = model.generate(features, language="hi", task="transcribe")print(processor.tokenizer.batch_decode(ids, skip_special_tokens=True)[0])
Training details
Table with columns: Setting, Value| Setting | Value |
|---|
| Base model | openai/whisper-small (244 million weights, all trained) |
| Training data | FLEURS Hindi train, each clip used 2 times per pass (2,115 clips), plus Kathbath Hindi (45,876 clips, 68 hours) |
| Steps | 6,000, each on 16 clips |
| Learning rate | 0.0002, warmed up over the first 600 steps, then cosine decay |
| Weight decay | 0.1 |
| Precision | Mixed (fp16) |
| Hardware | One T4 GPU |
| Dropped | Clips over 30 seconds and transcripts over 440 tokens |
Scores on 100 held-out FLEURS validation clips during training:
Table with columns: Step, Words wrong per 100, strict, Ignoring punctuation| Step | Words wrong per 100, strict | Ignoring punctuation |
|---|
| 500 | 49.34 | 44.66 |
| 1,000 | 45.80 | 42.27 |
| 1,500 | 42.74 | 38.54 |
| 2,000 | 41.86 | 37.46 |
| 2,500 | 36.13 | 32.07 |
| 3,000 | 32.72 | 28.78 |
| 3,500 | 31.89 | 27.56 |
| 4,000 | 30.62 | 26.69 |
| 4,500 | 25.46 | 21.27 |
| 5,000 | 24.67 | 20.75 |
| 5,500 | 24.06 | 20.36 |
| 6,000 | 24.02 | 20.14 |
Code
The training notebook, the scoring script and the transcripts from every step are on GitHub: https://github.com/soniparneet/whisper-small-hindi-finetune
Licence and credits
- This model: Apache-2.0, the same as the base model.
- Base model: Whisper small by OpenAI.
- Training data: FLEURS by Google (CC-BY-4.0) and Kathbath by AI4Bharat (CC-BY-4.0).