#6016 配音阶段出错 [Index-TTS(本地API)] 配音全部失败 Value: 'Same as the voice reference' (type: <class 'str'>) is not in the list of choice

61.178* Posted at: 11 hours ago

配音阶段出错 [Index-TTS(本地API)] 配音全部失败 Value: 'Same as the voice reference' (type: ) is not in the list of choices: ['与音色参考音频相同', '使用情感参考音频', '使用情感向量控制']
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 154, in process_task

File "videotrans\task\dubbing.py", line 51, in dubbing

File "videotrans\task\dubbing.py", line 204, in _tts

File "videotrans\tts\__init__.py", line 207, in run

File "videotrans\tts\_base.py", line 155, in run

videotrans.configure.excepts.DubbingSrtError: 配音全部失败 Value: 'Same as the voice reference' (type: ) is not in the list of choices: ['与音色参考音频相同', '使用情感参考音频', '使用情感向量控制']
cfg=TaskCfgTTS(uuid='bcfe8fcd0b', name='E:/配音实验/实验字幕.srt', dirname='E:/配音实验', noextname='实验字幕', basename='实验字幕.srt', ext='srt', target_dir='E:/AItool/win-pyvideotrans-v4.06-0720_20260720_104420/output/tts', cache_folder='E:/AItool/win-pyvideotrans-v4.06-0720_20260720_104420/tmp/32792/bcfe8fcd0b', is_cuda=True, source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code='zh-cn', target_sub='E:/配音实验/实验字幕.srt', target_wav='E:/AItool/win-pyvideotrans-v4.06-0720_20260720_104420/output/tts/实验字幕.wav', target_wav_output=None, tts_type=11, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='nverguo.wav', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=False)


=
system:Windows-10-10.0.26200-SP0
version:v4.06
frozen:True
language:zh
root_dir:E:/AItool/win-pyvideotrans-v4.06-0720_20260720_104420

1 Replies

这是 Index-TTS 开源库内部多语言界面翻译不一致导致的校验错误 —— pyVideoTrans 发送的英文选项 Same as the voice reference 与 Index-TTS 的 WebUI 下拉列表中的中文选项 与音色参考音频相同 不匹配。

解决方案

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