14 lines
651 B
Bash
14 lines
651 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
# Please refer to
|
||
|
|
# https://k2-fsa.github.io/sherpa/onnx/pretrained_models/online-ctc/zipformer-ctc-models.html#sherpa-onnx-streaming-zipformer-ctc-multi-zh-hans-2023-12-13-chinese
|
||
|
|
# to download the model
|
||
|
|
# before you run this script.
|
||
|
|
#
|
||
|
|
# You can switch to a different online model if you need
|
||
|
|
|
||
|
|
./streaming-decode-files \
|
||
|
|
--zipformer2-ctc ./sherpa-onnx-streaming-zipformer-ctc-multi-zh-hans-2023-12-13/ctc-epoch-20-avg-1-chunk-16-left-128.onnx \
|
||
|
|
--tokens ./sherpa-onnx-streaming-zipformer-ctc-multi-zh-hans-2023-12-13/tokens.txt \
|
||
|
|
./sherpa-onnx-streaming-zipformer-ctc-multi-zh-hans-2023-12-13/test_wavs/DEV_T0000000000.wav
|