#6739 Value: 'Same as the voice reference' (type: <class 'str'>) is not in the list of choices: ['与音色参考音频相同', '使用情感参考音频', '使用情

2409:**:afdd Posted at: 1 hour ago

Value: 'Same as the voice reference' (type: ) is not in the list of choices: ['与音色参考音频相同', '使用情感参考音频', '使用情感向量控制']:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': 'zh_female_tw.wav', 'filename': 'D:/InstallDetails/pyVideoTrans/tmp/50676/1787104497.237019-12.wav', 'tts_type': 12}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 233, in run
File "videotrans\tts\_base.py", line 130, 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.10
frozen:True
language:zh
root_dir:D:/InstallDetails/pyVideoTrans

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 index-tts 开源库内部的多语言界面字符串翻译不一致引发的已知 Bug,并非 pyVideoTrans 自身配置错误。你本地部署的 index-tts 的选项列表仍为中文(与音色参考音频相同),而程序传入的值为英文(Same as the voice reference),导致校验失败。

解决方法:

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

替换后选项列表会变为英文,与软件传入值匹配,即可正常使用 index-tts 配音。

请查阅相关文档:

Thinking...
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 via ko-fi.com

Related resource