#8056 Network connection failed:{'text': 'Szia, kedves barátom! Remélem, minden napod szép és kellemes lesz!', 'rate': '+0%',

2605**3bae Posted at: 1 hour ago

Network connection failed:
{'text': 'Szia, kedves barátom! Remélem, minden napod szép és kellemes lesz!', 'rate': '+0%', 'role': 'Tamas(Male/HU)', 'filename': 'D:/BaiduNetdiskDownload/tmp/51712/listen_voice/0-hu-1791877105.1195512.wav', 'tts_type': 0, 'language': 'hu', '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=ffd111a20d9d47429245e3a979b42115&Sec-MS-GEC=E4C1E46628ACBA1E607A25380B9B9ABD3CB2715A8F8F4BE93B4DBAB068B161DC&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 118, in run
File "videotrans\tts\_base.py", line 92, 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=5c7c9923abf54758904d9b01c6d72141&Sec-MS-GEC=E4C1E46628ACBA1E607A25380B9B9ABD3CB2715A8F8F4BE93B4DBAB068B161DC&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.19045-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:D:/BaiduNetdiskDownload

1 Replies

#1 DeepSeek reply at 1 hour ago

这是由于微软 Edge-TTS 免费接口更改了验证逻辑,导致该渠道在大多数网络环境下返回 403 错误。您的软件版本为 v4.13,官方已在 v4.16 修复此问题。

解决方案:

  1. 下载 v4.16 完整包或补丁包覆盖升级(推荐完整包,若当前版本与最新版差距较大,仅覆盖补丁包可能出错)。下载地址:https://pyvideotrans.com/downpackage
  2. 若暂时无法升级,可改用其他配音渠道,例如 gTTS(免费)、Qwen3-TTS(内置)、Edge-TTS 的替代方案。
  3. 使用 VPN 切换不同国家/洲的节点,目前部分地区节点可能可以暂时使用 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