This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex-mr_series-sherpa-onnx/go-api-examples/non-streaming-decode-files/run-paraformer.sh

20 lines
607 B
Bash
Raw Normal View History

2023-07-21 17:56:09 +08:00
#!/usr/bin/env bash
2024-05-21 11:50:13 +08:00
set -ex
2024-07-10 17:05:26 +08:00
if [ ! -d sherpa-onnx-paraformer-zh-2023-09-14 ]; then
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-paraformer-zh-2023-09-14.tar.bz2
tar xvf sherpa-onnx-paraformer-zh-2023-09-14.tar.bz2
rm sherpa-onnx-paraformer-zh-2023-09-14.tar.bz2
2024-05-21 11:50:13 +08:00
fi
go mod tidy
go build
2023-07-21 17:56:09 +08:00
./non-streaming-decode-files \
2024-07-10 17:05:26 +08:00
--paraformer ./sherpa-onnx-paraformer-zh-2023-09-14/model.int8.onnx \
--tokens ./sherpa-onnx-paraformer-zh-2023-09-14/tokens.txt \
2023-07-21 17:56:09 +08:00
--model-type paraformer \
--debug 0 \
2024-07-10 17:05:26 +08:00
./sherpa-onnx-paraformer-zh-2023-09-14/test_wavs/0.wav