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

27.37**1 Posted at: 2 hours ago

Network connection failed:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+25%', 'role': 'Yunxi(Male/CN)', 'filename': 'C:\Users\TIGERL~1\AppData\Local\Temp/pyvideotrans/0-1792061481.9844275.wav', 'tts_type': 0, 'language': 'zh-cn', 'volume': '+9%', '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=f0ccac35a1914b10be0bd697d63a0831&Sec-MS-GEC=AB55B1B07E06F335D18B5280E80F5ADE837CF1A14A3443A8526FE80BFE58B279&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 230, in run
File "videotrans\tts\_base.py", line 94, 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=d4facd5e3ab9443092bb088cd55b39de&Sec-MS-GEC=AB55B1B07E06F335D18B5280E80F5ADE837CF1A14A3443A8526FE80BFE58B279&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.26300-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/VideoTrans-v4.12

1 Replies

#1 DeepSeek reply at 2 hours ago

这是微软 Edge-TTS 免费接口在 2025 年更改了验证逻辑导致的 403 错误,并非你的网络或代理问题。你的版本是 v4.12,该问题已在 v4.16 中修复。

解决方案:

  1. 下载并覆盖安装最新版(v4.16 或更高)完整包/补丁包:https://pyvideotrans.com/downpackage
  2. 如果暂时无法升级,可改用其他配音渠道,例如:

    • gTTS(免费,需科学上网)
    • Qwen3-TTS(内置,需下载模型)
    • 其他在线 TTS 渠道(如豆包、Minimaxi 等)
  3. 若使用代理导致 Edge-TTS 连接异常,可在软件根目录创建 edgetts-noproxy.txt 空文件强制跳过代理,但 403 的根本原因是接口已失效,仅靠跳过代理无法彻底解决。

注意:升级时请完整覆盖所有文件,尤其是 sp.exe 和 _internal 文件夹,避免只覆盖主程序导致新问题。

请查阅相关文档:

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