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

23.165* Posted at: 20 hours ago 👁14

连接被拒绝,请确保本地服务已启动并正在运行:
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 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='127.0.0.1', port=9880): Max retries exceeded with url: /tts?text=%E4%BD%A0%E5%A5%BD%E5%95%8A%E6%88%91%E7%9A%84%E6%9C%8B%E5%8F%8B.&text_lang=zh&ref_audio_path=1.wav&prompt_text=%E5%BE%88%E5%A4%9A%E8%80%81%E6%9D%BF%E8%BF%98%E4%B8%8D%E7%9F%A5%E9%81%93%E6%88%91%E4%BB%ACekong%E5%85%B7%E4%BD%93%E6%98%AF%E5%81%9A%E4%BB%80%E4%B9%88%E7%9A%84%EF%BC%8C%E6%88%91%E4%BB%ACekong%E7%9A%84%E6%8A%A4%E8%82%A4%E5%93%81%E7%A0%94%E5%8F%91%E5%92%8C%E7%94%9F%E4%BA%A7%E5%B7%B2%E7%BB%8F23%E5%B9%B4%E4%BA%86&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\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 291, in run
File "videotrans\tts\_base.py", line 177, in run
File "videotrans\tts\_gptsovits.py", line 115, in _item_task
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 677, in send
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=9880): Max retries exceeded with url: /tts?text=%E4%BD%A0%E5%A5%BD%E5%95%8A%E6%88%91%E7%9A%84%E6%9C%8B%E5%8F%8B.&text_lang=zh&ref_audio_path=1.wav&prompt_text=%E5%BE%88%E5%A4%9A%E8%80%81%E6%9D%BF%E8%BF%98%E4%B8%8D%E7%9F%A5%E9%81%93%E6%88%91%E4%BB%ACekong%E5%85%B7%E4%BD%93%E6%98%AF%E5%81%9A%E4%BB%80%E4%B9%88%E7%9A%84%EF%BC%8C%E6%88%91%E4%BB%ACekong%E7%9A%84%E6%8A%A4%E8%82%A4%E5%93%81%E7%A0%94%E5%8F%91%E5%92%8C%E7%94%9F%E4%BA%A7%E5%B7%B2%E7%BB%8F23%E5%B9%B4%E4%BA%86&prompt_lang=zh&speed_factor=1.0 (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))


=
system:Windows-10-10.0.26100-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/pyvideo

1 Replies

错误信息显示软件无法连接到 127.0.0.1:9880。这是 GPT-SoVITS 语音克隆服务的默认端口。问题在于您选择了 GPT-SoVITS 作为配音角色,但该服务并未在本地启动。

请按以下步骤解决:

  1. 启动 GPT-SoVITS 服务:您需要先下载并运行 GPT-SoVITS 项目。请访问其官方 GitHub 仓库 (https://github.com/RVC-Boss/GPT-SoVITS) 获取安装和启动指南。
  2. 验证服务状态:确保 GPT-SoVITS 服务成功启动,并在 127.0.0.1:9880 端口上正常运行。您可以在浏览器中访问 http://127.0.0.1:9880/docs 来检查其 API 文档是否可用。
  3. 在 pyVideoTrans 中配置

    • 在 pyVideoTrans 主界面,点击 “设置更多参数”
    • 在弹出窗口的 “GPT-SoVITS” 区域,确保 “API地址” 正确设置为 http://127.0.0.1:9880
    • 点击 “测试连接” 按钮,确认连接成功。

临时替代方案:如果您暂时不需要语音克隆功能,可以在配音角色选择时,切换到其他可用的 TTS 服务,例如 Edge-TTSAzure TTS

如果启动 GPT-SoVITS 服务后问题依旧,请提供 D:/pyvideo/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

Similar issues already exist

Trending Questions