#4788 TaskCfgVTT(is_cuda=True, uuid='b51b6c7647', cache_folder='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/19904/b51b6c7647', tar

183.14* Posted at: 5 hours ago

配音阶段出错 [Index TTS(本地)] 配音全部失败 None
Traceback (most recent call last):
File "videotrans\task\job.py", line 213, in run
File "videotrans\task\trans_create.py", line 735, in dubbing
File "videotrans\task\trans_create.py", line 1048, in _tts
File "videotrans\tts\__init__.py", line 421, in run
File "videotrans\tts\_base.py", line 195, in run
RuntimeError: 配音全部失败 None
TaskCfgVTT(is_cuda=True, uuid='b51b6c7647', cache_folder='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/19904/b51b6c7647', target_dir='K:/MACHI/____Video/01/_video_out/5. English_UE_05_PlaceActor-mp4', source_language='英语', source_language_code='en', source_sub='K:/MACHI/____Video/01/_video_out/5. English_UE_05_PlaceActor-mp4/en.srt', source_wav='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/19904/b51b6c7647/en.wav', source_wav_output='K:/MACHI/____Video/01/_video_out/5. English_UE_05_PlaceActor-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='K:/MACHI/____Video/01/_video_out/5. English_UE_05_PlaceActor-mp4/zh-cn.srt', target_wav='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/19904/b51b6c7647/target.wav', target_wav_output='K:/MACHI/____Video/01/_video_out/5. English_UE_05_PlaceActor-mp4/zh-cn.m4a', name='K:/MACHI/____Video/01/剩余/5. English_UE_05_PlaceActor.mp4', noextname='5. English_UE_05_PlaceActor', basename='5. English_UE_05_PlaceActor.mp4', ext='mp4', dirname='K:/MACHI/____Video/01/剩余', shound_del_name=None, translate_type=4, tts_type=11, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Sound_005_90.wav', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=1, fix_punc=True, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='K:/MACHI/____Video/01/_video_out/5. English_UE_05_PlaceActor-mp4/5. English_UE_05_PlaceActor.mp4', novoice_mp4='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/19904/b51b6c7647/novoice.mp4', is_separate=False, embed_bgm=False, instrument=None, vocal='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/19904/b51b6c7647/vocal.wav', back_audio='', clear_cache=False, background_music=None, subtitle_type=3, only_out_mp4=False, recogn2pass=False, output_srt=2, copysrt_rawvideo=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:zh
root_dir:K:/MACHI/win-pyvideotrans-v3.99-428

1 Replies

Index-TTS 配音全部失败,最常见原因是参考音频文件未正确放置或本地 API 服务未运行。从你的配置看,voice_role 设为 Sound_005_90.wav,但软件会将此文件放置在根目录下的 f5-tts/ 文件夹中(此目录也用于 Index-TTS)。

请按以下顺序排查:

  1. 确认参考音频文件:检查软件根目录下是否存在 f5-tts/ 文件夹,并将 Sound_005_90.wav 放入其中。确保该文件为 .wav 格式,时长在 3-10 秒之间。
  2. 确认 Index-TTS 服务已启动:独立部署的 Index-TTS API 服务(如 http://127.0.0.1:7860)必须保持运行,且防火墙未阻断连接。
  3. 检查服务地址配置:在 菜单 → TTS设置 → F5-TTS(同时用于 Index-TTS) 中,确认 API 地址正确(默认 http://127.0.0.1:7860)。
  4. 若报错包含 “Same as the voice reference”:请打开 index-tts 项目的 webui.py,将 i18n("与音色参考音频相同") 替换为 Same as the voice reference

如果以上均无误,请提供 logs/ 目录下对应日期的日志文件底部更多报错信息以便进一步定位。

请查阅相关文档:

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