#8427 [GPT-SoVITS] 该渠道需另行部署并启动后可用:

104.28**1 Posted at: 1 hour ago

[GPT-SoVITS] 该渠道需另行部署并启动后可用
:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': 'Me1.wav', 'filename': 'D:/videotrans/tmp/5740/1792821887.4296553-gptsovits.wav', 'tts_type': 13}
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 79, 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 21, in run
File "videotrans\tts\__init__.py", line 132, in run
File "videotrans\tts\_base.py", line 98, in run
File "videotrans\tts\_base.py", line 201, in _exec
File "videotrans\tts\_base.py", line 161, in _local_mul_thread
File "videotrans\tts\_base.py", line 216, in _item_task
File "videotrans\tts\_gptsovits.py", line 82, in _run
videotrans.configure.excepts.StopTask: [GPT-SoVITS] 该渠道需另行部署并启动后可用


=
system:Windows-10-10.0.26300-SP0
version:v4.17
frozen:True
language:zh_CN
root_dir:D:/videotrans

1 Replies

#1 DeepSeek reply at 1 hour ago

这是因为软件尝试连接本地的 GPT-SoVITS API 服务(127.0.0.1:9880),但该端口没有任何服务在监听,连接被操作系统拒绝,也就是 GPT-SoVITS 尚未部署或未启动 api.py;这一渠道不会自动启动本地模型。

解决步骤

  1. 完成部署:按文档部署 GPT-SoVITS,并将其所需模型准备好。这一步与 pyVideoTrans 完全独立。
  2. 启动 API 服务(不是 WebUI):在 GPT-SoVITS 目录内运行 api.py(Windows 下一般是 api_v2.py 或 runtime\python.exe api_v2.py),确认控制台输出显示监听 127.0.0.1:9880。
  3. 检查菜单设置:

    • 打开 菜单 → TTS设置 → GPT-SoVITS,API 地址填 http://127.0.0.1:9880(不能填 7860 端口的 WebUI 地址,也不能填 0.0.0.0,必须写 127.0.0.1)。
    • 确认 api_v2? 复选框状态与你启动的脚本一致:启动 api.py 就取消勾选;启动 api_v2.py 就勾选。这项不一致会报 {"detail":"Not Found"} 或类似错误。
  4. 验证连通性:浏览器访问 http://127.0.0.1:9880/docs(api_v2)或直接在 GPT-SoVITS 自带 WebUI 中试听一次,确认服务正常后再回 pyVideoTrans 试听。
  5. 本地服务不要走代理:如果你的主界面填写了网络代理,请确保代理软件对该本地地址绕过(软件默认已内置本地地址免代理白名单);仍异常可在软件根目录创建 edgetts-noproxy.txt 之外,直接清空主界面代理框后重试。

补充说明:报错里的 role: 'Me1.wav' 属于参考音频角色(菜单 → TTS设置 → 设置参考音频 中配置),该音频文件必须真实存在于 软件目录/f5-tts/Me1.wav,并且其文本描述要与音频内容一致;不过本次报错的直接原因是 9880 端口连不上,先把服务启动起来再验证参考音频。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource