#3691 F5TTS已更新至最新,但是仍然报错:TypeError: Parameter `randomize_seed` is not a valid key-word argument. Please click on 'view API' in

43.239* Posted at: 1 hour ago 👁6

程序内部错误:Parameter randomize_seed 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 358, in run
File "videotrans\tts\_base.py", line 178, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_f5tts.py", line 321, in _run
File "videotrans\tts\_f5tts.py", line 84, in _item_task_v1
File "gradio_client\client.py", line 497, in predict
File "gradio_client\client.py", line 548, in submit
File "gradio_client\utils.py", line 1286, in construct_args
TypeError: Parameter randomize_seed 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:v3.98
frozen:True
language:zh
root_dir:D:/Program Files/win-pyvideotrans

1 Replies

这是由于 F5-TTS API 服务端的接口参数已更新,但 pyVideoTrans 客户端代码中仍在使用旧参数名 randomize_seed 导致的。

解决方案:

  1. 检查并更新 F5-TTS API 服务:确保你运行的 F5-TTS 项目是最新版本。请前往其官方 GitHub 仓库,拉取最新代码并重启 API 服务。
  2. 验证 API 参数:在浏览器中打开你的 F5-TTS WebUI 地址(例如 http://127.0.0.1:7860),点击页面底部的 “view API” 链接,查看 /tts/clone 等接口的实际有效参数列表。确认 randomize_seed 参数是否已被移除或更名(例如可能已改为 seed)。
  3. 临时降级 pyVideoTrans 版本:如果 F5-TTS 服务端已无法回退,且你急需使用,可以尝试暂时使用 pyVideoTrans 的 v3.98 之前的某个版本,但这不是推荐的长久之计。
  4. 等待 pyVideoTrans 更新适配:此问题需要 pyVideoTrans 开发者更新 _f5tts.py 文件中的代码以适配新版 F5-TTS API。请关注官方更新日志或 GitHub 仓库的提交。

请查阅相关文档:

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.

Related resource