#4836 TaskCfgVTT(is_cuda=True, uuid='bf1e64be2a', cache_folder='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/300776/bf1e64be2a', ta

183.14* Posted at: 3 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='bf1e64be2a', cache_folder='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/300776/bf1e64be2a', target_dir='K:/021/_video_out/3 - Prepare the Grass for Unreal Engine 5-mp4', source_language='英语', source_language_code='en', source_sub='K:/021/_video_out/3 - Prepare the Grass for Unreal Engine 5-mp4/en.srt', source_wav='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/300776/bf1e64be2a/en.wav', source_wav_output='K:/021/_video_out/3 - Prepare the Grass for Unreal Engine 5-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='K:/021/_video_out/3 - Prepare the Grass for Unreal Engine 5-mp4/zh-cn.srt', target_wav='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/300776/bf1e64be2a/target.wav', target_wav_output='K:/021/_video_out/3 - Prepare the Grass for Unreal Engine 5-mp4/zh-cn.m4a', name='K:/021/Video/3 - Create realistic Grass in SpeedTree 10/3 - Prepare the Grass for Unreal Engine 5.mp4', noextname='3 - Prepare the Grass for Unreal Engine 5', basename='3 - Prepare the Grass for Unreal Engine 5.mp4', ext='mp4', dirname='K:/021/Video/3 - Create realistic Grass in SpeedTree 10', 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:/021/_video_out/3 - Prepare the Grass for Unreal Engine 5-mp4/3 - Prepare the Grass for Unreal Engine 5.mp4', novoice_mp4='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/300776/bf1e64be2a/novoice.mp4', is_separate=False, embed_bgm=False, instrument=None, vocal='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/300776/bf1e64be2a/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

配音全部失败是典型的参考音频文件缺失或不满足要求导致的。日志中 voice_role='Sound_005_90.wav' 表明你使用的是 Index-TTS 渠道的自定义参考音频,但软件在调用时未找到有效音频。

解决方案:

  1. 检查参考音频文件位置
    Sound_005_90.wav 文件放入软件根目录下的 f5-tts/ 文件夹中。如果该文件夹不存在,请手动创建。
    注意:Index-TTS、F5-TTS、VoxCPM-TTS 等渠道的参考音频均共用此 f5-tts/ 目录。
  2. 验证音频文件规格

    • 格式必须是 .wav,不能是其他格式(如 mp3、ogg)。
    • 时长建议在 3~10 秒 之间,过短或过长均会导致合成失败。
    • 采样率无严格限制,优先使用 16kHz 或 44.1kHz。
  3. 确认 Index-TTS API 服务正常运行
    确保外部 Index-TTS 服务(通常部署在 http://127.0.0.1:7860)已启动且终端窗口未关闭。
    如果 API 地址有变化,请到 菜单 → TTS设置 → Index-TTS 中更新正确的地址。
  4. 检查错误日志细节
    建议打开 logs/ 目录下最新的日志文件,搜索 Index-TTSSound_005_90 关键词,查看是否有更具体的错误信息(如连接超时、文件未找到、音频处理异常等)。

如果上述步骤均无误,请将日志底部约 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.

Related resource