#3675 RuntimeError: {'message': 'tts failed', 'Exception': 'pei.wav not exists'}

89.185* Posted at: 23 hours ago 👁22

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


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/pyvideo

1 Replies

这是由于配音过程中生成的音频文件缺失导致的。

  1. 检查配音渠道的配置和连接状态。如果使用的是本地 TTS 服务(如 F5-TTS、CosyVoice、GPT-SoVITS),请确保对应的外部 API 服务已正确启动且运行正常。
  2. 检查网络连接。如果使用的是在线 TTS 服务(如 Edge-TTS),网络波动可能导致文件生成失败。可以尝试在“菜单-工具-高级选项-字幕配音调整”中,将“并发配音线程数”设为 1,并增加“配音后暂停秒数”。
  3. 检查临时文件夹权限。确保软件安装目录(D:/pyvideo)及其下的临时文件夹有完整的读写权限。
  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