Add Dart API for FireRedAsr AED Model (#1877)
This commit is contained in:
19
dart-api-examples/non-streaming-asr/run-fire-red-asr.sh
Executable file
19
dart-api-examples/non-streaming-asr/run-fire-red-asr.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
if [ ! -f ./sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16/encoder.int8.onnx ]; then
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16.tar.bz2
|
||||
tar xvf sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16.tar.bz2
|
||||
rm sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16.tar.bz2
|
||||
ls -lh sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16
|
||||
fi
|
||||
|
||||
dart pub get
|
||||
|
||||
dart run \
|
||||
./bin/fire-red-asr.dart \
|
||||
--encoder ./sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16/encoder.int8.onnx \
|
||||
--decoder ./sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16/decoder.int8.onnx \
|
||||
--tokens ./sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16/tokens.txt \
|
||||
--input-wav ./sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16/test_wavs/0.wav
|
||||
Reference in New Issue
Block a user