Views
No views yet
speech-core and sherpa-onnx-compatible runtimes.Part of the soniqo.audio speech toolkit. This is the ONNX Runtime bundle used byspeech-corefor server, desktop, and Android-style runtimes; the graphs remain sherpa-onnx compatible. Browse ONNX bundles in the soniqo ONNX collection.
| Source | openai/whisper-small |
| Export format | ONNX for sherpa-onnx |
| Variants | FP32, INT8, FP16 |
| Runtime | speech-core OnnxWhisperStt / ONNX Runtime; sherpa-onnx compatible |
| Total artifact size | 1744.05 MiB |
*.onnx.data files. Large-style bundles also use external FP32 *.weights files. Keep external-data files beside their matching .onnx files.| File | Size | Description |
|---|---|---|
small-decoder.fp16.onnx | 1.0 MB | Whisper decoder graph |
small-decoder.fp16.onnx.data | 265.91 MB | External tensor data for the adjacent ONNX graph |
small-decoder.int8.onnx | 250.05 MB | Whisper decoder graph |
small-decoder.onnx | 533.19 MB | Whisper decoder graph |
small-encoder.fp16.onnx | 0.22 MB | Whisper encoder graph |
small-encoder.fp16.onnx.data | 195.16 MB | External tensor data for the adjacent ONNX graph |
small-encoder.int8.onnx | 107.21 MB | Whisper encoder graph |
small-encoder.onnx | 390.52 MB | Whisper encoder graph |
small-tokens.txt | 0.78 MB | Tokenizer tokens for speech-core and sherpa-onnx-compatible runtimes |
1#include <speech_core/models/onnx_whisper_stt.h>
2
3speech_core::OnnxWhisperStt stt(
4 "small-encoder.int8.onnx",
5 "small-decoder.int8.onnx",
6 "small-tokens.txt");
7
8auto result = stt.transcribe(audio, length, 16000);1import sherpa_onnx
2
3recognizer = sherpa_onnx.OfflineRecognizer.from_whisper(
4 encoder="small-encoder.fp16.onnx",
5 decoder="small-decoder.fp16.onnx",
6 tokens="small-tokens.txt",
7 language="en",
8 task="transcribe",
9 provider="cpu",
10)