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

5.34* Posted at: 3 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 141, 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.22621-SP0
version:v4.06
frozen:True
language:zh
root_dir:I:/AITool/video_AI/win-pyvideotrans-v3.91_20251220_225815

1 Replies

该报错是 index-tts 服务端内部的多语言翻译不一致导致的 Bug:服务端期望的是中文选项(如"与音色参考音频相同"),但软件传入了英文选项 "Same as the voice reference",导致校验失败。

解决方法:

  1. 修改 index-tts 服务端文件:找到你本地部署的 index-tts 项目根目录下的 webui.py 文件,打开后全局搜索字符串 i18n("与音色参考音频相同"),将其替换为英文:

    Same as the voice reference

    保存文件并重启 index-tts 服务即可。

  2. 临时变通:如果你无法修改 index-tts 代码,可以暂时切换到其他配音渠道(如免费的 Edge-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 via ko-fi.com

Dondate via PayPal

Related resource