FunASR
FunASR copied to clipboard
funasr-runtime-sdk-online-cpu-0.1.12容器内部脚本自动重启
1.服务器无网络 2.模型提前下载到了服务器中并挂载到了容器内部 3.wss脚本可以正常拉起,一直请求下载模型,最终可以启动成功也可以调用,但是过一段时间后容器内wss会自动重启. 4.启动参数: cd FunASR/runtime && nohup bash run_server_2pass.sh --certfile 0 --download-model-dir /workspace/models --vad-dir damo/speech_fsmn_vad_zh-cn-16k-common-onnx --model-dir damo/SenseVoiceSmall-onnx damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-onnx --online-model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online-onnx --punc-dir damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727-onnx --lm-dir damo/speech_ngram_lm_zh-cn-ai-wesp-fst --itn-dir thuduj12/fst_itn_zh --hotword /workspace/models/hotwords.txt > log.txt 2>&1 &
日志: I20251016 10:46:50.508656 19225 funasr-wss-server-2pass.cpp:25] model-dir : damo/SenseVoiceSmall-onnx I20251016 10:46:50.508741 19225 funasr-wss-server-2pass.cpp:25] online-model-dir : damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online-onnx I20251016 10:46:50.508750 19225 funasr-wss-server-2pass.cpp:25] quantize : true I20251016 10:46:50.508759 19225 funasr-wss-server-2pass.cpp:25] vad-dir : damo/speech_fsmn_vad_zh-cn-16k-common-onnx I20251016 10:46:50.508765 19225 funasr-wss-server-2pass.cpp:25] vad-quant : true I20251016 10:46:50.508773 19225 funasr-wss-server-2pass.cpp:25] punc-dir : damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727-onnx I20251016 10:46:50.508780 19225 funasr-wss-server-2pass.cpp:25] punc-quant : true I20251016 10:46:50.508788 19225 funasr-wss-server-2pass.cpp:25] itn-dir : thuduj12/fst_itn_zh I20251016 10:46:50.508795 19225 funasr-wss-server-2pass.cpp:25] lm-dir : damo/speech_ngram_lm_zh-cn-ai-wesp-fst I20251016 10:46:50.508802 19225 funasr-wss-server-2pass.cpp:25] hotword : /workspace/FunASR/runtime/websocket/hotwords.txt I20251016 10:46:50.508809 19225 funasr-wss-server-2pass.cpp:25] offline-model-revision : v2.0.5 I20251016 10:46:50.508817 19225 funasr-wss-server-2pass.cpp:25] online-model-revision : v2.0.5 I20251016 10:46:50.508824 19225 funasr-wss-server-2pass.cpp:25] vad-revision : v2.0.4 I20251016 10:46:50.508832 19225 funasr-wss-server-2pass.cpp:25] punc-revision : v2.0.5 I20251016 10:46:50.508839 19225 funasr-wss-server-2pass.cpp:25] itn-revision : v1.0.1 I20251016 10:46:50.508846 19225 funasr-wss-server-2pass.cpp:25] lm-revision : v1.0.2 I20251016 10:46:50.508859 19225 funasr-wss-server-2pass.cpp:225] Download model: damo/speech_fsmn_vad_zh-cn-16k-common-onnx from modelscope: /usr/local/lib/python3.8/runpy.py:127: RuntimeWarning: 'funasr.download.runtime_sdk_download_tool' found in sys.modules after import of package 'funasr.download', but prior to execution of 'funasr.download.runtime_sdk_download_tool'; this may result in unpredictable behaviour warn(RuntimeWarning(msg)) WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=2, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7faa1dc566d0>: Failed to resolve 'www.modelscope.cn' ([Errno -3] Temporary failure in name resolution)")': /api/v1/models/damo/speech_fsmn_vad_zh-cn-16k-common-onnx/revisions WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=2, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7faa1dc568b0>: Failed to resolve 'www.modelscope.cn' ([Errno -3] Temporary failure in name resolution)")': /api/v1/models/damo/speech_fsmn_vad_zh-cn-16k-common-onnx/revisions Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 198, in _new_conn sock = connection.create_connection( File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 60, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): File "/usr/local/lib/python3.8/socket.py", line 918, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Temporary failure in name resolution
The above exception was the direct cause of the following exception: