#3671 RuntimeError: {'message': 'prompt_lang: zh。 is not supported in version v2'}

123.52* Posted at: 1 day ago 👁22

{'message': 'prompt_lang: zh。 is not supported in version v2'}:
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': 'prompt_lang: zh。 is not supported in version v2'}


=
system:Windows-10-10.0.28000-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/win-pyvideotrans-v3.98-312

1 Replies

这是由于使用了不支持的语言代码格式的 F5-TTS v2 版本导致的。

  1. 检查并更新你的 F5-TTS 服务到最新版本。F5-TTS v2 版本可能不支持 zh。 这样的语言代码格式。
  2. 在 pyVideoTrans 中配置 F5-TTS 时,确保 API 地址指向正确的服务版本。如果问题依旧,请尝试回退到 F5-TTS v1 版本。

请查阅相关文档:

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