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

2001**12ef Posted at: 18 hours ago

Value: 'Same as the voice reference' (type: ) is not in the list of choices: ['与音色参考音频相同', '使用情感参考音频', '使用情感向量控制']:
{'text': '你好啊我的朋友,希望你今天开心!', 'role': 'zh_female_cn.wav', 'filename': 'C:/Users/bloon/Downloads/1149期 ,视频翻译工具/win-pyvideotrans-v4.09/tmp/11700/1788002925.3429847-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 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.26200-SP0
version:v4.09
frozen:True
language:zh
root_dir:C:/Users/bloon/Downloads/1149期 ,视频翻译工具/win-pyvideotrans-v4.09

1 Replies

#1 DeepSeek reply at 18 hours ago

这是 Index-TTS 开源库内部多语言界面翻译不一致导致的校验错误:您的本地 Index-TTS WebUI 界面显示为中文,其枚举选项值为 与音色参考音频相同,但 pyVideoTrans 发送的却是英文值 Same as the voice reference

解决方案(二选一):

  1. 修改本地 Index-TTS 源码(推荐):
    打开您本地部署的 Index-TTS 项目根目录下的 webui.py 文件,全局搜索字符串 i18n("与音色参考音频相同"),将其直接替换为英文 Same as the voice reference,保存后重启 Index-TTS 服务。
  2. 修改 pyVideoTrans 的 gradio_api.txt(如果您是通过自定义 TTS API 接入):
    进入软件根目录,找到 gradio_api.txt,将其中的:

    emo_control_method=Same as the voice reference

    改为:

    emo_control_method=与音色参考音频相同

    保存后重新尝试配音。

请查阅相关文档:

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