#5055 TaskCfg(cache_folder='D:/8_Tools/trans/tmp/29200/78cc4cfbe6', target_dir='F:/1_VideoBuffer/73_ASIC_flow/ASICflow/complet

36.141* Posted at: 16 hours ago

配音阶段出错 [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\c
......
t
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\trans_create.py", line 672, in dubbing
File "videotrans\task\trans_create.py", line 973, in _tts
File "videotrans\tts\__init__.py", line 359, in run
File "videotrans\tts\_base.py", line 134, in run
File "videotrans\tts\_f5tts.py", line 53, in _exec
File "videotrans\tts\_base.py", line 203, in _local_mul_thread
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='D:/8_Tools/trans/tmp/29200/78cc4cfbe6', target_dir='F:/1_VideoBuffer/73_ASIC_flow/ASICflow/complete-digital-ic-design-flow-from-concept-to-silicon/7-trans/【卡卡】018 Lab 3.1-mp4', remove_noise=True, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='F:/1_VideoBuffer/73_ASIC_flow/ASICflow/complete-digital-ic-design-flow-from-concept-to-silicon/7-trans/【卡卡】018 Lab 3.1-mp4/en.srt', target_sub='F:/1_VideoBuffer/73_ASIC_flow/ASICflow/complete-digital-ic-design-flow-from-concept-to-silicon/7-trans/【卡卡】018 Lab 3.1-mp4/zh-cn.srt', source_wav='D:/8_Tools/trans/tmp/29200/78cc4cfbe6/remove_noise.wav', source_wav_output='F:/1_VideoBuffer/73_ASIC_flow/ASICflow/complete-digital-ic-design-flow-from-concept-to-silicon/7-trans/【卡卡】018 Lab 3.1-mp4/en.m4a', target_wav='D:/8_Tools/trans/tmp/29200/78cc4cfbe6/target.wav', target_wav_output='F:/1_VideoBuffer/73_ASIC_flow/ASICflow/complete-digital-ic-design-flow-from-concept-to-silicon/7-trans/【卡卡】018 Lab 3.1-mp4/zh-cn.m4a', subtitles='', novoice_mp4='D:/8_Tools/trans/tmp/29200/78cc4cfbe6/novoice.mp4', noextname='【卡卡】018 Lab 3.1', shibie_audio=None, targetdir_mp4='F:/1_VideoBuffer/73_ASIC_flow/ASICflow/complete-digital-ic-design-flow-from-concept-to-silicon/7-trans/【卡卡】018 Lab 3.1-mp4/【卡卡】018 Lab 3.1.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+3%', voice_role='san_use.wav', copysrt_rawvideo=False, clear_cache=True, translate_type=10, tts_type=10, recogn_type=0, model_name='large-v3-turbo', voice_autorate=True, video_autorate=False, cuda=True, name='F:/1_VideoBuffer/73_ASIC_flow/ASICflow/complete-digital-ic-design-flow-from-concept-to-silicon/7-raw/【卡卡】018 Lab 3.1.mp4', basename='【卡卡】018 Lab 3.1.mp4', ext='mp4', dirname='F:/1_VideoBuffer/73_ASIC_flow/ASICflow/complete-digital-ic-design-flow-from-concept-to-silicon/7-raw', shound_del_name=None, uuid='78cc4cfbe6', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=1, only_out_mp4=True, fix_punc=True, recogn2pass=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.96
frozen:True
language:zh
root_dir:D:/8_Tools/trans

1 Replies

该错误是因为 pyVideoTrans 无法连接到你本机的 Index-TTS 服务(本地API)。软件尝试通过 HTTP 连接到 http://127.0.0.1:7860,但目标计算机拒绝连接,说明该服务没有启动或地址/端口配置不正确。

解决方法:

  1. 启动 Index-TTS 服务:确保你已经在本地正确部署并运行了 Index-TTS 的 Web UI 或 API 服务。
  2. 检查软件中的 API 地址:打开 pyVideoTrans,点击顶部菜单 “菜单” → “TTS设置” → “F5-TTS”,检查 URL 是否与你的服务地址一致(默认 http://127.0.0.1:7860,如果服务使用了其他端口,请相应修改)。
  3. 检查参考音频:你使用的角色 san_use.wav 必须存放在软件根目录下的 f5-tts/ 文件夹内(注意:GPT-SoVITS 的参考音频需放在 GPT-SoVITS 根目录,但 Index-TTS 属于 F5-TTS 系列,参考音频放在本软件 f5-tts/ 下)。请确认该文件存在且为 3-10 秒的 WAV 格式。
  4. 确认服务保持运行:启动 Index-TTS 服务后,不要关闭服务窗口,保持它在后台运行。

如果问题依旧,请提供 logs/ 目录下的最新日志文件(底部 30 行)以便进一步分析。

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. Dondate: ko-fi.com/jianchang512

Related resource