#5225 self.api_url='http://127.0.0.1:7860'

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.
self.api_url='http://127.0.0.1:7860':
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: 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.
self.api_url='http://127.0.0.1:7860'


=
system:Windows-10-10.0.26200-SP0
version:v4.02
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/win-pyvideotrans-v4.02-0612

1 Replies

该错误的根本原因是本地部署的 TTS 后端(如 F5-TTS、Spark-TTS、Index-TTS 等)接口版本与 pyVideoTrans 依赖的参数不匹配,pyVideoTrans 向该后端提交了后端不支持的 emo_control_method 参数。

解决方案:

  1. 更新本地 TTS 后端
    请确认您使用的本地 TTS 服务(例如 F5-TTS、Spark-TTS、Index-TTS 等)是否为最新版本。前往对应项目的 GitHub 仓库或官方文档,重新拉取/更新并重启服务。
  2. 检查 API 地址配置
    在 pyVideoTrans 菜单 工具 -> 高级选项 -> TTS 设置 -> F5TTS 设置(或其他对应渠道)中,确认 api_url 填写正确(默认 http://127.0.0.1:7860)。如果服务部署在其他端口,请相应修改。
  3. 临时禁用额外参数
    若暂时无法更新后端,请检查 高级选项 -> 字幕配音调整 中是否有勾选额外参数(如“移除配音前后静音缓冲”等),尝试全部取消勾选,避免 pyVideoTrans 向后端发送不被支持的参数。
  4. 更换配音渠道
    作为备选,可暂时切换为其他兼容的配音渠道(如 Edge-TTS、Qwen-TTS 等),不影响主流程。

如果上述步骤仍无法解决,请提供 logs/ 文件夹下最新的日志文件(约 30 行错误上下文)以便进一步排查。

请查阅相关文档:

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