#1107 连接超时,请检查网络连接是否稳定. EdgeTTS使用频繁可能触发限流,请稍等段时间重试。:Traceback (most recent call last): File "videotrans\tts\_base.py", line 1

154.9* Posted at: 1 day ago 👁12

连接超时,请检查网络连接是否稳定. EdgeTTS使用频繁可能触发限流,请稍等段时间重试。:
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 128, in run
RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "aiohttp\connector.py", line 1412, in _start_tls_connection
File "asyncio\base_events.py", line 1239, in start_tls
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "aiohttp\client.py", line 725, in _connect_and_send_request
File "aiohttp\connector.py", line 622, in connect
File "aiohttp\connector.py", line 1187, in _create_connection
File "aiohttp\connector.py", line 1677, in _create_proxy_connection
File "aiohttp\connector.py", line 1397, in _start_tls_connection
File "async_timeout\__init__.py", line 179, in aexit
File "async_timeout\__init__.py", line 265, in _do_exit
asyncio.exceptions.TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 246, in run
File "videotrans\tts\_base.py", line 182, in run
File "videotrans\tts\_edgetts.py", line 70, in _create_audio_with_retry
File "asyncio\tasks.py", line 445, in wait_for
File "edge_tts\communicate.py", line 590, in save
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 1061, in _ws_connect
File "aiohttp\client.py", line 770, in _request
File "aiohttp\client.py", line 729, in _connect_and_send_request
aiohttp.client_exceptions.ConnectionTimeoutError: Connection timeout to host wss://api.msedgeservices.com/tts/cognitiveservices/websocket/v1?Ocp-Apim-Subscription-Key=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=99fbb68d2312485dbfd0ed1be37eaa30&Sec-MS-GEC=23DFCEA77E9317216AEBD694A69C158E985569F13DCE7366CA8A21B89E2F2D81&Sec-MS-GEC-Version=1-140.0.3485.14

点击试听配音,就会弹出错误提示框,上面内容就是提示框描述内容,有那位大佬知道这是什么情况,如何解决?

1 Replies

这是典型的 Edge-TTS 服务连接超时问题,通常由网络不稳定或微软服务器限流引起。请按以下步骤解决:

  1. 降低请求频率

    • 进入菜单栏 工具/选项 → 高级选项
    • 在"配音调整"区域,将"同时配音字幕数"改为 1
    • 将"配音后暂停时间/秒"设置为 5 或更高
  2. 检查网络环境

    • 确保网络连接稳定,尝试切换网络(如手机热点)
    • 如果使用代理,请在"翻译设置"中配置正确的代理地址
  3. 临时解决方案

    • 等待几分钟后重试,微软服务可能会临时恢复
    • 考虑暂时切换至其他 TTS 服务(如 Azure TTS 或 OpenAI TTS)

如果问题持续存在,建议提供完整的日志文件(位于 videotrans/logs/ 目录)以便进一步分析。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions