Automatic Speech Recognition
Transformers
PyTorch
TensorFlow
Safetensors
English
speech_to_text
audio
Instructions to use facebook/s2t-medium-librispeech-asr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/s2t-medium-librispeech-asr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="facebook/s2t-medium-librispeech-asr")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("facebook/s2t-medium-librispeech-asr") model = AutoModelForSpeechSeq2Seq.from_pretrained("facebook/s2t-medium-librispeech-asr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from facebook/s2t-medium-librispeech-asr: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/facebook/s2t-medium-librispeech-asr/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://facebook/s2t-medium-librispeech-asr/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/facebook/s2t-medium-librispeech-asr/resolve/main/preprocessor_config.json
242 Bytes
| { | |
| "do_ceptral_normalize": true, | |
| "feature_size": 80, | |
| "normalize_means": true, | |
| "normalize_vars": true, | |
| "num_mel_bins": 80, | |
| "padding_side": "right", | |
| "padding_value": 0.0, | |
| "return_attention_mask": true, | |
| "sampling_rate": 16000 | |
| } | |