Instructions to use praveenchand/Dhvani-ASR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeMo
How to use praveenchand/Dhvani-ASR with NeMo:
import nemo.collections.asr as nemo_asr asr_model = nemo_asr.models.ASRModel.from_pretrained("praveenchand/Dhvani-ASR") transcriptions = asr_model.transcribe(["file.wav"]) - Notebooks
- Google Colab
- Kaggle
Download DETAILS.md from praveenchand/Dhvani-ASR: direct link, hf CLI and curl.
- Browser
- Download file 13.1 kB
-
https://huggingface.co/praveenchand/Dhvani-ASR/resolve/main/DETAILS.md
- Command line
-
hf download hf://praveenchand/Dhvani-ASR/DETAILS.md
-
curl -L -o DETAILS.md https://huggingface.co/praveenchand/Dhvani-ASR/resolve/main/DETAILS.md
Dhvani-ASR: technical details
The full evaluation, method and training record behind the model card.
Using it from Python
from nemo.collections.asr.models import EncDecHybridRNNTCTCBPEModel
from language_branches import load_branch, set_language
model = EncDecHybridRNNTCTCBPEModel.restore_from("Dhvani-ASR.nemo").eval()
for path in ["branches/branch-en.pt", "branches/branch-ta.pt"]:
load_branch(model, path)
model.eval()
set_language(model, "en") # routes through the English branch; a language without one uses the base
model.cur_decoder = "rnnt"
best, _ = model.transcribe(["speech.wav"], batch_size=1, language_id="en") # RNN-T: (best, all)
print(best[0])
Results
All numbers are greedy decoding, batch 1, scored on lowercased, punctuation-free text.
- Samples, not full test sets: each set is a seeded random sample of up to 200 clips per
language, drawn from its test split (Kathbath has none, so its valid split). The exceptions are
IndicVoices valid (2,845 clips over 22 languages, plus 253 LibriSpeech dev clips for
en) and Common Voice South Asian English (1,000 clips). Differences of a fraction of a point, per language or between models, are within sampling noise. - Macro is the unweighted mean over languages.
- WER uses a single reference, so every spelling variant counts as an error. This inflates Indic WER for every model, this one included.
Release model vs base, macro over each test set
| Test set | Languages | Base (Indic only) | This model (Indic) | This model, all languages: WER / CER |
|---|---|---|---|---|
| IndicVoices valid (conversational) | 22 + en | 0.2222 | 0.2219 | 0.2132 / 0.0747 |
| Kathbath valid (read) | 12 | 0.1608 | 0.1601 | 0.1601 / 0.0305 |
| FLEURS test (read, out of domain) | 13 + en | 0.1901 | 0.1891 | 0.1859 / 0.0610 |
| Vaani test (spontaneous) | 18 + en | 0.3560 | 0.3453 | 0.3321 / 0.1127 |
Every Indic difference comes from Tamil; the other 21 languages are byte-for-byte the base.
English
| Test set | WER | CER |
|---|---|---|
| LibriSpeech test-clean | 0.038 | 0.013 |
| LibriSpeech dev | 0.021 | 0.009 |
| Vaani en (Indian, spontaneous) | 0.095 | 0.046 |
| Common Voice 26.0 South Asian English test (1,000 clips, unseen speakers) | 0.131 | 0.045 |
| FLEURS en | 0.143 | 0.079 |
| Svarah (Indian accent) | 0.180 | 0.106 |
These are 200-clip samples (Common Voice: 1,000). The comparison below uses different 100-clip samples, so its numbers differ somewhat (for example Svarah 0.203, Vaani en 0.117).
English-only models are far ahead. On a 100-clip FLEURS sample, NVIDIA's Parakeet TDT 0.6B v2 scored 0.044 against our 0.139.
Per language (WER)
| Lang | IndicVoices | Kathbath | FLEURS | Vaani | Lang | IndicVoices | Kathbath | FLEURS | Vaani | |
|---|---|---|---|---|---|---|---|---|---|---|
| en | 0.021 | β | 0.143 | 0.095 | mni | 0.214 | β | β | 0.292 | |
| as | 0.143 | β | 0.188 | 0.196 | mr | 0.206 | 0.127 | 0.169 | 0.303 | |
| bn | 0.112 | 0.108 | 0.148 | 0.257 | ne | 0.080 | β | 0.232 | 0.338 | |
| brx | 0.187 | β | β | β | or | 0.307 | 0.163 | 0.213 | 0.444 | |
| doi | 0.262 | β | β | β | pa | 0.108 | 0.120 | 0.162 | 0.238 | |
| gu | 0.170 | 0.131 | 0.173 | 0.212 | sa | 0.213 | 0.209 | β | β | |
| hi | 0.100 | 0.091 | 0.127 | 0.180 | sat | 0.335 | β | β | 0.611 | |
| kn | 0.385 | 0.143 | 0.189 | 0.402 | sd | 0.251 | β | β | β | |
| kok | 0.268 | β | β | 0.484 | ta | 0.267 | 0.225 | 0.241 | 0.322 | |
| ks | 0.309 | β | β | 0.590 | te | 0.288 | 0.218 | 0.219 | 0.225 | |
| mai | 0.275 | β | β | 0.391 | ur | 0.093 | 0.112 | 0.154 | 0.400 | |
| ml | 0.310 | 0.273 | 0.244 | 0.331 |
For en, the IndicVoices column is LibriSpeech dev. FLEURS sd is in Arabic script, while this
model writes Sindhi in Devanagari, so it is not scored.
RNN-T or CTC
The checkpoint has both decoders. RNN-T is the default and is better on every set. Macro WER over the 22 Indic languages, base model:
| Test set | CTC | RNN-T |
|---|---|---|
| IndicVoices | 0.2423 | 0.2222 |
| Kathbath | 0.1653 | 0.1607 |
| FLEURS | 0.1924 | 0.1901 |
| Vaani | 0.3672 | 0.3560 |
How it compares (same clips, same scoring)
Published numbers for other models use other splits, normalizers and sometimes spelling-tolerant metrics, so we decoded one shared set ourselves:
- 100 clips per language and test set, scored with this card's normalization;
- per-clip hypotheses and scores in
results/head-to-head.json, so every cell can be re-scored. The comparison script itself is not published.
Each model gets the clip's language where it accepts one. SraVaani-1.0 has no language input and detects the language itself.
Indian languages: macro WER over bn, hi, kn, ml, mr, ta, te:
| Test set | This model | SraVaani-1.0 (430M, MIT) | Indic-Transcribe-core (1.2B) |
|---|---|---|---|
| FLEURS (read) | 0.195 | 0.188 | 0.181 |
| Kathbath (read) | 0.190 | 0.180 | 0.181 |
| Vaani (spontaneous) | 0.298 | 0.267 | 0.336* |
| Best of the 21 language Γ test-set cells | 1 | 10 | 10 |
Both newer models are more accurate than this one on Indian languages. This comparison covers only 7 of the 22; the other 15 were not compared.
* Indic-Transcribe writes standard spelling, while Vaani's references spell colloquial speech as pronounced (Tamil especially: 0.539 WER, with transcripts that read correctly). Single-reference WER counts that as error. SraVaani trains on Vaani, and so does our Tamil branch.
English: WER:
| Test set | This model | SraVaani-1.0 | Indic-Transcribe-core | Whisper-large-v3 (1.55B) |
|---|---|---|---|---|
| FLEURS en | 0.140 | 0.224 | 0.094 | 0.044 |
| Svarah (Indian accent) | 0.203 | 0.400β | 0.167 | 0.059 |
| Vaani en (Indian, spontaneous) | 0.117 | 0.127 | 0.132 | 0.141 |
β SraVaani wrote 34 of the 100 English Svarah clips in an Indic script. On the other 66 its WER is 0.172.
Conditions:
- Indic-Transcribe ran in its default "native" mode (native script, numbers as words), with the language given.
- Whisper was run on English only: on Indian languages it takes about 30 s per clip on our hardware, and its published Indic numbers are far behind.
- Indic-Transcribe's licence (Indic Open Model License v1) is more restrictive than CC-BY-4.0.
This is not the most accurate model. The case for it is the method: a 22-language model gained English and a Tamil branch, with every other language provably unchanged.
How it works
audio 16 kHz ββΊ log-mel 80 ββΊ Conformer encoder (24 layers, d=1024, 8x subsampling) ββ¬ββΊ CTC head (per-language rows)
β² after each layer: + adapter_L(x) [branch L only] β
βΌ
previous tokens ββΊ predictor (embed + 2-layer LSTM, 640) ββΊ joint ββΊ head_L (640 β 257) ββΊ RNN-T tokens
ββ branch L uses its own copy ββ ββ branch L: own enc/pred projections ββ
Adding English without moving Indic.
- The base model has 22 SentencePiece tokenizers of 256 pieces each, plus one output head per language. English gets a 23rd tokenizer, appended after the Indic ids, plus its own head and its own rows of the CTC matrix.
- The CTC blank moves to the last row, so every Indic language still selects the same 257 weights in the same order.
- Saved, restored and re-decoded, all 22 languages give identical text and a CTC log-prob difference of 0.0.
Language branches. A branch for language L owns:
- a zero-initialized bottleneck adapter (1024 β 512 β 1024) after each of the 24 encoder layers, so a new branch starts out as the identity;
- its own copy of the RNN-T predictor and of the joint projections. All languages share the originals, so training them for one language would move every other;
- L's own output head and L's CTC rows. The CTC gradient is masked to L's rows with zero weight decay, so AdamW leaves the other rows exactly where they were.
Checked, not assumed.
- Every shared BatchNorm is pinned to eval.
- Every run ends by comparing all 1,035 shared tensors with the original using
torch.equal. - Branch files load in any combination, and each is active only for its language.
What didn't work, and the decisions it led to.
- Fine-tuning the whole model on Indic + English made Indic worse on held-out read speech (Kathbath +0.65, FLEURS +0.30 macro WER). English also stalled at 0.155 on LibriSpeech. Branches replaced it: English reached 0.035 and the Indic languages were untouched.
- Five Indic branches were trained (ml, ta, te, kn, sat), and all of them improved on conversational IndicVoices. Only Tamil also improved on out-of-domain read speech (Kathbath, FLEURS), so only Tamil ships. The rule was: FLEURS must not get worse, and the held-out macro must fall.
- Indian-accented English was the weakest English. Continuing the English branch on 150 h of Common Voice South Asian English improved Svarah from 0.209 to 0.180 and FLEURS en from 0.165 to 0.143, for 0.3 points on LibriSpeech.
Optional: Telugu branch
branches/optional/branch-te.pt is better on conversational Telugu, but not clearly better on
read speech, so it is not loaded by default. Change in WER points, branch minus base:
| Decoder | IndicVoices | Kathbath | FLEURS | Vaani |
|---|---|---|---|---|
| RNN-T | β1.41 | +0.51 | β0.12 | +0.16 |
| CTC | β1.14 | β0.42 | +0.06 | β1.06 |
Training
The base model is frozen. Each branch was trained on one NVIDIA L40S in bf16 with the base's hybrid loss (RNN-T + 0.3 Γ CTC) and SpecAugment:
- AdamW, lr 1e-3 for adapters and 1e-4 for the copies (3e-4 / 5e-5 for the English continuation), cosine schedule, 1,000 warmup steps;
- an effective batch of 48 utterances of 0.4β20 s.
| Branch | Data | Steps |
|---|---|---|
| English | 1. LibriSpeech 960 h + Vaani en, 18,457 steps (3 epochs). 2. Continued 7,085 steps on LibriSpeech + Vaani en + Common Voice 26.0 South Asian English (150 h, 2,270 speakers), Indian rows 2Γ | 25,542 |
| Tamil | IndicVoices β€ 200 h, Vaani β€ 30 h, Kathbath train 110 h (every Kathbath valid speaker removed) | 4,662 |
| Telugu (optional) | IndicVoices β€ 200 h, Vaani β€ 30 h, Kathbath train 82 h (valid speakers removed) | 4,662 |
Data filters:
- duration 0.4β20 s;
- the reference script must match the language's script;
- speech rate β€ 25 characters/s;
- no unknown tokens;
- every file decoded once before training.
Test sets:
- IndicVoices valid: speaker-disjoint from training. The base checkpoint was selected on this set, which slightly favours the base.
- Kathbath valid: its speakers are excluded from branch training. The AI4Bharat base was trained on Kathbath's training split, so this is in-domain read speech for the base.
- FLEURS test: fully out of domain.
- Vaani test, Svarah test, LibriSpeech test-clean.
- Common Voice South Asian English test: 1,000 clips, 0 speakers shared with training.
- Every eval report is in
results/.
Limitations
- You must name the language. There is no language identification, and code-switched speech decodes through one language's head.
- Output format: text is lowercase with no punctuation. Numbers come out as the training labels wrote them.
- Accuracy varies widely by language. Kannada, Odia, Urdu, Kashmiri, Santali and Konkani are much weaker on spontaneous speech (Vaani WER 0.40β0.61).
- Single-reference scoring: WER on Indic languages counts spelling variants as errors.
- Size: about 2.5 GB in fp32. No quantized or distilled version is published here yet.
Files
| File | What it is |
|---|---|
Dhvani-ASR.nemo |
AI4Bharat's IndicConformer-600M with English added as a 23rd language. On its own, its English head is untrained; load branch-en.pt |
branches/branch-en.pt |
English branch |
branches/branch-ta.pt |
Tamil branch |
branches/optional/branch-te.pt |
Telugu branch, not loaded by default |
language_branches.py |
Loads and routes branches (load_branch, set_language) |
transcribe.py |
Command-line transcription |
results/*.json |
Every evaluation behind the tables above, with hypotheses. head-to-head.json is the comparison with other models |
SHA256SUMS |
Checksums of the weights |
Licence and attribution
The weights are released under CC-BY-4.0. The code is MIT.
This is a derivative of IndicConformer-600M multilingual by AI4Bharat. Its 22 Indic languages are their work and are unchanged here. Training data: LibriSpeech, IndicVoices, Kathbath and Vaani (CC-BY-4.0), and Common Voice 26.0 South Asian English (CC0). Evaluation also used FLEURS and Svarah.
If you use this model, please cite AI4Bharat's IndicVoices / IndicConformer work, and link to this repository.