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

23.247* Posted at: 19 hours ago

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


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v4.03-0626

3 Replies

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

解决办法

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

请查阅相关文档:

告诉我具体换法

  1. 找到你本地部署的 index-tts 项目根目录下的 webui.py 文件。
  2. 用任意文本编辑器打开 webui.py
  3. Ctrl+F 搜索字符串 与音色参考音频相同
  4. 找到对应的代码行,类似:i18n("与音色参考音频相同")
  5. 将该行改为:Same as the voice reference(注意保留原引号格式,只替换括号内的中文内容)。
  6. 保存文件,重启 index-tts 服务即可。
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