Committed by
GitHub
Modify the model used (#1855)
non_streaming_server.py cannot use streaming models
正在显示
1 个修改的文件
包含
5 行增加
和
4 行删除
| @@ -23,15 +23,16 @@ Usage examples: | @@ -23,15 +23,16 @@ Usage examples: | ||
| 23 | (1) Use a non-streaming transducer model | 23 | (1) Use a non-streaming transducer model |
| 24 | 24 | ||
| 25 | cd /path/to/sherpa-onnx | 25 | cd /path/to/sherpa-onnx |
| 26 | -curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-streaming-zipformer-en-2023-06-26.tar.bz2 | ||
| 27 | -tar xvf sherpa-onnx-streaming-zipformer-en-2023-06-26.tar.bz2 | ||
| 28 | -rm sherpa-onnx-streaming-zipformer-en-2023-06-26.tar.bz2 | 26 | +curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-zipformer-en-2023-06-26.tar.bz2 |
| 27 | +tar xvf sherpa-onnx-zipformer-en-2023-06-26.tar.bz2 | ||
| 28 | +rm sherpa-onnx-zipformer-en-2023-06-26.tar.bz2 | ||
| 29 | 29 | ||
| 30 | python3 ./python-api-examples/non_streaming_server.py \ | 30 | python3 ./python-api-examples/non_streaming_server.py \ |
| 31 | --encoder ./sherpa-onnx-zipformer-en-2023-06-26/encoder-epoch-99-avg-1.onnx \ | 31 | --encoder ./sherpa-onnx-zipformer-en-2023-06-26/encoder-epoch-99-avg-1.onnx \ |
| 32 | --decoder ./sherpa-onnx-zipformer-en-2023-06-26/decoder-epoch-99-avg-1.onnx \ | 32 | --decoder ./sherpa-onnx-zipformer-en-2023-06-26/decoder-epoch-99-avg-1.onnx \ |
| 33 | --joiner ./sherpa-onnx-zipformer-en-2023-06-26/joiner-epoch-99-avg-1.onnx \ | 33 | --joiner ./sherpa-onnx-zipformer-en-2023-06-26/joiner-epoch-99-avg-1.onnx \ |
| 34 | - --tokens ./sherpa-onnx-zipformer-en-2023-06-26/tokens.txt | 34 | + --tokens ./sherpa-onnx-zipformer-en-2023-06-26/tokens.txt \ |
| 35 | + --port 6006 | ||
| 35 | 36 | ||
| 36 | (2) Use a non-streaming paraformer | 37 | (2) Use a non-streaming paraformer |
| 37 | 38 |
-
请 注册 或 登录 后发表评论