#3399 TaskCfg(cache_folder='C:/Users/MSI/Downloads/win-pyvideotrans-v3.97/tmp/4536/e5b552af37', target_dir='C:/Users/MSI/Downl

2409:896a* Posted at: 2 hours ago 👁6

配音阶段出错 [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 307, in _run
File "gradio_client\client.py", line 189, in init
File "gradio_client\client.py", line 596, in _get_api_info
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 214, in run
File "videotrans\task\_dubbing.py", line 52, in dubbing
File "videotrans\task\_dubbing.py", line 222, in _tts
File "videotrans\tts\__init__.py", line 355, in run
File "videotrans\tts\_base.py", line 136, in run
File "videotrans\tts\_f5tts.py", line 53, in _exec
File "videotrans\tts\_base.py", line 230, in _local_mul_thread
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "concurrent\futures\thread.py", line 58, in run
File "videotrans\tts\_f5tts.py", line 325, 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 313, in _run
videotrans.configure._except.StopRetry: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
TaskCfg(cache_folder='C:/Users/MSI/Downloads/win-pyvideotrans-v3.97/tmp/4536/e5b552af37', target_dir='C:/Users/MSI/Downloads/win-pyvideotrans-v3.97/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='zh-cn', source_sub=None, target_sub='C:/Users/MSI/Downloads/win-pyvideotrans-v3.97/1-1. Introduction.srt', source_wav=None, source_wav_output=None, target_wav='C:/Users/MSI/Downloads/win-pyvideotrans-v3.97/output/tts/1-1. Introduction.wav', target_wav_output=None, subtitles='', novoice_mp4=None, noextname='1-1. Introduction', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+2%', pitch='+0Hz', voice_rate='+0%', voice_role='bb.wav', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=10, recogn_type=None, model_name=None, voice_autorate=True, video_autorate=False, is_cuda=True, name='C:/Users/MSI/Downloads/win-pyvideotrans-v3.97/1-1. Introduction.srt', basename='1-1. Introduction.srt', ext='srt', dirname='C:/Users/MSI/Downloads/win-pyvideotrans-v3.97', shound_del_name=None, uuid='e5b552af37', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.97
frozen:True
language:zh
root_dir:C:/Users/MSI/Downloads/win-pyvideotrans-v3.97

1 Replies

这是由于 Index TTS (本地) 服务未启动或 API 地址配置错误,导致软件无法连接到本地 TTS 服务。

  1. 启动 Index TTS 服务:确保你已经下载并解压了 Index TTS 整合包,然后运行其启动脚本(如 run.batwebui.py),等待服务完全启动(通常会显示一个本地 URL,如 http://127.0.0.1:7860)。
  2. 检查并配置 API 地址:在 pyVideoTrans 的“配音渠道”设置中,选择“Index TTS(本地)”,确认“API地址”与 Index TTS 服务启动后显示的地址和端口完全一致(通常是 http://127.0.0.1:7860)。
  3. 验证连接:在浏览器中打开上述 API 地址,确认 Index TTS 的 Web 界面可以正常访问。
  4. 重新执行任务:确保 Index TTS 服务终端窗口保持开启状态,然后在 pyVideoTrans 中重新开始配音任务。

请查阅相关文档:

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