#5568 RuntimeError: {'message': 'tts failed', 'Exception': 'wav/JudgePort_0.wav not exists'}

60.248* Posted at: 1 hour ago

{'message': 'tts failed', 'Exception': 'wav/JudgePort_0.wav not exists'}:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 370, in run
File "videotrans\tts\_base.py", line 181, in run
RuntimeError: {'message': 'tts failed', 'Exception': 'wav/JudgePort_0.wav not exists'}


=
system:Windows-10-10.0.28000-SP0
version:v3.98
frozen:True
language:zh
root_dir:F:/app/win-pyvideotrans-v3.98-0410

1 Replies

wav/JudgePort_0.wav not exists 错误表明在配音阶段,TTS 引擎未成功生成目标音频文件,或该文件路径不正确。常见于以下场景:

  1. 使用了原音色克隆(clone 角色),但临时目录下的参考音频未被正确截取或保存。若视频名称或路径包含中文、空格、特殊符号,可能导致 FFmpeg 截取音频失败。
  2. 单视频交互模式中,在配音编辑窗口修改了角色或重新配音后,新生成的音频文件未能覆盖旧路径。
  3. 磁盘空间不足杀毒软件 误删了临时文件。

解决办法

  1. 清理缓存并重试:在主界面勾选 “清理已生成”,然后重新启动任务。
  2. 使用纯英文路径:将视频文件移动到一个路径不含中文、空格及特殊符号的目录(如 D:\test\video.mp4),然后重新选择并执行。
  3. 若为 clone 角色

    • 确保勾选了 “设置更多参数 → 分离人声背景声”,以提高参考音频质量。
    • 检查高级选项 → 语音识别参数 → 最短语音持续毫秒 设为 3000~4000,最长语音持续秒数 设为 6~10。
  4. 检查日志完整上下文:请提供 logs/ 目录下最新的 .log 文件底部约 30 行内容,或复制更完整的错误堆栈(包括 ListenVoice.py 前后的日志),以便进一步分析。
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