#5287 videotrans.configure.excepts.DubbingSrtError: Value: 'Same as the voice reference' (type: <class 'str'>) is not in the l

23.95* Posted at: 2 days ago

Value: 'Same as the voice reference' (type: ) is not in the list of choices: ['Same as the voice referenc', '使用情感参考音频', '使用情感向量控制', '使用情感描述文本控制']:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 186, in run
File "videotrans\tts\_base.py", line 134, in run
videotrans.configure.excepts.DubbingSrtError: Value: 'Same as the voice reference' (type: ) is not in the list of choices: ['Same as the voice referenc', '使用情感参考音频', '使用情感向量控制', '使用情感描述文本控制']


=
system:Windows-10-10.0.26200-SP0
version:v4.02
frozen:True
language:zh
root_dir:E:/百度网盘下载/win-pyvideotrans-v4.02-0616

1 Replies

这是 index-tts 开源库内部多语言界面字符翻译不一致导致的校验 Bug。

解决方案

  1. 找到您本地部署的 index-tts 项目根目录下的 webui.py 文件。
  2. 全局搜索字符串 i18n("与音色参考音频相同"),将其替换为英文:Same as the voice reference,保存文件。
  3. 重启 index-tts 服务即可。

如果仍然报错,请检查 webui.py 中是否还有其他位置使用了该字符串(例如下拉选项列表),确保列表中的第一个选项拼写完全一致(包括大小写和空格)。

请查阅相关文档:

Post Your Reply