Inference
from transformers import WhisperForConditionalGeneration, WhisperProcessor model_id = "psdn-ai/bangla-asr"processor = WhisperProcessor.from_pretrained(model_id)model = WhisperForConditionalGeneration.from_pretrained(model_id)
A typical decode for a 16 kHz mono waveform:
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")predicted_ids = model.generate(inputs.input_features, language="bn", task="transcribe")text = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
The saved generation config already sets language="bn" and task="transcribe".
Notes
Benchmark numbers, dataset licenses, training hours, and other paper details will be added to this model card later. Please refer to the Bangla-10K paper for the full evaluation protocol.
Optimizer, scheduler, and RNG trainer state are not included in this release.