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

106.47**2 Posted at: 4 hours ago

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

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
......
计算机积极拒绝,无法连接。'))

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\task\only_one.py", line 107, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 233, in run
File "videotrans\tts\_base.py", line 103, in run
File "videotrans\tts\_base.py", line 206, in _exec
File "videotrans\tts\_base.py", line 166, in _local_mul_thread
File "videotrans\tts\_base.py", line 218, in _item_task
File "videotrans\tts\_gptsovits.py", line 82, in _run
videotrans.configure.excepts.StopTask: [GPT-SoVITS] 该渠道需另行部署并启动后可用

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/TASTIEST Smoky Chipotle Chicken Wraps🍗🌯🍍 ONLY 400 Calories 36g Protein! [YxVxGms6_tI].webm,
输出结果保存到文件夹: D:/TASTIEST Smoky Chipotle Chicken Wraps🍗🌯🍍 ONLY 400 Calories 36g Protein! [YxVxGms6_tI]-webm,
临时文件夹: D:/fanyi/tmp/19116/ed185e28b9
未选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:GPT-SoVITS(本地API), 角色:jala.wav, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: 嵌入软字幕


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

1 Replies

#1 DeepSeek reply at 4 hours ago

GPT-SoVITS 为本地自行部署渠道,报错 ConnectionRefusedError: [WinError 10061] 明确表示软件无法连接到 127.0.0.1:9880,即 GPT-SoVITS 的 API 服务没有启动,或地址端口填写有误。

请按以下步骤排查:

  1. 确认 GPT-SoVITS 是否已启动:在其项目目录下运行 api.py(注意不是 webui.py),启动后观察终端是否显示监听端口 9880
  2. 检查软件中填入的 API 地址:菜单 → 设置 → TTS设置 → GPT-SoVITS,地址必须为 http://127.0.0.1:9880,不要填写 WebUI 的 7860 端口。
  3. 确认 API 模式匹配:若你启动的是 api.py,软件中不要勾选 api_v2?;若启动的是 api_v2.py,则必须勾选。两者不一致会报 {"detail":"Not Found"} 或连接类错误。
  4. 若启动后依然连接失败,检查防火墙是否拦截了 9880 端口,或更换为 127.0.0.1 而不是 0.0.0.0
  5. 确保使用的角色音频 jala.wav 已放入 GPT-SoVITS 根目录(不要放在 f5-tts 文件夹内)。

请查阅相关文档:

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