Automatic Speech Recognition
ZeroModels
Keras
PyTorch
JAX
TensorFlow
speech2text
s2t
librispeech
audio
Instructions to use zeromodels/s2t-medium-librispeech-asr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/s2t-medium-librispeech-asr with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/s2t-medium-librispeech-asr") - Keras
How to use zeromodels/s2t-medium-librispeech-asr with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://zeromodels/s2t-medium-librispeech-asr") - Notebooks
- Google Colab
- Kaggle
Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge)
3929636 verified Download zm_preprocessor.json from zeromodels/s2t-medium-librispeech-asr: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/zeromodels/s2t-medium-librispeech-asr/resolve/main/zm_preprocessor.json
- Command line
-
hf download hf://zeromodels/s2t-medium-librispeech-asr/zm_preprocessor.json
-
curl -L -o zm_preprocessor.json https://huggingface.co/zeromodels/s2t-medium-librispeech-asr/resolve/main/zm_preprocessor.json
400 Bytes
| { | |
| "library_name": "zeromodels", | |
| "zeromodels_version": "1.1.3", | |
| "preprocessor_module": "zeromodels.models.speech2text", | |
| "preprocessor_class": "Speech2TextFeatureExtractor", | |
| "variant": "s2t-medium-librispeech-asr", | |
| "sampling_rate": 16000, | |
| "num_mel_bins": 80, | |
| "frame_length_ms": 25.0, | |
| "frame_shift_ms": 10.0, | |
| "preemphasis": 0.97, | |
| "normalize_means": true, | |
| "normalize_vars": true | |
| } |