modelscope-funasr这是什么原因?(base) ubuntu@ubun:~/WFJ/FunASR/python$ python3 funasr_wss_client.py --host "127.0.0.1" --port 10095 --mode offline --audio_in "../audio/asr_example.wav"
Namespace(host='127.0.0.1', port=10095, chunk_size=[5, 10, 5], chunk_interval=10, hotword='', audio_in='../audio/asr_example.wav', audio_fs=16000, send_without_sleep=True, thread_num=1, words_max_print=10000, output_dir=None, ssl=1, use_itn=1, mode='offline')
/home/ubuntu/WFJ/FunASR/python/funasr_wss_client.py:318: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.
ssl_context = ssl.SSLContext()
/home/ubuntu/WFJ/FunASR/python/funasr_wss_client.py:318: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
ssl_context = ssl.SSLContext()
connect to wss://127.0.0.1:10095
Process Process-1:
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.10.12/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/home/ubuntu/.pyenv/versions/3.10.12/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(self._args, *self._kwargs)
File "/home/ubuntu/WFJ/FunASR/python/funasr_wss_client.py", line 337, in one_thread
asyncio.get_event_loop().run_until_complete(ws_client(id, chunk_begin, chunk_size))
File "/home/ubuntu/.pyenv/versions/3.10.12/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/ubuntu/WFJ/FunASR/python/funasr_wss_client.py", line 326, in ws_client
async with websockets.connect(uri, subprotocols=["binary"], ping_interval=None, ssl=ssl_context) as websocket:
File "/home/ubuntu/.pyenv/versions/3.10.12/lib/python3.10/site-packages/websockets/legacy/client.py", line 629, in aenter
return await self
File "/home/ubuntu/.pyenv/versions/3.10.12/lib/python3.10/site-packages/websockets/legacy/client.py", line 647, in await_impl_timeout
return await self.await_impl()
File "/home/ubuntu/.pyenv/versions/3.10.12/lib/python3.10/site-packages/websockets/legacy/client.py", line 651, in await_impl
_transport, _protocol = await self._create_connection()
File "/home/ubuntu/.pyenv/versions/3.10.12/lib/python3.10/asyncio/base_events.py", line 1103, in create_connection
transport, protocol = await self._create_connection_transport(
File "/home/ubuntu/.pyenv/versions/3.10.12/lib/python3.10/asyncio/base_events.py", line 1133, in _create_connection_transport
await waiter
ConnectionResetError
end