#7995 Network connection failed:{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate':

111.45**3 Posted at: 1 hour ago

Network connection failed:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate': '+0%', 'role': 'Luna(Female/SG)', 'filename': 'C:\Users\knight\AppData\Local\Temp/pyvideotrans/0-1791796216.4675004.wav', 'tts_type': 0, 'language': 'en', '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=1520650b05ec43709de7f141e1acf1d6&Sec-MS-GEC=ADF6A11F2C3661CF24C4EE35E1AAA8B53E9112D3BD6661ACE015C1E7D1B84217&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 119, in run
File "videotrans\tts\_base.py", line 93, 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=d45ee59bf1fb42d6b61485faeed48006&Sec-MS-GEC=ADF6A11F2C3661CF24C4EE35E1AAA8B53E9112D3BD6661ACE015C1E7D1B84217&Sec-MS-GEC-Version=1-143.0.3650.75'


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

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 渠道被微软接口拒绝(HTTP 403),通常因请求过于频繁、IP 被临时限流,或网络代理配置导致连接失败。

解决方案:

  1. 检查代理配置:请确认主界面代理文本框为空或填写正确。若无需代理,可在软件根目录(D:/BaiduNetdiskDownload/win-pyvideotrans-v4.14)下创建一个空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理后重试。
  2. 降低请求频率:进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10。
  3. 等待几分钟后再重试,IP 可能被临时限流。
  4. 若急需完成任务,可暂时更换配音渠道(如 gTTS 或本地 Qwen-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