Downloads · 30 days
11
26% of all-time downloads
lucascho/moonshine-tiny-accent-ONNX
moonshine-tiny-accent-ONNX is a automatic speech recognition model from lucascho. Use it when you need speech turned into text. It is set up for transformers.js. The card lists the license as cc-by-nc-4.0.
Moonshine-tiny (27M params) fine-tuned for non-native-accented English — speakers whose first language is Korean, Hindi, Mandarin, Vietnamese, Arabic, or Spanish — exported to ONNX for transformers.js so it runs entir…
Downloads · 30 days
11
26% of all-time downloads
All-time downloads
43
Public
Repo size
892 MB
Likes
1
Public
Click a slice to open those files.
.onnx960 MB · 100%
From the Hugging Face model README
Moonshine-tiny (27M params) fine-tuned for non-native-accented English — speakers whose first language is Korean, Hindi, Mandarin, Vietnamese, Arabic, or Spanish — exported to ONNX for transformers.js so it runs entirely in the browser (WebGPU / WASM). Built for the live-transcription demo on lucascho.fyi: audio never leaves the visitor's device.
| eval set | base moonshine-tiny | this model | rel. change |
|---|---|---|---|
| L2-ARCTIC, unseen accented speakers | 25.9% | 17.1% | −34% |
| — Korean L1 | 12.7% | 6.1% | −52% |
| — Hindi L1 | 12.7% | 8.0% | −37% |
| — Arabic L1 | 23.1% | 14.6% | −37% |
| — Mandarin L1 | 26.3% | 18.9% | −28% |
| — Vietnamese L1 | 44.4% | 29.1% | −34% |
| — Spanish L1 | 37.6% | 27.1% | −28% |
| VCTK, unseen native speakers | 6.1% | 4.3% | −30% |
| LibriSpeech test-clean | 4.8% | 7.0% | +46% (regression) |
Honest caveat: the LibriSpeech regression reflects domain shift toward short read sentences (the training data) and away from long-form audiobook audio. For the intended use — short live-caption segments — the accented and native short-form gains dominate.
merge_and_unload) — so this repo is a plain Moonshine checkpoint.shift_tokens_right in the model + ForCausalLMLoss
shifting again); fixed by passing decoder_input_ids explicitly with aligned labels.import { pipeline } from "@huggingface/transformers";
const transcriber = await pipeline(
"automatic-speech-recognition",
"lucascho/moonshine-tiny-accent-ONNX",
{ device: "webgpu", dtype: "q4" } // fallback: { device: "wasm", dtype: "q8" }
);
const { text } = await transcriber(float32PcmAt16kHz);
CC-BY-NC-4.0 (inherited from L2-ARCTIC training data — non-commercial). Base model: Moonshine (© Useful Sensors, MIT). Corpora: L2-ARCTIC (Texas A&M PSI lab), CSTR VCTK (University of Edinburgh, CC-BY-4.0).