#6271 [GPT-SoVITS] 该渠道需另行部署并启动后可用[https://pyvideotrans.com/gptsovits]:

39.182* Posted at: 11 hours ago

[GPT-SoVITS] 该渠道需另行部署并启动后可用
[https://pyvideotrans.com/gptsovits]:
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 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, 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 (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\tts\_gptsovits.py", line 77, 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 677, in send
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=9880): Max retries exceeded with url: /tts (Caused by 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 "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 192, in run
File "videotrans\tts\_base.py", line 93, in run
File "videotrans\tts\_base.py", line 208, in _exec
File "videotrans\tts\_base.py", line 168, in _local_mul_thread
File "videotrans\tts\_base.py", line 220, in _item_task
File "videotrans\tts\_gptsovits.py", line 80, in _run
videotrans.configure.excepts.StopTask: [GPT-SoVITS] 该渠道需另行部署并启动后可用
[https://pyvideotrans.com/gptsovits]


=
system:Windows-10-10.0.19045-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v4.03-0626

1 Replies

这是由于 GPT-SoVITS 本地服务未启动,或 pyVideoTrans 中配置的 API 地址/端口不对,导致连接 127.0.0.1:9880 被拒绝(WinError 10061)。

解决方法

  1. 启动 GPT-SoVITS 的 API 服务(通常运行 api.py),确保其监听 9880 端口,启动后终端应显示类似 Uvicorn running on http://127.0.0.1:9880 的信息。
  2. 在 pyVideoTrans 的 菜单 -> 翻译设置/TTS设置 -> GPT-SoVITS 中,API 地址填写为 http://127.0.0.1:9880

    • 不要填 WebUI 地址(一般是 7860 端口);
    • 不要填 0.0.0.0,请改为 127.0.0.1
  3. 检查软件中是否勾选了 api_v2?,需要与你启动的 GPT-SoVITS API 版本一致。
  4. 确认本机防火墙未拦截 9880 端口。

请查阅相关文档:

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource