#7977 Network connection failed:{'text': '¡Hola, mi querido amigo! ¡Espero que cada uno de tus días sea hermoso y agradable!',

115.196**8 Posted at: 2 hours ago

Network connection failed:
{'text': '¡Hola, mi querido amigo! ¡Espero que cada uno de tus días sea hermoso y agradable!', 'rate': '+50%', 'role': 'Victor(Male/PR)', 'filename': 'C:/Users/EDY/Pictures/win-pyvideotrans-v4.15/tmp/29032/listen_voice/0-es-1791784137.6333401.wav', 'tts_type': 0, 'language': 'es', '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=6c12253d8c0e44a8a0eb19f271aa4daf&Sec-MS-GEC=E91C0872FCADCBE59C166F59938E2ED55823259DEB003250C2098AC467236033&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 122, in run
File "videotrans\tts\_base.py", line 95, 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 161, 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=307515f049434560816e42e8963cd9d1&Sec-MS-GEC=E91C0872FCADCBE59C166F59938E2ED55823259DEB003250C2098AC467236033&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.26100-SP0
version:v4.15
frozen:True
language:zh_CN
root_dir:C:/Users/EDY/Pictures/win-pyvideotrans-v4.15

1 Replies

#1 DeepSeek reply at 2 hours ago

Edge-TTS 返回 403 表示微软免费接口已对你的网络 IP 或当前代理执行了临时限流/封禁,常见于短时间高频请求,或代理被 Edge-TTS 服务拒绝。

解决方案:

  1. 降低 Edge-TTS 请求频率:打开 菜单 -> 工具/选项 -> 高级选项 -> 字幕配音调整,将 EdgeTTS配音渠道配音并发数 改为 1,将 配音后暂停秒 设为 5-10,然后重新试听或执行任务。
  2. 检查网络代理:Edge-TTS 默认会尝试走系统代理,代理节点不稳定会被微软拒绝。可在软件根目录创建一个空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理后重试。
  3. 更换网络环境:若当前 VPN 节点 IP 已被微软标记,请更换更干净的节点,或直接断开代理后重试。
  4. 若仍频繁失败,建议改用其他配音渠道,如 gTTS(免费)、Qwen3-TTS(内置) 或 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