Automatic Speech Recognition
speechbrain
PyTorch
English
wav2vec2
CTC
Attention
Transformer
hf-asr-leaderboard
Eval Results (legacy)
Eval Results
Instructions to use speechbrain/asr-wav2vec2-librispeech with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- speechbrain
How to use speechbrain/asr-wav2vec2-librispeech with speechbrain:
from speechbrain.pretrained import EncoderASR model = EncoderASR.from_hparams( "speechbrain/asr-wav2vec2-librispeech" ) model.transcribe_file("file.wav") - Notebooks
- Google Colab
- Kaggle
AttributeError: 'ModuleDict' object has no attribute 'decoder'
#1
by chrisspen - opened
Attempting to run the example returns the error:
File ".venvs/speechbrain/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1695, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
AttributeError: 'ModuleDict' object has no attribute 'decoder'
What is the correct way to load and run the model?