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

117.150**3 Posted at: 12 hours ago

网络连接失败:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunxia(Male/CN)', 'filename': 'F:/4.0111111tg/tmp/7036/listen_voice/0-zh-cn-Yunxia(Male-CN)-+0%-+0Hz.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=547020f039504bbe89cdd9b5da9e2686&Sec-MS-GEC=4767D34F6A1E6E80D473A7C77E2107690034408B5EF999CD7AE0175D5055E86D&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 152, 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=15164e2f55d34b68bac50807447cb370&Sec-MS-GEC=4767D34F6A1E6E80D473A7C77E2107690034408B5EF999CD7AE0175D5055E86D&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.28000-SP0
version:v4.10
frozen:True
language:zh
root_dir:F:/4.0111111tg

1 Replies

#1 DeepSeek reply at 12 hours ago

这是 Edge-TTS 免费接口的验证逻辑变更导致的 403 拒绝(WSServerHandshakeError: 403),与你当前使用的 v4.10 版本内置的 edge-tts 库版本过旧 直接相关,并非你的网络本身有问题。

解决方案

1. 升级软件(必要步骤)

  • 前往下载页,下载 v4.16 或更高版本(当前最新 v4.18) 的补丁包,覆盖到现有安装目录。
  • 若你是首次从很旧版本跳升,建议直接下载 2.6GB+ 的完整包解压使用,避免 _internal 目录残留导致模块版本冲突。
  • 覆盖后若仍提示某些模块版本过低,请到旧版本 _internal 文件夹内搜索所有 __pycache__ 并删除,再重新覆盖。

2. 如果升级后仍出现 403
Edge-TTS 会受网络代理影响,可在软件根目录(F:/4.0111111tg/)新建一个空文本文件,命名为 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理直连。

3. 降低请求频率
进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10。

4. 临时替代方案(不改版本急需出片时)
配音渠道改用内置本地模型,例如 Qwen3-TTS(内置)、OmniVoice(内置)、ZipVoice中英(内置) 等,不依赖微软在线接口。

请查阅相关文档:

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