Downloads · 30 days
15
18% of all-time downloads
ysdede/wav2vec2-base-960h-onnx
wav2vec2-base-960h-onnx is a automatic speech recognition model from ysdede. Use it when you need speech turned into text. The card lists the license as apache-2.0.
ONNX export of facebook/wav2vec2-base-960h for asr.js.
Downloads · 30 days
15
18% of all-time downloads
All-time downloads
85
Public
Repo size
665 MB
Likes
0
Public
Click a slice to open those files.
.data944 MB · 90%
From the Hugging Face model README
ONNX export of facebook/wav2vec2-base-960h for asr.js.
[1, samples] float32[1, frames, 32] float32model.onnx.data)import { loadSpeechModel } from '@asrjs/speech-recognition';
const model = await loadSpeechModel('facebook/wav2vec2-base-960h', {
source: {
kind: 'huggingface',
repoId: 'ysdede/wav2vec2-base-960h-onnx',
modelFilename: 'model.onnx',
modelDataFilename: 'model.onnx.data',
tokenizerFilename: 'vocab.json',
},
});
// ASR
const transcript = await model.transcribe(audio);
// Forced alignment (WhisperX-style)
const logits = await model.session.executor.extractLogits(audio);
const aligner = createWav2Vec2AlignerFromLogits(logits);
const alignment = aligner.align({ transcript: 'your transcript' });
model.onnx — ONNX model graph (1.8 MB)model.onnx.data — External weight data (360 MB)config.json — Original HuggingFace model configvocab.json — Character vocabulary with CTC blank token