#2770 TaskCfg(cache_folder='G:/win-pyvideotrans-v3.86/tmp/19244/e2fc3ba3e1', target_dir='G:/win-pyvideotrans-v3.86/output/tts'

113.82* Posted at: 6 days ago 👁25

配音阶段出错:[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

1 Replies

Edge-TTS 配音阶段出现 403 错误,这通常是由于微软服务器临时限制或网络连接问题导致。请按以下步骤尝试解决:

  1. 降低请求频率(首选方案)

    • 在软件主界面菜单栏选择 工具 -> 高级选项
    • 在“配音调整”区域,将“同时配音字幕数”改为 1
    • 将“配音后暂停时间/秒”改为 5 或更高。
    • 点击“保存”并重新运行任务。
  2. 检查网络连接与代理

    • 如果你使用了代理,请确保代理设置正确(主界面第5行“网络代理”)。
    • 尝试暂时关闭代理或更换网络环境(如使用手机热点)。
  3. 更换配音角色或稍后重试

    • 微软服务器可能对特定角色或区域有临时限制。尝试更换一个不同的 Edge-TTS 角色(如 en-US-JennyNeural)。
    • 等待一段时间(如半小时)后再重试,服务器限制可能已解除。
  4. 使用备用配音渠道

    • 如果问题持续,可以暂时切换到其他免费配音渠道,如 VITS-cnenpiper-tts

如果以上方法均无效,请提供 videotrans/logs/ 目录下的最新日志文件以便进一步分析。

请查看更多参考文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource