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

103.151**4 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=52b9a6d36e674244ae1ecec3513a82d3&Sec-MS-GEC=C95B3C36BEC7F5F0073DBBDB4F56C99075131AC3A457770C5DDEE0C36B1935ED&Sec-MS-GEC-Version=1-143.0.3650.75'

trk=[TransCreate]: uuid='9464bacd76', proxy_str='http://127.0.0.1:12000', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: L:/土壤入渗仪/Infiltration Test using Guelph Permeameter.mkv,
输出结果保存到文件夹: L:/土壤入渗仪/_video_out/Infiltration Test using Guelph Permeameter-mkv,
临时文件夹: D:/SYS/Downloads/win-pyvideotrans-v4.16-1/tmp/17992/9464bacd76
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), base, 发音语言: 英语,
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunjian(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕(双) 目标语言在上双字幕
代理地址: http://127.0.0.1:12000, 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=263301


=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/SYS/Downloads/win-pyvideotrans-v4.16-1

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 接口返回 429 限流错误,通常由代理 IP 不干净、请求过于频繁或代理服务器干扰导致。请按以下顺序处理:

  1. 在软件根目录(sp.exe 所在目录)创建空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理后重试。
  2. 若仍失败,请将主界面「代理地址」文本框清空并保存,确保无代理干扰。
  3. 进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5-10,降低请求频率。
  4. 如果依然报错,可暂时更换其他配音渠道(如 gTTS、Qwen-TTS 等)完成本次配音。
  5. 确认软件已为 v4.16(已修复 Edge-TTS 403 问题);若为源码部署,请更新 edge-tts 库:执行 uv add git+https://github.com/rany2/edge-tts.git。

请查阅相关文档:

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