Downloads · 30 days
17
2% of all-time downloads
arijitx/whisper-small-bn
whisper-small-bn is a automatic speech recognition model from arijitx. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
Whisper is a pre-trained model for automatic speech recognition (ASR) and speech translation. Trained on 680k hours of labelled data, Whisper models demonstrate a strong ability to generalise to many datasets and doma…
Downloads · 30 days
17
2% of all-time downloads
All-time downloads
1.1K
Public
Parameters
242M
1.9 GB on disk
Likes
2
Public
Click a slice to open those files.
.bin967 MB · 50%
From the Hugging Face model README
Whisper is a pre-trained model for automatic speech recognition (ASR) and speech translation. Trained on 680k hours of labelled data, Whisper models demonstrate a strong ability to generalise to many datasets and domains without the need for fine-tuning.
Whisper was proposed in the paper Robust Speech Recognition via Large-Scale Weak Supervision by Alec Radford et al from OpenAI. The original code repository can be found here.
To transcribe audio samples, the model has to be used alongside a WhisperProcessor.
The WhisperProcessor is used to:
The model is informed of which task to perform (transcription or translation) by passing the appropriate "context tokens". These context tokens are a sequence of tokens that are given to the decoder at the start of the decoding process, and take the following order:
<|startoftranscript|> token<|en|> for English)<|transcribe|> for speech recognition or <|translate|> for speech translation<|notimestamps|> token is added if the model should not include timestamp predictionThus, a typical sequence of context tokens might look as follows:
<|startoftranscript|> <|en|> <|transcribe|> <|notimestamps|>
Which tells the model to decode in English, under the task of speech recognition, and not to predict timestamps.
These tokens can either be forced or un-forced. If they are forced, the model is made to predict each token at each position. This allows one to control the output language and task for the Whisper model. If they are un-forced, the Whisper model will automatically predict the output langauge and task itself.
The context tokens can be set accordingly:
model.config.forced_decoder_ids = WhisperProcessor.get_decoder_prompt_ids(language="english", task="transcribe")
Which forces the model to predict in English under the task of speech recognition.
Common Voice 11.0 Bengali Train OpenSLR 53 Bengali Train
@misc{radford2022whisper,
doi = {10.48550/ARXIV.2212.04356},
url = {https://arxiv.org/abs/2212.04356},
author = {Radford, Alec and Kim, Jong Wook and Xu, Tao and Brockman, Greg and McLeavey, Christine and Sutskever, Ilya},
title = {Robust Speech Recognition via Large-Scale Weak Supervision},
publisher = {arXiv},
year = {2022},
copyright = {arXiv.org perpetual, non-exclusive license}
}