#8921 网络连接失败:{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunxia(Male/CN)', 'filename': 'C:\\Users\\yigeren\

2408**68a6 Posted at: 53 minutes ago

网络连接失败:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunxia(Male/CN)', 'filename': 'C:\Users\yigeren\AppData\Local\Temp/pyvideotrans/0-1795445926.4508555.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=275cbe23bcba4bf3978db98f97df2763&Sec-MS-GEC=739B60F71FD3C2DF62C26EDDC88C8AD37EA9D84DBEA4058D41CBAE61860AF011&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 233, in run
File "videotrans\tts\_base.py", line 100, 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=c0a6aa077ac042a0ba373dabf614f46d&Sec-MS-GEC=739B60F71FD3C2DF62C26EDDC88C8AD37EA9D84DBEA4058D41CBAE61860AF011&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.26300-SP0
version:v4.11
frozen:True
language:zh
root_dir:E:/AAAA

1 Replies

#1 DeepSeek reply at 53 minutes ago

这是 Edge-TTS 免费接口的 403 封禁报错。您当前版本为 v4.11,该版本内置的 edge-tts 库已无法通过微软新版验证逻辑(Sec-MS-GEC 令牌校验),必然持续返回 403。

解决方案

方案一(推荐):升级软件至 v4.16 或更高版本

  1. 到官网下载最新完整包或补丁包:/downpackage
  2. 解压覆盖到旧版本目录(务必把补丁包内的 sp.exe、_internal、videotrans 文件夹全部覆盖,不要只覆盖 sp.exe)
  3. 若覆盖后仍报模块版本过旧,请在 _internal 文件夹内搜索所有 __pycache__ 并删除,再重新覆盖
v4.16 已修复此 403 问题;v4.19 为当前最新版。

方案二:更换配音渠道,绕开 Edge-TTS

  • 国内无需代理、开箱可用:Qwen3-TTS(内置)、ZipVoice(内置)、Confucius(内置)、ChatterBox(内置)
  • 在线付费高质量:字节语音合成2.0、阿里 Qwen-TTS、fish.audio、Minimaxi

方案三:降低请求频率(仅对限流型 403 有效,对本次验证逻辑失效无效)

高级选项 → 字幕配音调整:

  • EdgeTTS配音渠道配音并发数 设为 1
  • 配音后暂停秒 设为 5~10

补充:若报错提示 proxy 相关

在软件根目录(您的 E:/AAAA)新建空文件 edgetts-noproxy.txt,强制 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