Downloads · 30 days
24
3% of all-time downloads
vivasoft/whisper-small-bn
whisper-small-bn is a automatic speech recognition model from vivasoft. Use it when you need speech turned into text. The card lists the license as apache-2.0.
This is a fine-tuned Whisper Small model for Bengali (Bangla) speech recognition.
Downloads · 30 days
24
3% of all-time downloads
All-time downloads
698
Public
Parameters
242M
967 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors967 MB · 100%
From the Hugging Face model README
This is a fine-tuned Whisper Small model for Bengali (Bangla) speech recognition.
import torch
from transformers import pipeline
# choose device
device = "cuda:0" if torch.cuda.is_available() else "cpu"
# create pipeline
asr = pipeline(
"automatic-speech-recognition",
model="vivasoft/whisper-small-bn",
chunk_length_s=30,
device=device
)
asr.model.config.forced_decoder_ids = asr.tokenizer.get_decoder_prompt_ids(
language="bn",
task="transcribe"
)
# load your audio file path (must be compatible, e.g., WAV/MP3)
audio_file = "/content/yt-3.mp3"
# run transcription
result = asr(audio_file)
print("Transcription:", result["text"])
Based on OpenAI's Whisper model: https://github.com/openai/whisper