#2537 TaskCfg(cache_folder='G:/AI/win-videotrans-v3.86/tmp/3284/25f8e6d43e', target_dir='D:/下载/视频分享/Create Hollywood-Level Cin

209.9* Posted at: 1 day ago 👁13

配音阶段出错 [Index TTS] [WinError 10061] 由于目标计算机积极拒绝,无法连接。
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\connection.py", line 99, in handle_request
File "httpcore\_sync\connection.py", line 76, in handle_request
File "httpcore\_sync\connection.py", line 122, in _connect
File "httpcore\_backends\sync.py", line 205, in connect_tcp
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\tts\_f5tts.py", line 295, in _run
File "gradio_client\client.py", line 162, in init

self.api_url = urllib.parse.urljoin(self.src_prefixed, utils.API_URL)

File "gradio_client\client.py", line 931, in _get_config

"""

File "httpx\_api.py", line 195, in get
File "httpx\_api.py", line 109, in request
File "httpx\_client.py", line 825, in request
File "httpx\_client.py", line 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ConnectError: [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 217, in _tts
File "videotrans\tts\__init__.py", line 305, in run
File "videotrans\tts\_base.py", line 190, in run
File "videotrans\tts\_f5tts.py", line 314, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_f5tts.py", line 301, in _run
videotrans.configure._except.StopRetry: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

TaskCfg(cache_folder='G:/AI/win-videotrans-v3.86/tmp/3284/25f8e6d43e', target_dir='D:/下载/视频分享/Create Hollywood-Level Cinematic Films With VFX Using Nano Banana Pro + VideoInu', 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='zh-cn', source_sub=None, target_sub='D:/下载/视频分享/Create Hollywood-Level Cinematic Films With VFX Using Nano Banana Pro + VideoInu/Create Hollywood-Level Cinematic Films With VFX Using Nano Banana Pro + VideoInu-zh1.srt', source_wav=None, source_wav_output=None, target_wav='D:/下载/视频分享/Create Hollywood-Level Cinematic Films With VFX Using Nano Banana Pro + VideoInu/Create Hollywood-Level Cinematic Films With VFX Using Nano Banana Pro + VideoInu-zh1.wav', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='Create Hollywood-Level Cinematic Films With VFX Using Nano Banana Pro + VideoInu-zh1', 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='hollywood.wav', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=15, recogn_type=None, model_name=None, split_type=0, voice_autorate=True, video_autorate=False, cuda=False, name='D:/下载/视频分享/Create Hollywood-Level Cinematic Films With VFX Using Nano Banana Pro + VideoInu/Create Hollywood-Level Cinematic Films With VFX Using Nano Banana Pro + VideoInu-zh1.srt', basename='Create Hollywood-Level Cinematic Films With VFX Using Nano Banana Pro + VideoInu-zh1.srt', ext='srt', dirname='D:/下载/视频分享/Create Hollywood-Level Cinematic Films With VFX Using Nano Banana Pro + VideoInu', shound_del_name=None, uuid='25f8e6d43e', 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.26200-SP0
version:v3.92
frozen:True
language:zh
root_dir:G:/AI/win-videotrans-v3.86

1 Replies

该错误表明 pyVideoTrans 在尝试连接 Index TTS 的本地服务时被拒绝,通常是因为 Index TTS 服务没有启动或端口被占用。

请按以下步骤排查和解决:

  1. 确保 Index TTS 服务已启动

    • 如果你使用的是 Index TTS 的整合包,请确认你已按照其说明正确启动了服务(例如,双击了 run.batstart.bat 文件)。
    • 服务启动后,通常会显示一个命令行窗口,并输出类似 Running on local URL: http://127.0.0.1:7860 的信息。请确保这个窗口没有关闭。
  2. 检查服务地址和端口

    • pyVideoTrans 主界面,点击 “设置更多参数”
    • “网络代理” 输入框中,填入 Index TTS 服务启动时显示的地址和端口。例如,如果服务显示的是 http://127.0.0.1:7860,则在此处填入 http://127.0.0.1:7860
    • 如果服务使用了其他地址(如 http://0.0.0.0:7860)或端口,请填入对应的地址。
  3. 检查防火墙/安全软件

    • 临时关闭 Windows 防火墙或任何第三方安全软件,看是否能连接成功。如果可以,则需要在防火墙中为 Index TTS 的服务程序(或端口 7860)添加允许规则。
  4. 检查端口冲突

    • 如果 7860 端口已被其他程序占用,Index TTS 服务可能无法启动或会使用其他端口。请检查服务启动时的输出信息,确认其实际监听的端口。
    • 你也可以尝试修改 Index TTS 服务的启动参数,让其使用另一个空闲端口(如 7861),然后在 pyVideoTrans 的网络代理中相应修改。
  5. 重新启动服务

    • 关闭 Index TTS 服务窗口和 pyVideoTrans 软件。
    • 首先启动 Index TTS 服务,等待其完全启动并显示运行 URL。
    • 然后再启动 pyVideoTrans,并确保网络代理设置正确。

如果以上步骤均无法解决问题,请提供 Index 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.

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

Trending Questions