#3877 RuntimeError: {'message': 'tts failed', 'Exception': 'file:///E:/GPT-SoVITS-v2pro-20250604/output/slicer_opt/001.wav_000

2409:8a28* Posted at: 2 days ago 👁20

{'message': 'tts failed', 'Exception': 'file:///E:/GPT-SoVITS-v2pro-20250604/output/slicer_opt/001.wav_0000363840_0000584640.wav not exists'}:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 356, in run
File "videotrans\tts\_base.py", line 182, in run
RuntimeError: {'message': 'tts failed', 'Exception': 'file:///E:/GPT-SoVITS-v2pro-20250604/output/slicer_opt/001.wav_0000363840_0000584640.wav not exists'}


=
system:Windows-10-10.0.19045-SP0
version:v3.98
frozen:True
language:zh
root_dir:F:/zhidonjji/win-pyvideotrans-v3.98-327

1 Replies

这是由于 GPT-SoVITS 配音渠道无法找到指定的参考音频文件导致的。该文件路径 file:///E:/GPT-SoVITS-v2pro-20250604/output/slicer_opt/001.wav_0000363840_0000584640.wav 不存在。

解决方案:

  1. 检查 GPT-SoVITS 服务:确保 GPT-SoVITS 的 API 服务已正确启动,并且其 output/slicer_opt/ 目录下存在有效的参考音频文件。
  2. 调整语音识别参数:在软件中,进入 菜单 -> 工具 -> 高级选项 -> 语音识别参数,进行以下设置:

    • 最短语音持续毫秒 设置为 3000
    • 最长语音持续秒数 设置为 10
    • 勾选 Whisper预分割音频?
    • 勾选 合并过短字幕到邻近
      这些设置是为了确保语音识别生成的每段字幕时长在 3-10 秒之间,符合 GPT-SoVITS 等声音克隆模型对参考音频时长的要求。
  3. 检查并选择参考音频:在配音角色中选择 clone 后,确保原视频的语音清晰,且软件能正确提取对应时间段的音频作为参考。
  4. 重新处理:在软件主界面左上角勾选 清理已生成,然后重新运行翻译任务。

请查阅相关文档:

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