#9103 自定义TTS API: HTTPConnectionPool(host='bc8453d49fd64b1fbc900a66f96568ec.wgac6i8it5nl0w8o', port=80): Max retries exceeded

118.74**5 Posted at: 7 hours ago

自定义TTS API: HTTPConnectionPool(host='bc8453d49fd64b1fbc900a66f96568ec.wgac6i8it5nl0w8o', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'bc8453d49fd64b1fbc900a66f96568ec.wgac6i8it5nl0w8o' ([Errno 11001] getaddrinfo failed)"))
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': '', 'filename': 'D:/AI/win-pyvideotrans-v4.20/tmp/6208/1796406866.2293835-ttsapi.wav', 'tts_type': 36}
Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 60, in create_connection
File "socket.py", line 967, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

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

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 493, in _make_request
File "urllib3\connection.py", line 494, in request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "urllib3\connection.py", line 325, in connect
File "urllib3\connection.py", line 205, in _new_conn
urllib3.exceptions.NameResolutionError: : Failed to resolve 'bc8453d49fd64b1fbc900a66f96568ec.wgac6i8it5nl0w8o' ([Errno 11001] getaddrinfo failed)

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

Traceback (most recent call last):
File "requests\adapters.py", line 644, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='bc8453d49fd64b1fbc900a66f96568ec.wgac6i8it5nl0w8o', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'bc8453d49fd64b1fbc900a66f96568ec.wgac6i8it5nl0w8o' ([Errno 11001] getaddrinfo failed)"))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 23, in run
File "videotrans\tts\__init__.py", line 147, in run
File "videotrans\tts\_base.py", line 125, in run
File "videotrans\tts\_base.py", line 216, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_ttsapi.py", line 74, in _run
File "requests\api.py", line 115, in post
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 677, in send
requests.exceptions.ConnectionError: HTTPConnectionPool(host='bc8453d49fd64b1fbc900a66f96568ec.wgac6i8it5nl0w8o', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'bc8453d49fd64b1fbc900a66f96568ec.wgac6i8it5nl0w8o' ([Errno 11001] getaddrinfo failed)"))


=
system:Windows-10-10.0.26200-SP0
version:v4.20
frozen:True
language:zh_CN
root_dir:D:/AI/win-pyvideotrans-v4.20

1 Replies

#1 DeepSeek reply at 7 hours ago

这是因为“自定义 TTS API”中填写的 API 地址无法解析(DNS 解析失败,getaddrinfo failed),也就是这个域名 bc8453d49fd64b1fbc900a66f96568ec.wgac6i8it5nl0w8o 根本不存在,或服务没有启动、地址填错。

关键说明:自定义TTS API 不是填任意第三方接口就能用的渠道。它要求你自己编写或部署一个服务,并严格按 pyVideoTrans 规定的请求/返回 JSON 格式返回语音数据。直接填一个现成的第三方地址,大概率不可用。

排查步骤:

  1. 打开 菜单 → TTS设置 → 自定义TTS API,检查填写的 API 地址。

    • 本地服务应填 http://127.0.0.1:端口(不能填 0.0.0.0)。
    • 确认该地址对应服务已启动、端口正确、浏览器/curl 能访问。
  2. 若你用的是第三方在线配音服务(不是自己部署的),应改选对应渠道:

    • 若第三方兼容 OpenAI TTS 接口,请改用 OpenAI-TTS 或兼容渠道,在 菜单 → TTS设置 中填写 base url 和 key。
    • 其他服务请使用其专属渠道(fish.audio、豆包语音合成、阿里百炼、Minimax 等)。
  3. 确保主界面「网络代理」为空或填写正确,无效代理也会导致连接失败。

该地址形如随机生成的临时域名,若来自某个网页/教程,请确认它是否是真实可访问的服务地址。

请查阅相关文档:

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