#2771 TaskCfg(cache_folder='G:/win-pyvideotrans-v3.86/tmp/20784/52eca12b26', target_dir='g:/win-pyvideotrans-v3.86/output/tts'

140.235* Posted at: 6 days ago 👁27

配音阶段出错:[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=5719B40CA96BA33D86B6267296D5C287F9F5B2F84C931F8800A55F3459DECE25&Sec-MS-GEC-Version=1-130.0.2849.68&ConnectionId=652ad5eee44e45d2938895e8624e0b5b'

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=5719B40CA96BA33D86B6267296D5C287F9F5B2F84C931F8800A55F3459DECE25&Sec-MS-GEC-Version=1-130.0.2849.68&ConnectionId=9e67794a6356495bb94393b703959ec0'

TaskCfg(cache_folder='G:/win-pyvideotrans-v3.86/tmp/20784/52eca12b26', 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/20784/20260121-152359.txt', source_wav=None, source_wav_output=None, target_wav='g:/win-pyvideotrans-v3.86/output/tts/20260121-152359.mp3', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='20260121-152359', 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/20784/20260121-152359.txt', basename='20260121-152359.txt', ext='txt', dirname='G:/win-pyvideotrans-v3.86/tmp/20784', shound_del_name=None, uuid='52eca12b26', 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行的“网络代理”中正确填写代理地址(如 http://127.0.0.1:10809)。
    • 如果未使用代理,请尝试暂时关闭代理设置。
  3. 更换配音角色或稍后重试

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

    • 如果问题持续存在,可以暂时切换到其他免费的配音渠道,例如 VITS-cnenpiper-tts(本地模式,无需联网)。

如果以上方法均无效,请提供 G:/win-pyvideotrans-v3.86/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