Automatic Speech Recognition
Transformers
PyTorch
speech-encoder-decoder
speech
xls_r
xls_r_translation
Inference Endpoints

Update import of processor in README.md

#3
by sanchit-gandhi HF staff - opened
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -115,11 +115,11 @@ or step-by-step as follows:
115
 
116
  ```python
117
  import torch
118
- from transformers import Speech2Text2Processor, SpeechEncoderDecoderModel
119
  from datasets import load_dataset
120
 
121
  model = SpeechEncoderDecoderModel.from_pretrained("facebook/wav2vec2-xls-r-300m-21-to-en")
122
- processor = Speech2Text2Processor.from_pretrained("facebook/wav2vec2-xls-r-300m-21-to-en")
123
 
124
  ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
125
 
 
115
 
116
  ```python
117
  import torch
118
+ from transformers import Wav2Vec2Processor, SpeechEncoderDecoderModel
119
  from datasets import load_dataset
120
 
121
  model = SpeechEncoderDecoderModel.from_pretrained("facebook/wav2vec2-xls-r-300m-21-to-en")
122
+ processor = Wav2Vec2Processor("facebook/wav2vec2-xls-r-300m-21-to-en")
123
 
124
  ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
125