#8494 Network connection failed:{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate':

180.213**8 Posted at: 1 hour ago

Network connection failed:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate': '+0%', 'role': 'Yan(Female/HK)', 'filename': 'C:\Users\Administrator\AppData\Local\Temp/pyvideotrans/0-1793089758.066983.wav', 'tts_type': 0, 'language': 'en', 'volume': '+0%', 'pitch': '+0Hz'}
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&ConnectionId=1117c085ad8c44f49c13f1306bfdf341&Sec-MS-GEC=63993A0FC23401149068EFC924DAF8AC891677F20163E72C82E20FB97F4DE0FC&Sec-MS-GEC-Version=1-143.0.3650.75'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 118, in run
File "videotrans\tts\_base.py", line 92, 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 154, in _exec
File "edge_tts\communicate.py", line 590, in save
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&ConnectionId=e46e2494f9014db29160c763e013e50d&Sec-MS-GEC=63993A0FC23401149068EFC924DAF8AC891677F20163E72C82E20FB97F4DE0FC&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.19043-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:G:/win-pyvideotrans-v4.13-1

1 Replies

#1 DeepSeek reply at 1 hour ago

这是微软 Edge-TTS 免费接口验证逻辑变更导致的 403 拦截,你的版本 v4.13 尚未修复此问题(官方在 v4.16 已修复)。

解决方案(按顺序尝试):

  1. 升级软件(根本解决):前往官网下载最新版完整包(首次升级或当前是补丁包时须下载 2.6GB+ 完整包),解压覆盖旧目录。升级后 Edge-TTS 403 问题即被修复。

    • 若你是源码部署,则执行:uv add git+https://github.com/rany2/edge-tts.git,若报错先执行 uv remove edge-tts 再重新执行上面的命令。
  2. 降低请求频率(临时缓解):进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,将 配音后暂停秒 设为 5~10。
  3. 若使用了网络代理:在软件根目录(G:/win-pyvideotrans-v4.13-1)创建空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理直连。
  4. 临时替代方案:若急需出结果,可先改用其他配音渠道(如 gTTS(免费),但国内需科学上网),或使用 AI 翻译 + 其他本地/云 TTS 渠道。
注意:v4.13 属于较旧版本,直接升级到最新完整包是最稳妥的方式,仅覆盖 sp.exe 补丁会因 _internal、videotrans 等依赖文件未更新而继续报错。

请查阅相关文档:

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