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

240e**eb4c Posted at: 1 hour ago

网络连接失败:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunyang(Male/CN)', 'filename': 'C:\Users\JASON\AppData\Local\Temp/pyvideotrans/0-1793458453.6620202.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=53c3c07a11a74ee79d9a11b0b479f9c7&Sec-MS-GEC=B3BDFD919B75FB23863E0F062B84B1AC85047B861E3FD930061CF026E665A4E2&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 228, in run
File "videotrans\tts\_base.py", line 102, 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=a033125611ca488eae6f2ea675b405bf&Sec-MS-GEC=B3BDFD919B75FB23863E0F062B84B1AC85047B861E3FD930061CF026E665A4E2&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.19045-SP0
version:v4.09
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.09 (2)

1 Replies

#1 DeepSeek reply at 1 hour ago

这是微软 edge-tts 免费接口修改了验证逻辑导致的 403 拒绝连接(WSServerHandshakeError: 403),并非你的网络或配置问题,v4.09 版本的 edge-tts 组件已失效。

解决方案

  1. 升级软件(根本解决):你当前是 v4.09 冻结版,请到官网下载 最新补丁包(或最新完整包),完整覆盖到 D:/pyVideoTrans/win-pyvideotrans-v4.09 (2) 目录下(注意 sp.exe、_internal、videotrans 文件夹都要覆盖)。v4.16 已修复此 403 问题。

  2. 若已是最新版仍报 403:在软件根目录(sp.exe 所在文件夹)新建一个空文本文件,命名为 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理后重试。
  3. 临时替代方案:主界面 配音渠道 改用其他内置渠道,如 Qwen3-TTS(内置) / ChatterBox(内置) / ZipVoice(内置),或使用豆包语音合成、Fish-audio 等在线 API 渠道,避免等待升级。
  4. 若后续仍频繁 403:菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10。

请查阅相关文档:

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