Downloads · 30 days
0
anyshu/sherpa-onnx-wasm-main-asr.data
sherpa-onnx-wasm-main-asr.data is a machine learning model from anyshu. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Browser-based real-time speech recognition powered by sherpa-onnx WebAssembly.
Downloads · 30 days
0
Access
Public
Updated Dec 11, 2025
Repo size
2.9 GB
Likes
1
Public
Click a slice to open those files.
.data1.2 GB · 66%
From the Hugging Face model README
Browser-based real-time speech recognition powered by sherpa-onnx WebAssembly.
npm install speech-asr@latest
Choose the package that fits your needs:
File: sherpa-onnx-wasm-asr-1pass.zip
File: sherpa-onnx-wasm-asr-1&2pass.zip
Extract the zip file to your project directory, for example: ./models/
import { SpeechASR } from 'speech-asr';
const asr = new SpeechASR({
vadMode: 'silero',
twoPass: { enabled: true }, // Set false for 1-pass only
modelPaths: {
m_path: './models/sherpa-onnx-wasm-asr-20251211-120752' // Your extracted directory
},
onReady: () => console.log('ASR Ready'),
onResult: (text) => console.log('Result:', text),
onTwoPassResult: ({ offlineText }) => console.log('Enhanced:', offlineText),
});
await asr.init();
await asr.start();
sherpa-onnx-wasm-asr-1pass/
├── sherpa-onnx-wasm-main-asr.data # Model weights
├── sherpa-onnx-wasm-main-asr.js # WASM wrapper
├── sherpa-onnx-wasm-main-asr.wasm # WASM runtime
├── sherpa-onnx-asr.js # ASR helper
└── sherpa-onnx-vad.js # VAD helper
sherpa-onnx-wasm-asr-1&2pass/
├── ... (all files from 1-pass)
└── offline-worker.js # Two-pass worker
examples/ directory in the repository.data file and .js files must be from the same version/packageFor issues and questions, please visit the GitHub repository.