#5595 [GPT-SoVITS] 该渠道需另行部署并启动后可用[https://pyvideotrans.com/gptsovits]Traceback (most recent call last): File "urllib3\connect

65.49* Posted at: 7 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\task\only_one.py", line 86, in run
File "videotrans\task\trans_create.py", line 667, in dubbing
File "videotrans\task\trans_create.py", line 990, in _tts
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]

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/GHIN/A-PLAN/ZOO.mp4,
输出结果保存到文件夹: D:/GHIN/A-PLAN/finish/ZOO-mp4,
临时文件夹: D:/AI/tmp/14560/a49e872d8a
已选 清理已存在
未选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:腾讯翻译,原始语言:简体中文,目标语言:英语, 未选 发送完整字幕
配音渠道:GPT-SoVITS(本地API), 角色:clone, 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: 嵌入软字幕
已选 仅输出mp4
代理地址:


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

1 Replies

错误原因:pyVideoTrans 尝试连接 GPT-SoVITS 的 API 服务,但目标计算机(127.0.0.1:9880)拒绝了连接 – 说明 GPT-SoVITS 服务未启动或配置的 API 地址/端口不正确。

解决方案:

  1. 确认 GPT-SoVITS 已部署并启动:您需要先在本地部署 GPT-SoVITS,然后启动它的 API 服务(api.pyapi_v2.py)。启动后会在终端看到类似 Running on http://127.0.0.1:9880 的提示。
  2. 检查 pyVideoTrans 中的 API 地址设置:打开软件主菜单 TTS设置 → GPT-SoVITS,确保填写的 API 地址正确,默认应为 http://127.0.0.1:9880
  3. 确认 API 版本匹配:如果您启动的是 api_v2.py,则需要在同一设置面板中勾选 api_v2? 选项;如果启动的是 api.py,则不要勾选该项。版本不匹配会导致 {"detail":"Not Found"} 报错。
  4. 检查端口占用:确保 9880 端口未被其他程序占用,且防火墙未阻止本地回环连接。
  5. 参考音频路径:GPT-SoVITS 的参考音频(用于克隆)需存放在 GPT-SoVITS 软件根目录 下,而非 pyVideoTrans 的 f5-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. Dondate: ko-fi.com/jianchang512

Related resource