File size: 1,806 Bytes
aff11c2
402de0b
aff11c2
 
 
 
 
 
 
 
 
 
402de0b
aff11c2
402de0b
aff11c2
402de0b
 
 
aff11c2
402de0b
 
aff11c2
402de0b
 
 
 
 
aff11c2
402de0b
aff11c2
402de0b
 
aff11c2
402de0b
 
 
aff11c2
 
402de0b
aff11c2
 
402de0b
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
license: apache-2.0
datasets:
- ARTPARK-IISc/Vaani
language:
- hi
base_model:
- openai/whisper-tiny
pipeline_tag: automatic-speech-recognition
---


# Whisper-small-vaani-hindi

This is a fine-tuned version of [OpenAI's Whisper-tiny](https://huggingface.co/openai/whisper-tiny), trained on approximately 718 hours of transcribed Hindi speech from multiple datasets.

# Usage
This can be used with the pipeline function from the Transformers module.
```python

import torch
from transformers import pipeline

audio = "path to the audio file to be transcribed"
device = "cuda:0" if torch.cuda.is_available() else "cpu"
modelTags="ARTPARK-IISc/whisper-tiny-vaani-hindi"
transcribe = pipeline(task="automatic-speech-recognition", model=modelTags, chunk_length_s=30, device=device)
transcribe.model.config.forced_decoder_ids = transcribe.tokenizer.get_decoder_prompt_ids(language="hi", task="transcribe")

print('Transcription: ', transcribe(audio)["text"])

```
# Training and Evaluation

The models has finetuned using folllowing dataset [Vaani](https://huggingface.co/datasets/ARTPARK-IISc/Vaani) ,[Gramvaani](https://sites.google.com/view/gramvaaniasrchallenge/dataset)
[IndicVoices](https://huggingface.co/datasets/ai4bharat/IndicVoices), [Fleurs](https://huggingface.co/datasets/google/fleurs),[IndicTTS](https://huggingface.co/datasets/SPRINGLab/IndicTTS-Hindi)
and [Commonvoice](https://huggingface.co/datasets/mozilla-foundation/common_voice_17_0)


The performance of the model was evaluated using multiple datasets, and the evaluation results are provided below.


| Dataset | WER | 
| :---:   | :---: | 
| Gramvaani | 42.34   | 
| Fleurs | 26.39   | 
| IndicTTS | 11.77   | 
| MUCS | 39.00   | 
|Commonvoice | 37.95   | 
| Kathbath | 23.91  | 
| Kathbath Noisy| 29.92   | 
| Vaani  | 33.33   |