#1055 requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=9966): Max retries exceeded with url: /tt

35.212* Posted at: 9 hours ago 👁12

连接被拒绝,请确保本地服务已启动并正在运行:
Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 85, in create_connection
File "urllib3\util\connection.py", line 73, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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 1277, in endheaders
File "http\client.py", line 1037, in _send_output
File "http\client.py", line 975, in send
File "urllib3\connection.py", line 325, in connect
File "urllib3\connection.py", line 213, in _new_conn
urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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

Traceback (most recent call last):
File "requests\adapters.py", line 667, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9966): Max retries exceeded with url: /tts (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 257, in run
File "videotrans\tts\_base.py", line 182, in run
File "videotrans\tts\_chattts.py", line 73, 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 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_chattts.py", line 46, 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 700, in send
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=9966): Max retries exceeded with url: /tts (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

=====
Windows-10-10.0.26200-SP0
version:v3.81
frozen:True
language:zh

1 Replies

这个错误表明软件正在尝试连接本地端口 9966 的 TTS 服务,但该服务未启动。这通常发生在您选择了需要本地部署的 TTS 模型时。

根据错误信息,您可能选择了 ChatTTS 或其他需要启动本地服务的 TTS 模型。请按以下步骤解决:

  1. 检查 TTS 设置: 在菜单栏选择 TTS配音设置,查看当前选择的“配音渠道”。
  2. 切换 TTS 渠道: 如果您没有手动启动相应的本地 TTS 服务,请切换到无需本地服务的 TTS 渠道,例如:

    • Edge-TTS(推荐): 免费、无需配置,可直接使用。
    • OpenAI TTS / Azure TTS 等在线 API: 需要配置相应的 API 密钥。
  3. 如果您确实需要使用 ChatTTS: 您需要按照官方文档或项目说明,先单独启动 ChatTTS 的本地服务,并确保其运行在 127.0.0.1:9966 上。

最简单的解决方法是切换到 Edge-TTS 或其他在线 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.

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

Similar issues already exist

Trending Questions