配音阶段出错 [Edge-TTS(免费)] 网络连接失败
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 127, in run
RuntimeError: no running event loop
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "videotrans\task\job.py", line 213, in run
File "videotrans\task\_dubbing.py", line 51, in dubbing
File "videotrans\task\_dubbing.py", line 209, in _tts
File "videotrans\tts\__init__.py", line 335, in run
File "videotrans\tts\_base.py", line 192, in run
File "videotrans\tts\_edgetts.py", line 66, in _create_audio_with_retry
File "asyncio\tasks.py", line 445, in wait_for
File "edge_tts\communicate.py", line 590, in save
File "edge_tts\communicate.py", line 573, in stream
File "edge_tts\communicate.py", line 431, in __stream
File "aiohttp\client.py", line 1482, in aenter
File "aiohttp\client.py", line 1078, in _ws_connect
aiohttp.client_exceptions.WSServerHandshakeError: 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=967e13f284bb458d8fcfd9136b5b2eff&Sec-MS-GEC=F61F81E5D157A2A1A0D8A6B90BE2F658A581B93EEEF1B1885AB03BEC656F2635&Sec-MS-GEC-Version=1-143.0.3650.75'
TaskCfgTTS(is_cuda=False, uuid='3db7d7c688', cache_folder='D:/BaiduNetdiskDownload/win-pyvideotrans-v3.98-323/tmp/4032/3db7d7c688', target_dir='C:/Users/Administrator/Desktop/8月4日 - 副本', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code='en', target_sub='C:/Users/Administrator/Desktop/8月4日 - 副本/1英.srt', target_wav='C:/Users/Administrator/Desktop/8月4日 - 副本/1英.wav', target_wav_output=None, name='C:/Users/Administrator/Desktop/8月4日 - 副本/1英.srt', noextname='1英', basename='1英.srt', ext='srt', dirname='C:/Users/Administrator/Desktop/8月4日 - 副本', shound_del_name=None, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Wayne(Male/SG)', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=False)
=
system:Windows-10-10.0.19045-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/win-pyvideotrans-v3.98-323