use case · basics · 80-sample alignment & chunk benchmark · WASM q8 · ~169.5 MB

80-Sample Frame Alignment & Streaming Window Lab

Moonshine Streaming Small's ONNX encoder reshapes 16 kHz audio into 5 ms frames of 80 samples. Any clip whose length is not divisible by 80 triggers an ONNX Runtime ReshapeHelper failure unless zero-padded with padToFrameMultiple(pcm, 80). Inspect exact sample padding below and benchmark 1.5s, 3s, and 6s streaming windows live.

1 · Model

2 · Inspect 80-sample alignment & benchmark streaming windows

Uploaded clips and optional microphone recordings run locally in your browser — nothing is uploaded.

JFK inaugural / speech clip: John F. Kennedy (20 January 1961), public domain U.S. government work · audio provenance record.

Raw samples—
Raw % 80—
Trailing zero pad—
Padded samples—
Encoder check—

Preparing Moonshine Streaming Small (~169.5 MB)…

3 · Per-Chunk Latency & RTF Table

Window Chunk # Range Raw → Padded (% 80) Latency RTF Chunk Transcript
Run the 1.5s / 3s / 6s benchmark above to populate per-chunk timings.

4 · Inspect the 80-sample padding & worker code

</> Show transcribe() worker code (worker.js)
</> Show frame alignment helper (streaming-core.mjs)