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

2409:8a55* Posted at: 1 hour ago 👁5

连接被拒绝,请确保本地服务已启动并正在运行:
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=444.wav&prompt_text=Sandy+accidentally+broke+her+glass+helmet+she+frantically+ran+back+to+her+tree+house+trying+to+find+a+spare+but+the+spare+helmet+also+slipped+from+her+grasp+and+shattered&prompt_lang=en&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 284, in run
File "videotrans\tts\_base.py", line 179, in run
File "videotrans\tts\_base.py", line 208, in _local_mul_thread
File "videotrans\tts\_gptsovits.py", line 97, in _item_task
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=444.wav&prompt_text=Sandy+accidentally+broke+her+glass+helmet+she+frantically+ran+back+to+her+tree+house+trying+to+find+a+spare+but+the+spare+helmet+also+slipped+from+her+grasp+and+shattered&prompt_lang=en&speed_factor=1.0 (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))


=
system:Windows-10-10.0.22631-SP0
version:v3.92
frozen:True
language:zh
root_dir:E:/BaiduNetdiskDownload/win-pyvideotrans-v3.92

1 Replies

错误显示无法连接到 127.0.0.1:9880。这表明您选择了 GPT-SoVITS 作为配音渠道,但对应的本地服务没有启动。

解决方法:

  1. 启动 GPT-SoVITS 服务:

    • 您需要先单独启动 GPT-SoVITS 项目。通常,在 GPT-SoVITS 的目录下,运行类似 python api.py 的命令来启动服务。
    • 确保服务成功启动,并监听在 127.0.0.1:9880 端口(这是默认端口)。
  2. 在 pyVideoTrans 中配置(如果需要):

    • 如果您的 GPT-SoVITS 服务地址或端口不是默认的,需要在 pyVideoTrans 中进行设置。
    • 在 pyVideoTrans 主界面,点击 设置 -> 配音设置
    • 找到 GPT-SoVITS 相关配置项,检查并确保 API地址 与您实际启动的服务地址和端口一致(例如 http://127.0.0.1:9880)。
  3. 临时解决方案(更换配音渠道):

    • 如果您暂时无法启动 GPT-SoVITS,可以更换为其他可用的配音渠道。
    • 在主界面 第4行:配音 的下拉菜单中,选择其他渠道,例如 Edge-TTSVITS-cnenpiper-tts

核心原因: pyVideoTrans 本身不包含 GPT-SoVITS 的运行环境,它只是一个调用其 API 的客户端。您必须按照 GPT-SoVITS 项目的说明,先独立部署并启动该服务。

有用的文档链接: 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