Downloads · 30 days
45
36% of all-time downloads
zeromodels/moonshine_base
moonshine_base is a automatic speech recognition model from zeromodels. Use it when you need speech turned into text. It is set up for zeromodels. The card lists the license as mit.
[](https://github.com/IMvision12/ZeroModels) [](https://imvision12.github.io/ZeroModels/moonshine/) [](https://huggingface.co/collections/zeromodels/moonshine-6a8eaf317c682a7009c68b2c)
Downloads · 30 days
45
36% of all-time downloads
All-time downloads
125
Public
Repo size
247 MB
Likes
0
Public
Click a slice to open those files.
.h5247 MB · 99%
From the Hugging Face model README
Paper: Moonshine: Speech Recognition for Live Transcription and Voice Commands (arXiv:2410.15608) · HF Papers
Moonshine is an English ASR encoder-decoder built for short / live audio: the encoder sees the raw waveform length you pass in (no Whisper-style 30 s pad), so short commands stay cheap. Output is cased and punctuated.
For more details on the model, please go to the upstream model card.
Pure-Keras 3 conversion of UsefulSensors/moonshine-base for zeromodels. One implementation runs unmodified on TensorFlow / Torch / JAX.
This is an ASR checkpoint (MoonshineConditionalGenerate).
import os
os.environ["KERAS_BACKEND"] = "torch" # or "jax" / "tensorflow"
import soundfile as sf
from zeromodels.models.moonshine import (
MoonshineProcessor,
MoonshineConditionalGenerate,
)
model = MoonshineConditionalGenerate.from_weights("zeromodels/moonshine_base")
processor = MoonshineProcessor.from_weights("zeromodels/moonshine_base")
audio, sr = sf.read("your_audio.wav", dtype="float32") # 16 kHz mono
# Cost scales with clip length: no fixed 30 s pad like Whisper.
text = model.generate(audio, processor)
print(repr(text[0]))
Load any Moonshine variant the same way with from_weights("zeromodels/<variant>"):
| Variant | Hub |
|---|---|
moonshine_tiny | zeromodels/moonshine_tiny |
moonshine_base | zeromodels/moonshine_base |
KERAS_BACKEND before importing Keras / zeromodels.MoonshineProcessor.from_weights(...) so feature extraction matches.hf: prefix, e.g. MoonshineConditionalGenerate.from_weights("hf:UsefulSensors/moonshine-base").A huge thank you to the Useful Sensors Moonshine authors for creating and releasing these models.
License: MIT.