#8281 Network connection failed:{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'YunJhe(Male/TW)', 'filename': '

103.151**9 Posted at: 3 hours ago

Network connection failed:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'YunJhe(Male/TW)', 'filename': 'C:\Users\35632\AppData\Local\Temp/pyvideotrans/0-1792403881.9836626.wav', 'tts_type': 0, 'language': 'zh-cn', '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=042214c9b1ae49b3b0d2c0362c16203e&Sec-MS-GEC=D8A199FB5F16454BF29342D74375D97593DFC21F57A2DE90215316BA1584A877&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 122, 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 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=a58215c7fe124151b8732f6e7630d5cd&Sec-MS-GEC=D8A199FB5F16454BF29342D74375D97593DFC21F57A2DE90215316BA1584A877&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.26200-SP0
version:v4.15
frozen:True
language:zh_CN
root_dir:E:/SSS2

1 Replies

#1 DeepSeek reply at 3 hours ago

这是微软 Edge-TTS 免费接口更改了验证逻辑导致的 403 拒绝,属于 v4.15 已知问题,v4.16 已修复。

解决方案

  1. 下载 v4.16 补丁包(或完整包),完整覆盖到 E:/SSS2 目录

    • 必须把 sp.exe、_internal 文件夹、videotrans 文件夹全部覆盖,不能只替换 sp.exe
    • 若之前是旧版本升级,可在 _internal 内搜索 __pycache__,删除所有搜到的文件夹后再覆盖
    • 下载地址:https://pyvideotrans.com/downpackage
  2. 覆盖完成后检查代理

    • 若使用了代理,Edge-TTS 可能因代理节点被微软拦截。在软件根目录 E:/SSS2/ 下新建一个空文本文件,命名为 edgetts-noproxy.txt(注意后缀是 .txt,不是 .txt.txt),强制 Edge-TTS 绕过代理
    • 若代理填写有误,请清空主界面右侧的代理文本框并保存
  3. 降低请求频率(避免被限流)

    • 进入 菜单 → 工具 → 高级选项 → 字幕配音调整
    • EdgeTTS配音渠道配音并发数 设为 1
    • 配音后暂停秒 设为 5 ~ 10
  4. 应急替代方案:若无法立即升级,可在配音渠道处临时改用 gTTS(免费)(国内需代理)或本地内置渠道(如 Qwen3-TTS、OmniVoice)。
注意:源码部署(MacOS/Linux/Windows源码)升级时需执行 uv add git+https://github.com/rany2/edge-tts.git;若报错则先 uv remove edge-tts 再重新执行。

请查阅相关文档:

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