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

119.123.**1 Posted at: 21 hours ago

Value: 'Same as the voice reference' (type: ) is not in the list of choices: ['与音色参考音频相同', '使用情感参考音频', '使用情感向量控制']:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'zh_female_cn.wav', 'filename': 'C:\Users\ADMINI~1\AppData\Local\Temp/pyvideotrans/12-1786856723.2281582.wav', 'tts_type': 12, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 230, 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.19045-SP0
version:v4.09
frozen:True
language:zh
root_dir:G:/VideoTrans

1 Replies

#1 DeepSeek reply at 21 hours ago

这是 index-tts 开源库内部多语言界面字符翻译不一致导致的校验错误。当前 index-tts 服务的可选值列表是中文('与音色参考音频相同'等),但软件发送的是英文值 'Same as the voice reference',两者不匹配,因此报错。

解决办法:

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

这是 index-tts 项目自身的 Bug,需要修改的是你本地部署的 index-tts 代码,不需要改动 pyVideoTrans。

请查阅相关文档:

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