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

103.151**9 Posted at: 3 hours ago

Network connection failed:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Xiaoyi(Female/CN)', 'filename': 'C:\Users\35632\AppData\Local\Temp/pyvideotrans/0-1792403739.469926.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=b5fc295e6e10490497324d6b8bc8f250&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=b146864d52084fd3864b1dde126bcfe1&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 免费接口更改了验证逻辑,旧版 edge-tts 库请求被返回 403 Invalid response status,与你的文本内容无关。

解决方案(按顺序):

  1. 升级到 v4.16(根本解决方式)
    你当前是 v4.15 预打包版,请到官网下载最新 v4.16 补丁包(约360MB),完整覆盖到 E:/SSS2 目录下(务必覆盖所有文件和文件夹,不只是 sp.exe),然后重启软件。
  2. 若升级后仍报 403,排查网络代理
    在主界面 对齐控制 行右侧的代理文本框,检查是否填写了无效代理;或在软件根目录 E:/SSS2 下新建一个空文件 edgetts-noproxy.txt(仅创建空文本文件即可),强制 Edge-TTS 绕过代理重试。
  3. 降低请求频率(辅助缓解)
    菜单 → 工具 → 高级选项 → 字幕配音调整:将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10。
  4. 临时替代方案
    Edge-TTS 持续不可用时,可将配音渠道改为 gTTS(免费) 或本地内置渠道(如 Qwen3-TTS(内置)、OmniVoice),先保证任务可继续。

注意:Windows 预打包版无法通过命令行 uv add 修复 edge-tts,必须依赖官方 v4.16 补丁包覆盖。

请查阅相关文档:

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