Downloads · 30 days
5
7% of all-time downloads
rishii100/whisper-small-hindi
whisper-small-hindi is a automatic speech recognition model from rishii100. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of openai/whisper-small for Hindi Speech-to-Text (ASR) applications. It was fine-tuned on the hiin configuration of the Google FLEURS dataset.
Downloads · 30 days
5
7% of all-time downloads
All-time downloads
72
Public
Parameters
242M
967 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors967 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of openai/whisper-small for Hindi Speech-to-Text (ASR) applications. It was fine-tuned on the hi_in configuration of the Google FLEURS dataset.
The fine-tuning process significantly improved the transcription accuracy, reducing the Word Error Rate (WER) from 68.61% (baseline) down to 26.87%, and the Character Error Rate (CER) from 34.43% down to 10.41%.
openai/whisper-small (244M parameters)hi)The model was evaluated on the strictly held-out test split (418 samples) of the FLEURS Hindi dataset.
| Metric | Whisper Small (Base) | Whisper Small (Fine-Tuned) | Relative Improvement |
|---|---|---|---|
| Word Error Rate (WER) | 68.61% | 26.87% | ↓ 60.8% |
| Character Error Rate (CER) | 34.43% | 10.41% | ↓ 69.8% |
These results demonstrate a highly successful adaptation to Hindi phonetics and Devanagari script, with a massive reduction in transcription errors.
You can use this model directly through the Hugging Face transformers pipeline for speech recognition:
import torch
from transformers import WhisperForConditionalGeneration, WhisperProcessor
import librosa
# Load the fine-tuned model and processor
model_id = "rishii100/whisper-small-hindi"
processor = WhisperProcessor.from_pretrained(model_id)
model = WhisperForConditionalGeneration.from_pretrained(model_id)
# Load your Hindi audio file (resample to 16kHz)
audio_path = "path/to/your/hindi_audio.wav"
audio, sr = librosa.load(audio_path, sr=16000)
# Process and generate transcription
input_features = processor(audio, sampling_rate=16000, return_tensors="pt").input_features
with torch.no_grad():
predicted_ids = model.generate(input_features, max_length=225)
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
print("Transcription:", transcription)
The model was trained using the following hyperparameters:
1e-051682000250This model is ideal for transcribing general Hindi speech. However, like all speech models, it may experience performance degradation in the following scenarios: