Verba-1
fast browser speech recognition model for WASM CPU
2 min read
The new Verba-1 model by Yours Research is built on the Moonshine v2 Streaming architecture specifically for running directly in the browser via WASM CPU. The entire pipeline is optimized and packaged into two compact QInt8 ONNX files with a total size of just 157 MB, which is 54% smaller than standard exports. The model delivers partial speech transcription with a latency of about 22 milliseconds and leaves WebGPU completely free for running local language models. This solution is useful for web developers who need fast and private client-side speech-to-text without sending data to a server.
Key features
- Two-file QInt8 ONNX: the total archive size is 157.12 MB without duplicating decoder weights or redundant control structures.
- Noise-resistant LoRA: fine-tuning (LoRA (a small add-on over the base model)) on datasets featuring background noise, accents, and technical vocabulary.
- High speed: average partial transcription latency is 21.9 ms on a 4-thread CPU, well within the 50 ms target.
- Recognition accuracy: improved Word Error Rate (WER) on benchmarks compared to base Moonshine versions.
What you can do
- Web app integration: integrate a ready-to-use speech recognition system into a browser frontend using the TypeScript SDK and onnxruntime-web.
- Voice assistant creation: launch a local offline voice input service that does not transmit audio data to external clouds.
- Pairing with local LLMs: use fast model prefill for collaborative work with local text models in the browser.
Example
Session initialization and greedy decoding execution using onnxruntime-web and a worker from the repository:
import * as ort from 'onnxruntime-web';
import {
runVerbaMergedGreedyDecode,
type VerbaManifest,
} from './browser_sdk/verbaStreamingWorker';
const BASE = '[https://huggingface.co/yours-research/Verba-1/resolve/main/onnx_bundle/](https://huggingface.co/yours-research/Verba-1/resolve/main/onnx_bundle/)';
const manifest = (await (await fetch(`${BASE}manifest.json`)).json()) as VerbaManifest;
const sessOpts: ort.InferenceSession.SessionOptions = { executionProviders: ['wasm'] };
const encoder = await ort.InferenceSession.create(`${BASE}${manifest.assets.encoder.path}`, sessOpts);
const decoderMerged = await ort.InferenceSession.create(`${BASE}${manifest.assets.decoder_merged!.path}`, sessOpts);
const tokenIds = await runVerbaMergedGreedyDecode(encoder, decoderMerged, audio16k, {
bosId: manifest.decoding.bos_token_id,
eosId: manifest.decoding.eos_token_id,
numKvHeads: manifest.decoding.num_kv_heads,
headDim: manifest.decoding.head_dim,
suppressTokenIds: manifest.decoding.suppress_token_ids,
});Read more
DetailsBase model: moonshine-ai/moonshine-streaming-small
License: MIT
ONNX weights size: 157.12 MiB
Total WER on YVI-STT-v1 benchmark: 4.35%
Requirements: 4-thread CPU, WASM support










Comments