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

160.248* Posted at: 2 days ago 👁20

配音阶段出错:[GPT-SoVITS] 连接被拒绝,请确保本地服务已启动并正在运行:
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=9880): Max retries exceeded with url: /tts?text=%F0%9F%8E%A7+%E6%85%A2%E9%80%BB%E8%BE%91+++Learning.+Thinking.+Living+Differently.&text_lang=zh&ref_audio_path=toughman.wav&prompt_text=%E7%8B%AE%E5%AD%90%E6%98%AF%E5%A4%A7%E5%9E%8B%E7%8C%AB%E7%A7%91%E5%8A%A8%E7%89%A9%EF%BC%8C%E4%BA%BA%E7%B1%BB%E8%AE%B0%E8%BD%BD%E4%B8%AD%EF%BC%8C%E4%BD%93%E9%87%8D%E6%9C%80%E5%A4%A7%E7%9A%84%E7%8B%AE%E5%AD%90%E5%9C%A81936%E5%B9%B4%E6%AD%BB%E5%9C%A8%E4%BA%86%E5%8D%97%E9%9D%9E&prompt_lang=zh&speed_factor=1.0 (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\task\job.py", line 185, in run
File "videotrans\task\_dubbing.py", line 47, in dubbing
File "videotrans\task\_dubbing.py", line 186, in _tts
File "videotrans\tts\__init__.py", line 266, in run
File "videotrans\tts\_base.py", line 193, in run
File "videotrans\tts\_gptsovits.py", line 115, 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\_gptsovits.py", line 92, in _run
File "requests\api.py", line 73, in get
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=9880): Max retries exceeded with url: /tts?text=%F0%9F%8E%A7+%E6%85%A2%E9%80%BB%E8%BE%91+++Learning.+Thinking.+Living+Differently.&text_lang=zh&ref_audio_path=toughman.wav&prompt_text=%E7%8B%AE%E5%AD%90%E6%98%AF%E5%A4%A7%E5%9E%8B%E7%8C%AB%E7%A7%91%E5%8A%A8%E7%89%A9%EF%BC%8C%E4%BA%BA%E7%B1%BB%E8%AE%B0%E8%BD%BD%E4%B8%AD%EF%BC%8C%E4%BD%93%E9%87%8D%E6%9C%80%E5%A4%A7%E7%9A%84%E7%8B%AE%E5%AD%90%E5%9C%A81936%E5%B9%B4%E6%AD%BB%E5%9C%A8%E4%BA%86%E5%8D%97%E9%9D%9E&prompt_lang=zh&speed_factor=1.0 (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))


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

1 Replies

错误显示软件无法连接到本地 GPT-SoVITS 服务(127.0.0.1:9880)。这表明您选择了 GPT-SoVITS 作为配音渠道,但该服务未在您的计算机上运行。

请按以下步骤解决:

  1. 启动 GPT-SoVITS 服务:您需要先单独启动 GPT-SoVITS 项目。请确保其服务已在 127.0.0.19880 端口上成功运行。
  2. 验证服务状态:打开浏览器,访问 http://127.0.0.1:9880。如果页面无法打开或显示错误,则证明 GPT-SoVITS 服务未正确启动。
  3. 临时解决方案:如果您暂时无法启动 GPT-SoVITS,请在 pyVideoTrans 的“TTS配音设置”菜单中,将“配音渠道”切换为其他可用的选项,例如“Edge-TTS(免费)”。

请先确保 GPT-SoVITS 本地服务已启动并正常运行。

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