mirror of
https://github.com/k2-fsa/sherpa-onnx.git
synced 2026-11-10 21:11:03 +08:00
Add C++ and Python API for Omnilingual ASR models. (#2772)
This PR adds C++ and Python API support for Omnilingual ASR models with CTC decoding, enabling speech recognition across 1600+ languages using models from Facebook Research's omnilingual-asr project. Key changes: - Implements OfflineOmnilingualAsrCtcModel class with feature normalization and model inference - Adds Python bindings through from_omnilingual_asr_ctc() method on OfflineRecognizer - Integrates omnilingual models into existing CTC recognition pipeline with special handling for input shapes and frame shifts
This commit is contained in:
1 parent
db77fe6999
commit
36ef8d1fbc
27 files changed
+622
-16
No files matched your search
@@ -8,6 +8,16 @@ log() {
|
||||
echo -e "$(date '+%Y-%m-%d %H:%M:%S') (${fname}:${BASH_LINENO[0]}:${FUNCNAME[1]}) $*"
|
||||
}
|
||||
|
||||
log "test omnilingual ASR"
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-omnilingual-asr-1600-languages-300M-ctc-int8-2025-11-12.tar.bz2
|
||||
tar xvf sherpa-onnx-omnilingual-asr-1600-languages-300M-ctc-int8-2025-11-12.tar.bz2
|
||||
rm sherpa-onnx-omnilingual-asr-1600-languages-300M-ctc-int8-2025-11-12.tar.bz2
|
||||
ls -lh sherpa-onnx-omnilingual-asr-1600-languages-300M-ctc-int8-2025-11-12
|
||||
|
||||
python3 ./python-api-examples/offline-omnilingual-asr-ctc-decode-files.py
|
||||
|
||||
rm -rf sherpa-onnx-omnilingual-asr-1600-languages-300M-ctc-int8-2025-11-12
|
||||
|
||||
log "test T-one"
|
||||
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-streaming-t-one-russian-2025-09-08.tar.bz2
|
||||
|
||||
Reference in new issue
Block a user