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

23.165* Posted at: 2 hours ago 👁11

连接被拒绝,请确保本地服务已启动并正在运行:
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=hello%2C+my+dear+friend.+i+hope+your+every+day+is+beautiful+and+enjoyable%21&text_lang=en&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.03 (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=hello%2C+my+dear+friend.+i+hope+your+every+day+is+beautiful+and+enjoyable%21&text_lang=en&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.03 (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 或类似的本地语音克隆服务进行配音,但该服务没有启动。

核心解决方法:启动您的本地 TTS 服务。

请按以下步骤操作:

  1. 确认并启动服务:

    • 根据您使用的具体语音克隆工具(如 GPT-SoVITS、F5-TTS、CosyVoice 等),启动其对应的本地 Web 服务。
    • 确保服务启动后监听的 IP 地址端口 与 pyVideoTrans 中的设置一致。默认通常是 http://127.0.0.1:9880
  2. 在 pyVideoTrans 中检查设置:

    • 在主界面第 4 行“配音”处,确认您选择的角色是来自“Clone”或“GPT-SoVITS”等本地服务分类。
    • 点击菜单栏 工具/选项 -> 配音设置
    • 找到“GPT-SoVITS”或您所用服务的配置项,检查其 API地址 是否正确(例如 http://127.0.0.1:9880)。
  3. 测试连接:

    • 在确保本地服务已运行且设置正确后,返回主界面。
    • 在“配音”角色列表中选中一个角色,点击旁边的 “试听” 按钮。如果试听成功,则连接正常。

如果问题依旧:

  • 请检查您的本地 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