点击查看 Edge-TTS 配音渠道无法使用的解决办法!!!

#1928 TaskCfg(cache_folder='H:/win-pyvideotrans-3.89/tmp/44388/8c4c295094', target_dir='h:/win-pyvideotrans-3.89/output/tts',

216.167* Posted at: 10 hours ago 👁7

配音阶段出错:[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?text=see+you+next+time.&text_lang=en&ref_audio_path=1.wav&prompt_text=folks+hold+onto+your+seats+because+the+49ers+are+putting+on+a+clinic+now+they%27re+lining+up+again+&prompt_lang=en&speed_factor=1.0 (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 224, in run
File "videotrans\task\_dubbing.py", line 48, in dubbing
File "videotrans\task\_dubbing.py", line 219, in _tts
File "videotrans\tts\__init__.py", line 291, in run
File "videotrans\tts\_base.py", line 188, in run
File "videotrans\tts\_gptsovits.py", line 112, in _item_task
File "videotrans\tts\_gptsovits.py", line 89, in _run
File "requests\api.py", line 73, in get
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?text=see+you+next+time.&text_lang=en&ref_audio_path=1.wav&prompt_text=folks+hold+onto+your+seats+because+the+49ers+are+putting+on+a+clinic+now+they%27re+lining+up+again+&prompt_lang=en&speed_factor=1.0 (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

TaskCfg(cache_folder='H:/win-pyvideotrans-3.89/tmp/44388/8c4c295094', target_dir='h:/win-pyvideotrans-3.89/output/tts', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code='en', source_sub=None, target_sub='H:/win-pyvideotrans-3.89/tmp/44388/20251210-193239.srt', source_wav=None, source_wav_output=None, target_wav='h:/win-pyvideotrans-3.89/output/tts/20251210-193239.wav', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='20251210-193239', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='1.wav', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=10, recogn_type=None, model_name=None, split_type=0, voice_autorate=True, video_autorate=False, cuda=False, name='H:/win-pyvideotrans-3.89/tmp/44388/20251210-193239.srt', basename='20251210-193239.srt', ext='srt', dirname='H:/win-pyvideotrans-3.89/tmp/44388', shound_del_name=None, uuid='8c4c295094', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.89
frozen:True
language:zh
root_dir:H:/win-pyvideotrans-3.89

1 Replies

错误显示无法连接到本地端口 127.0.0.1:9880,这是 GPT-SoVITS 语音克隆服务的默认端口。问题在于您选择了 GPT-SoVITS 进行配音,但本地并未启动该服务。

解决方案:

  1. 确认服务状态:您需要先在本机部署并启动 GPT-SoVITS 服务。请确保其正在运行,并且监听端口为 9880
  2. 修改配音方案(临时解决)

    • 在软件主界面,将 第4行“配音” 的渠道从 GPT-SoVITS 切换到其他可用选项,例如 Edge-TTS(免费)或您已配置好的其他 TTS 服务。
  3. 正确使用 GPT-SoVITS

    • 如果您确实需要使用 GPT-SoVITS,请先启动其服务。通常启动命令类似 python api.py,成功后会显示类似 Running on http://127.0.0.1:9880 的提示。
    • 启动服务后,返回 pyVideoTrans,在 菜单栏 -> 设置 -> GPT-SoVITS 中,确认 “服务地址” 填写正确(默认应为 http://127.0.0.1:9880)。
    • 然后重新选择 GPT-SoVITS 角色进行配音。

总结:当前错误是因为软件试图连接一个未启动的本地服务。请先启动 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.

Donate: https://ko-fi.com/jianchang512

Trending Questions