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

36.112**0 Posted at: 1 hour ago

Value: 'Same as the voice reference' (type: ) is not in the list of choices: ['与音色参考音频相同', '使用情感参考音频', '使用情感向量控制']:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': 'zh_female_cn.wav', 'filename': 'E:/A4.11/tmp/47168/1787995107.706009-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.11
frozen:True
language:zh
root_dir:E:/A4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

这是本地部署的 Index-TTS 开源项目内部的界面语言校验 Bug。pyVideoTrans 向 Index-TTS 的 WebUI 接口发送参数 Same as the voice reference,但该开源项目当前的界面下拉框中只有中文选项(与音色参考音频相同 等),未包含对应的英文值,导致参数校验失败。

解决办法

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

之后重新在 pyVideoTrans 中执行配音即可。

若无法自行修改或查找该文件,可让 AI 帮你修改 WebUI 源码,或在 Index-TTS 的 webui.py 中搜索“与音色参考音频相同”并替换为对应英文。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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