#5361 videotrans.configure.excepts.DubbingSrtError: All error for edge-tts Connection timeout to host wss://speech.platform.b

220.246* Posted at: 2 days ago

All error for edge-tts Connection timeout to host wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=c3ea0b93d0e249e098d5f789fa86d732&Sec-MS-GEC=3D51ADDE6D406E1CF9767791B60F686DC5C122DC5CA1E1644A50C56A33EF5452&Sec-MS-GEC-Version=1-143.0.3650.75:
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 84, in run
RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 192, in run
File "videotrans\tts\_base.py", line 88, in run
File "asyncio\base_events.py", line 649, in run_until_complete
File "videotrans\tts\_edgetts.py", line 200, in _exec
videotrans.configure.excepts.DubbingSrtError: All error for edge-tts Connection timeout to host wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=c3ea0b93d0e249e098d5f789fa86d732&Sec-MS-GEC=3D51ADDE6D406E1CF9767791B60F686DC5C122DC5CA1E1644A50C56A33EF5452&Sec-MS-GEC-Version=1-143.0.3650.75


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/文件/win-pyvideotrans-v4.03-0622

1 Replies

Edge-TTS 连接超时的根本原因是网络无法访问微软的 speech.platform.bing.com 服务(中国大陆地区通常被限制)。

解决方案:

  1. 配置网络代理:在主界面底部的“网络代理”输入框中,填写你的代理地址(例如 http://127.0.0.1:7890),格式与 VPN 客户端提供的 HTTP 代理一致。然后重新执行任务。
  2. 更换其他配音渠道:如果不想使用代理,可以改用免费的本地配音渠道(例如 Qwen-TTS(本地)Piper-TTS(本地)),无需联网且不受网络限制。在主界面的配音渠道下拉框中选择即可。

请查阅相关文档:

Post Your Reply
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: ko-fi.com/jianchang512

Related resource

Similar issues already exist