#8628 Parameter `emo_control_method` is not a valid key-word argument. Please click on 'view API' in the footer of the Gradio

223.81**1 Posted at: 1 hour ago

Parameter emo_control_method is not a valid key-word argument. Please click on 'view API' in the footer of the Gradio app to see usage.:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': 'Mira.wav', 'filename': 'D:/AI/win-pyvideotrans-v4.17-1028/tmp/11592/1793626077.891413-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 132, in run
File "videotrans\tts\_base.py", line 125, in run
File "videotrans\tts\_base.py", line 216, in _item_task
File "videotrans\tts\_index.py", line 40, in _run
File "videotrans\tts\_gradio.py", line 53, in _send
File "gradio_client\client.py", line 496, in predict
File "gradio_client\client.py", line 547, in submit
File "gradio_client\utils.py", line 1285, in construct_args
TypeError: Parameter emo_control_method is not a valid key-word argument. Please click on 'view API' in the footer of the Gradio app to see usage.


=
system:Windows-10-10.0.19045-SP0
version:v4.17
frozen:True
language:zh_CN
root_dir:D:/AI/win-pyvideotrans-v4.17-1028

1 Replies

#1 DeepSeek reply at 1 hour ago

这是本地部署的 Index-TTS(配音渠道 tts_type=12)的 Gradio API 接口参数签名与软件期望不一致导致的:pyVideoTrans 调用接口时传入了 emo_control_method 参数,但你当前本地运行的 Index-TTS 版本不认识这个参数,因此 gradio_client 在构造请求时直接报错。

  1. 打开你本地部署的 Index-TTS WebUI,点击页面底部 view API,查看 /gen_single(或对应接口)的参数列表,确认其中是否包含 emo_control_method。
  2. 若不含,说明你部署的 Index-TTS 版本过旧。请将本地 Index-TTS 更新到最新版本(新版已加入情感控制 emo_control_method 等参数),重启服务后重试。
  3. 更新后仍需保证 WebUI 正常启动、端口与软件中填写的 API 地址一致(如 http://127.0.0.1:7860),并在软件中重新选择一次该配音渠道。
  4. 若更新后参数仍不匹配,请提供你本地 Index-TTS 的版本号及 view API 中该接口的完整参数列表。

请查阅相关文档:

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