#3153 TaskCfg(cache_folder='D:/LuPing/jiaji/win-pyvideotrans-v3.96-24/tmp/27564/5ae4292765', target_dir='D:/LuPing/jiaji/2月6日/

36.155* Posted at: 22 hours ago 👁14

配音阶段出错 [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 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 (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\task\job.py", line 214, in run
File "videotrans\task\trans_create.py", line 672, in dubbing
File "videotrans\task\trans_create.py", line 945, in _tts
File "videotrans\tts\__init__.py", line 337, in run
File "videotrans\tts\_base.py", line 187, in run
File "videotrans\tts\_base.py", line 203, in _local_mul_thread
File "videotrans\tts\_gptsovits.py", line 98, in _item_task
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] 由于目标计算机积极拒绝,无法连接。'))
TaskCfg(cache_folder='D:/LuPing/jiaji/win-pyvideotrans-v3.96-24/tmp/27564/5ae4292765', target_dir='D:/LuPing/jiaji/2月6日/_video_out/2月6日-mp4', remove_noise=False, is_separate=False, detect_language='zh-cn', subtitle_language=None, source_language='简体中文', target_language='英语', source_language_code='zh-cn', target_language_code='en', source_sub='D:/LuPing/jiaji/2月6日/_video_out/2月6日-mp4/zh-cn.srt', target_sub='D:/LuPing/jiaji/2月6日/_video_out/2月6日-mp4/en.srt', source_wav='D:/LuPing/jiaji/win-pyvideotrans-v3.96-24/tmp/27564/5ae4292765/zh-cn.wav', source_wav_output='D:/LuPing/jiaji/2月6日/_video_out/2月6日-mp4/zh-cn.m4a', target_wav='D:/LuPing/jiaji/win-pyvideotrans-v3.96-24/tmp/27564/5ae4292765/target.wav', target_wav_output='D:/LuPing/jiaji/2月6日/_video_out/2月6日-mp4/en.m4a', subtitles='', novoice_mp4='D:/LuPing/jiaji/win-pyvideotrans-v3.96-24/tmp/27564/5ae4292765/novoice.mp4', noextname='2月6日', shibie_audio=None, targetdir_mp4='D:/LuPing/jiaji/2月6日/_video_out/2月6日-mp4/2月6日.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=3, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='2.wav', copysrt_rawvideo=False, clear_cache=False, translate_type=0, tts_type=8, recogn_type=3, model_name='paraformer-zh', voice_autorate=False, video_autorate=True, cuda=True, name='D:/LuPing/jiaji/2月6日/2月6日.mp4', basename='2月6日.mp4', ext='mp4', dirname='D:/LuPing/jiaji/2月6日', shound_del_name=None, uuid='5ae4292765', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=True)


=
system:Windows-10-10.0.26200-SP0
version:v3.96
frozen:True
language:zh
root_dir:D:/LuPing/jiaji/win-pyvideotrans-v3.96-24

1 Replies

这是由于 GPT-SoVITS 本地服务未启动或 API 地址配置错误导致的。软件无法连接到 http://127.0.0.1:9880 的 TTS 服务。

  1. 启动 GPT-SoVITS 服务:确保你已正确部署 GPT-SoVITS 项目,并在命令行中启动了其 API 服务。服务启动后,应能看到一个运行中的终端窗口,并显示监听地址(通常是 127.0.0.1:9880)。
  2. 验证服务状态:打开浏览器,访问 http://127.0.0.1:9880/docshttp://127.0.0.1:9880,检查服务是否正常响应。
  3. 检查 pyVideoTrans 配置:在 pyVideoTrans 的“配音设置”中,选择“GPT-SoVITS(本地)”,确认“API地址”是否为 http://127.0.0.1:9880(注意是 http 而非 https)。
  4. 检查防火墙:确保 Windows 防火墙没有阻止 GPT-SoVITS 服务(端口 9880)的本地连接。
  5. 参考文档:如果你尚未部署 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.

Related resource