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
Dhvani-ASR
One speech-recognition model for English and 22 Indian languages. It is AI4Bharat's IndicConformer-600M with English added. Adding English changed no output in the original 22 languages. A Tamil branch is also included.
An independent derivative. It is not made or endorsed by AI4Bharat.
Should you use it?
- Only Indian languages: SraVaani-1.0 and Indic-Transcribe are more accurate. They won 20 of 21 cells in our side-by-side test.
- Only English: Whisper-large-v3 and Parakeet are far more accurate.
- Use this if you want one openly licensed (CC-BY-4.0) model for English and 22 Indian languages where you choose the language, or if you are interested in the method.
Quick start
pip install "nemo_toolkit[asr] @ git+https://github.com/AI4Bharat/NeMo.git@nemo-v2"
hf download praveenchand/Dhvani-ASR --local-dir dhvani-asr && cd dhvani-asr
python transcribe.py --language en speech.wav # or ta, hi, bn, ... (23 codes)
Audio: 16 kHz mono, up to about 30 s. You must name the language.
Results
Word error rate (lower is better), on samples of up to 200 clips per language.
| This model | SraVaani-1.0 | Indic-Transcribe | Whisper-large-v3 | |
|---|---|---|---|---|
| Indian languages, FLEURS (7 languages) | 0.195 | 0.188 | 0.181 | β |
| Indian languages, Kathbath (7 languages) | 0.190 | 0.180 | 0.181 | β |
| English, FLEURS | 0.140 | 0.224 | 0.094 | 0.044 |
| English, Indian accent (Svarah) | 0.203 | 0.400 | 0.167 | 0.059 |
Across more Indian languages, macro WER is 0.222 on IndicVoices (22 languages), 0.189 on FLEURS (13) and 0.345 on spontaneous Vaani speech (18). English on LibriSpeech test-clean is 0.038. SraVaani's Svarah score is high partly because it wrote a third of the clips in an Indic script.
Per-language results, test conditions and caveats are in DETAILS.md. Every
evaluation, with transcripts, is in results/.
How it works
The base model is frozen. Each added language gets its own small branch: adapters inside the encoder plus private copies of the decoder parts that all languages share. A branch is only active for its own language, so training it cannot change any other language. Every training run checks all 1,035 shared tensors bit for bit to confirm this.
Limitations
- No language identification, and code-switched speech is decoded as one language.
- Output is lowercase with no punctuation.
- Weak on spontaneous speech in Kannada, Odia, Urdu, Kashmiri, Santali and Konkani (WER 0.40β0.61).
- About 2.5 GB in fp32. No quantized version yet.
Licence
The weights are CC-BY-4.0 and the code is MIT. The Indian languages are AI4Bharat's IndicConformer-600M, unchanged except Tamil (and Telugu, if you load its optional branch). Please cite their IndicVoices / IndicConformer work if you use this model.
- Downloads last month
- -
Model tree for praveenchand/Dhvani-ASR
Base model
ai4bharat/IndicConformer