#4706 RuntimeError: {'message': 'tts failed', 'Exception': 'laowai.wav not exists'}

2409:8a30* Posted at: 6 hours ago

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


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:zh
root_dir:C:/Users/Administrator/ai/win-pyvideotrans-v3.99-428

1 Replies

该错误是因为使用了需要参考音频的配音渠道(如GPT-SoVITS、F5-TTS、CosyVoice等),但指定的参考音频文件 laowai.wav 未存放在正确目录。

解决方法:

  1. 检查你使用的配音渠道(通常在“配音角色”中选择了 clone 或特定角色)。
  2. 根据渠道类型,将 laowai.wav 文件移动至对应目录:

    • GPT-SoVITS:放到 GPT-SoVITS 工具的根目录下。
    • F5-TTS / CosyVoice / OmniVoice / Index-TTS / ChatterBox:放到软件根目录下的 f5-tts/ 文件夹内。
  3. 确保文件名完全一致(含 .wav 后缀,如 laowai.wav),且音频时长在 3~10秒 之间。

请查阅相关文档:

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