At a glance
| Upstream model | UsefulSensors/moonshine-tiny (MIT · 27.1M params · 6 encoder / 6 decoder layers, hidden 288, 8 heads, partial RoPE 0.9, 32,768 vocab) |
|---|---|
| ONNX artifact |
onnx-community/moonshine-tiny-ONNX
(q8 · 28.18 MB = 28,180,947 B: encoder_model_quantized.onnx 7.94 MB + decoder_model_merged_quantized.onnx 20.24 MB)
|
| Task & runtime |
automatic-speech-recognition · shared @huggingface/transformers@3.7.5 via lib/webai.js · CPU wasm
|
| Input & decoder | 16 kHz mono Float32Array PCM (direct 8/16/24/32-bit PCM & 32-bit float WAV + browser AudioContext fallback) · variable-length audio |
1 · Transcribe audio or live microphone
Bundled audio: JFK inaugural excerpt (20 Jan 1961, public domain U.S. government work) and LibriSpeech
test-clean 61-70968-0000 (Paul-Gabriel Wiener; Panayotov et al., OpenSLR SLR12,
CC BY 4.0) ·
audio credits.
Initialise Moonshine Tiny (28.18 MB q8 WASM) above to transcribe locally.
Live transcript
2 · See inside: Variable-length RoPE vs 30s padding
Whisper architectures zero-pad every clip to a 30.0 s mel window (480,000 samples). Moonshine Tiny feeds only the actual clip samples into its rotary-position encoder, eliminating wasted padding compute on short commands.
3 · Use-case ladder
Basics · Variable-Length RoPE Scaling Lab
Slice a clip into 2s, 4s, 6s, 8s, and 11s windows, tune beam/token caps, and plot real O(T) latency.
Practical · Voice Note Batch Transcriber
Queue multiple audio files sequentially with mid-batch cancel, inline transcript editing, and formula-safe CSV/SRT/VTT/MD export.
Wild · Noise, Bandpass & Speed Stress Lab
Inject 20/10/5 dB Gaussian noise, 300–3400 Hz bandpass, or 0.85×/1.25× speed shifts and inspect live WER word diffs.
Multi-model · 42.9 MB Voice → PII Redactor
Chain Moonshine Tiny (28.18 MB) with Rampart PII (14.69 MB) in two isolated workers for private meeting redaction.