#8650 Network connection failedTraceback (most recent call last):

124.89**9 Posted at: 1 hour ago

Network connection failed
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 108, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 132, in run
File "videotrans\tts\_base.py", line 95, in run
File "asyncio\runners.py", line 44, in run
File "asyncio\base_events.py", line 649, in run_until_complete
File "videotrans\tts\_edgetts.py", line 161, in _exec
File "edge_tts\communicate.py", line 590, in save
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: 429, message='Invalid response status', url='wss://api.msedgeservices.com/tts/cognitiveservices/websocket/v1?Ocp-Apim-Subscription-Key=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=23435a2e9fd24d70bfbd8d12a6aba565&Sec-MS-GEC=F57EA5AFF6A13AD12725AB49971C128F707FC81B6F7071FC5E0C2B8CA0182598&Sec-MS-GEC-Version=1-143.0.3650.75'

trk=[TransCreate]: uuid='2e4a5bcba2', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/84988/Desktop/20260705_552751194299ee9f_572218851408_476515382331841_published_mp4_264_hd_taobao.mp4,
输出结果保存到文件夹: C:/Users/84988/Desktop/视频翻译工具视频/edgetts-noproxy.txt/20260705_552751194299ee9f_572218851408_476515382331841_published_mp4_264_hd_taobao-mp4,
临时文件夹: D:/视频英文翻译工具/新/4.16/tmp/49920/2e4a5bcba2
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:openai-whisper(内置), tiny, 发音语言: 简体中文,
翻译渠道:Google(免费),原始语言:简体中文,目标语言:俄语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Svetlana(Female/RU), 配音语言:俄语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕 , precent=15, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=30866


=
system:Windows-10-10.0.26300-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/视频英文翻译工具/新/4.16

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 免费接口被微软限流拦截(返回 429/403),或代理配置导致的 WebSocket 握手失败。

按顺序排查解决:

  1. 降低请求频率:进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,EdgeTTS渠道失败重试次数 适当调大,配音后暂停秒 设为 5~10。
  2. 排除代理干扰:若你使用了 VPN/代理,Edge-TTS 可能因代理中断握手。在软件根目录(D:/视频英文翻译工具/新/4.16/)下创建一个空的 edgetts-noproxy.txt 文件(用于禁止 edge-tts 走代理)。
    ⚠️ 注意你当前输出路径是 C:/Users/84988/Desktop/视频翻译工具视频/edgetts-noproxy.txt/...,说明你把 edgetts-noproxy.txt 建成了桌面输出目录里的一个文件夹,这是无效的,该文件必须放在软件根目录。
  3. 确认 edge-tts 已修复:v4.16 已修复部分 403 问题,确认你使用的是完整 v4.16 补丁包(非仅覆盖 sp.exe)。
  4. 若仍失败,换其他配音渠道,例如内置的 Qwen3-TTS、OmniVoice(内置),或使用 fish.audio 等在线服务。
  5. Edge-TTS 是微软免费公开接口,触发限流较常见,通常间隔一段时间或更换公网 IP(切换 VPN 节点)后可恢复。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource