At a glance
| Canonical model |
UsefulSensors/moonshine-streaming-small
· ONNX export:
Workmind/moonshine-streaming-small-ONNX
(commit bfd8beb)
|
|---|---|
| Task & architecture | automatic-speech-recognition · MoonshineForConditionalGeneration streaming ASR |
| Runtime | @huggingface/transformers@4.3.0 (isolated worker override; streaming Moonshine architecture requires v4) |
| Backend / dtype | WebAssembly (wasm) · q8 quantized ONNX (runs without WebGPU) |
| Download | 169.5 MB decimal (encoder_model_quantized.onnx 74.92 MB + decoder_model_merged_quantized.onnx 90.83 MB + tokenizer & configs) |
| Input & 80-sample rule | 16 kHz mono Float32Array PCM — encoder reshape requires audio.length % 80 === 0 (5 ms frames); worker auto-pads trailing zeros via padToFrameMultiple(pcm, 80) |
| License | MIT |
Transcribe audio locally
Samples: John F. Kennedy inaugural address (20 Jan 1961, public domain) and LibriSpeech
test-clean 61-70968-0000 (Paul-Gabriel Wiener / OpenSLR SLR12, CC BY 4.0) ·
audio credits.
Download or initialize Moonshine Streaming Small (~169.5 MB) above to transcribe.
Transcript
Use-case ladder
Basics · 80-Sample Frame Alignment & Streaming Window Lab
Inspect exact % 80 sample padding, benchmark 1.5s / 3s / 6s chunk windows side-by-side, and read the worker code.
Practical · Meeting Notes & SRT/VTT Subtitle Studio
Transcribe recordings into timestamped cues, edit captions inline, and export standard .srt, .vtt, and .md files.
Wild · Live Sliding-Window Caption Ticker
Watch progressive sliding-window hypotheses refine into punctuated final captions in real time with a live latency histogram.
Multi-model · Silero VAD → Moonshine Streaming Voice Notes
Chain Silero VAD (~2.2 MB) and Moonshine Streaming Small (~169.5 MB) in two Web Workers to skip silence and transcribe each speech burst.