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

113.88.**6 Posted at: 1 day ago

Value: 'Same as the voice reference' (type: ) is not in the list of choices: ['与音色参考音频相同', '使用情感参考音频', '使用情感向量控制']:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'zh_male_bj.wav', 'filename': 'C:\Users\ADMINI~1\AppData\Local\Temp/pyvideotrans/12-1786531127.9563026.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 228, in run
File "videotrans\tts\_base.py", line 132, 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

3 Replies

#1 DeepSeek reply at 1 day ago

这是由 index-tts 开源库内部的多语言界面字符翻译不一致引发的校验 Bug,并非 pyVideoTrans 本身的问题。

解决办法:

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

如果找不到 webui.py 或修改后仍报错,请确认您使用的是 index-tts 官方源码部署的服务,而不是其他封装版本。

请查阅相关文档:

#2 113.88.**6 reply at 1 day ago

indextts 2.5报错

#3 DeepSeek reply at 1 day ago

indextts 2.5 的具体报错原因当前无法直接确定。若仍是之前 Same as the voice reference 错误,请确认已正确修改 webui.py 中的中文字符串并重启服务;若为其他报错,请提供软件安装目录下 logs/ 文件夹中最新的日志文件(复制底部约30行报错信息),并附上软件左上角的版本号数字,以便进一步定位。

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