#5194 videotrans.configure.excepts.DubbingSrtError: Value: 'Same as the voice reference' (type: <class 'str'>) is not in the l

60.183* Posted at: 4 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 16, in run
File "videotrans\tts\__init__.py", line 184, in run
File "videotrans\tts\_base.py", line 134, 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.02
frozen:True
language:en
root_dir:D:/AI-tool/win-videotrans

1 Replies

This error occurs because the index-tts engine's web interface has a locale mismatch: the dropdown for voice reference expects Chinese strings like "与音色参考音频相同", but the software sends the English equivalent "Same as the voice reference".

Solution:

  1. Locate the webui.py file inside your locally deployed index-tts project folder.
  2. Open it in a text editor and search for i18n("与音色参考音频相同").
  3. Replace that line with the English string: "Same as the voice reference".
  4. Save the file and restart the index-tts service.

After this, the error should no longer appear.

Please read the related documentation:

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: ko-fi.com/jianchang512

Related resource

Similar issues already exist