#5309 videotrans.configure.excepts.DubbingSrtError: Parameter `emo_control_method` is not a valid key-word argument. Please cl

2409:8a70* Posted at: 1 day 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.:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 185, in run
File "videotrans\tts\_base.py", line 133, in run
videotrans.configure.excepts.DubbingSrtError: 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.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/pyvideo/win-pyvideotrans-v4.03-0619

1 Replies

这是由于本地部署的 TTS 服务接口(如 F5-TTS、Spark-TTS 等)不支持 emo_control_method 参数。该参数可能是软件为某些高级表情控制功能自动添加的,但您使用的服务版本未实现或不兼容此参数。

解决方案:

  1. 确认当前使用的配音渠道是本地部署的 TTS(如 F5-TTS / Spark-TTS / IndexTTS 等),并检查软件 菜单 -> TTS 设置 -> F5TTS 中填写的 API 地址是否正确。
  2. 更新本地部署的 TTS 服务:前往对应的 GitHub 仓库下载最新版本并重新部署,确保其 API 支持软件传递的所有参数。
  3. 临时规避:如果暂时无法更新服务,可在软件中换用其他配音渠道(如 Edge-TTS 或 Qwen-TTS(本地)),避免该参数问题。
  4. 修改软件参数(开发者操作):若您熟悉代码,可在 videotrans/tts/ 目录下找到对应渠道的实现文件(如 f5.pyspark.py),注释或删除 emo_control_method 相关的参数传递行。注意每次软件更新后需重新操作。

请查阅相关文档:

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