| | |
| | | model="iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch" |
| | | model_revision="v2.0.4" |
| | | |
| | | python funasr/bin/export.py \ |
| | | |
| | | python -m funasr.bin.export \ |
| | | ++model=${model} \ |
| | | ++model_revision=${model_revision} \ |
| | | ++input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/vad_example.wav" \ |
| | | ++type="onnx" \ |
| | | ++quantize=false \ |
| | | ++device="cpu" |
| | | |
| | | |
| | | # method2, inference from local path |
| | | model="/Users/zhifu/.cache/modelscope/hub/iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch" |
| | | |
| | | python -m funasr.bin.export \ |
| | | ++model=${model} \ |
| | | ++input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/vad_example.wav" \ |
| | | ++type="onnx" \ |
| | | ++quantize=false \ |
| | | ++device="cpu" \ |
| | | ++debug=false |