配音阶段出错:[Edge-TTS(免费)] 网络连接失败:
Traceback (most recent call last):
File "edge_tts\communicate.py", line 566, 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&Sec-MS-GEC=97C5B05C46C0E63BD8000DAEBC7E9BC7465C9B0FB327EEA44047F6642319069E&Sec-MS-GEC-Version=1-130.0.2849.68&ConnectionId=be12f9c4fa764635a071383b4af6c98b'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "videotrans\task\job.py", line 224, in run
File "videotrans\task\_dubbing.py", line 48, in dubbing
File "videotrans\task\_dubbing.py", line 140, in _tts
File "asyncio\runners.py", line 44, in run
File "asyncio\base_events.py", line 646, in run_until_complete
File "videotrans\task\_base.py", line 199, in _edgetts_single
File "videotrans\task\_base.py", line 185, in _edgetts_single
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&Sec-MS-GEC=97C5B05C46C0E63BD8000DAEBC7E9BC7465C9B0FB327EEA44047F6642319069E&Sec-MS-GEC-Version=1-130.0.2849.68&ConnectionId=8ff38ca3bed446cfb51a715f8b67619d'
TaskCfg(cache_folder='G:/win-pyvideotrans-v3.86/tmp/19244/e2fc3ba3e1', target_dir='G:/win-pyvideotrans-v3.86/output/tts', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code='en', source_sub=None, target_sub='G:/win-pyvideotrans-v3.86/tmp/19244/20260121-150322.txt', source_wav=None, source_wav_output=None, target_wav='G:/win-pyvideotrans-v3.86/output/tts/20260121-150322.mp3', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='20260121-150322', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Aria(Female/US)', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=0, recogn_type=None, model_name=None, split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='G:/win-pyvideotrans-v3.86/tmp/19244/20260121-150322.txt', basename='20260121-150322.txt', ext='txt', dirname='G:/win-pyvideotrans-v3.86/tmp/19244', shound_del_name=None, uuid='e2fc3ba3e1', remove_silent_mid=True, align_sub_audio=False, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)
=
system:Windows-10-10.0.26100-SP0
version:v3.89
frozen:True
language:zh
root_dir:G:/win-pyvideotrans-v3.86