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

54.168.**3 Posted at: 12 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 21, in run
File "videotrans\tts\__init__.py", line 207, 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.26100-SP0
version:v4.05
frozen:True
language:zh
root_dir:E:/pyvideotrans

1 Replies

#1 DeepSeek reply at 12 hours ago

这是 index-tts 开源库的多语言界面字符翻译不一致导致的校验 Bug:服务端返回的选项是中文(如“与音色参考音频相同”),但软件按英文值 Same as the voice reference 传入,两者不匹配。

解决方案:

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

如果不想修改服务端代码,可以考虑改用其他支持克隆的渠道(如 Qwen-TTS / OmniVoice / F5-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