Downloads · 30 days
22
10% of all-time downloads
borhanitrash/Regional_Bengali_Dialects_ASR_Whiper-Medium
Regional_Bengali_Dialects_ASR_Whiper-Medium is a automatic speech recognition model from borhanitrash. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as mit.
This repository contains the fine-tuned Whisper-Medium model developed by Team AutoBot for the Shobdotori Kaggle Competition. The model is specialized for transcribing audio from 20 different regional Bengali dialects…
Downloads · 30 days
22
10% of all-time downloads
All-time downloads
229
Public
Parameters
764M
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
From the Hugging Face model README
This repository contains the fine-tuned Whisper-Medium model developed by Team AutoBot for the Shobdotori Kaggle Competition. The model is specialized for transcribing audio from 20 different regional Bengali dialects into standard Bengali text.
Our core strategy was to perform transfer learning on an exceptionally powerful base model, adapting its robust general Bengali ASR capabilities to the specific nuances of the competition's dialectal dataset.
This model is a fine-tuned version of the 1st place winning model from the Bengali.AI Speech Recognition competition: bengaliAI/tugstugi_bengaliai-regional-asr_whisper-medium. We gratefully acknowledge the extensive work of the original author, which provided a state-of-the-art foundation for our work.
The base model was developed through a sophisticated and rigorous training pipeline, which included:
whisper-medium.Our contribution was to take this champion model and further specialize it for the Shobdotori competition. The fine-tuning process by Team AutoBot involved:
The result is a model that retains the powerful general transcription capabilities of its predecessor while demonstrating enhanced accuracy on specific regional Bengali speech.
You can easily use this model with the transformers library pipeline. Make sure to install the necessary dependencies:
pip install --upgrade transformers accelerate datasets[audio]
### Python Usage
```python
import torch
from transformers import pipeline
from datasets import load_dataset
# Use a GPU if available
device = "cuda:0" if torch.cuda.is_available() else "cpu"
# Load the ASR pipeline from the Hub
asr_pipeline = pipeline(
"automatic-speech-recognition",
model="YourHuggingFaceUsername/your-model-name-here", # e.g., AutoBot/whisper-medium-shobdotori
device=device
)
# Replace this with the path to your audio file
audio_file_path = "path/to/your/audio.wav"
# Transcribe the audio
# The task and language are already set in the model's config, but can be specified
result = asr_pipeline(
audio_file_path,
generate_kwargs={"language": "bn", "task": "transcribe"}
)
print(result["text"])
bengaliAI/tugstugi_bengaliai-regional-asr_whisper-mediumSeq2SeqTrainer.The model achieved the following score on the competition's blind private test set:
Please cite the original Whisper paper:
@inproceedings{radford2023robust,
title={Robust Speech Recognition via Large-Scale Weak Supervision},
author={Radford, Alec and Kim, Jong Wook and Xu, Tao and Brockman, Greg and McLeavey, Christine and Sutskever, Ilya},
booktitle={Proceedings of the 40th International Conference on Machine Learning},
pages={28492--28518},
year={2023},
editor={Krause, Andreas and Brunskill, Emma and Cho, Kyunghyun and Engelhardt, Barbara and Sabato, Sivan and Scarlett, Jonathan},
volume={202},
series={Proceedings of Machine Learning Research},
month={23--29 Jul},
publisher={PMLR},
}
Our work would not have been possible without the foundational model and insights provided by the winner of the Bengali.AI Speech Recognition competition. We extend our thanks for making the model and training details publicly available.