#4030 程序内部错误:Parameter `randomize_seed` is not a valid key-word argument. Please click on 'view API' in the footer of the Grad

95.85* Posted at: 7 hours ago 👁25

程序内部错误: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 392, in run
File "videotrans\tts\_base.py", line 181, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_f5tts.py", line 341, 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:A:/BaiduNetdiskDownload/py

3 Replies

这是由于 F5-TTS API 服务的版本与 pyVideoTrans 软件版本不兼容导致的。错误信息表明软件向 F5-TTS 服务发送了一个名为 randomize_seed 的参数,但该服务的最新版本可能已移除了此参数。

解决方案:

  1. 更新 F5-TTS 服务:请确保你部署的 F5-TTS 服务是最新版本。前往 F5-TTS 的官方 GitHub 仓库(例如 https://github.com/),按照其最新说明重新部署或更新 API 服务。
  2. 检查 API 地址:在 pyVideoTrans 中,确认 菜单 -> 翻译设置 -> F5-TTS 设置 中填写的 API 地址(例如 http://127.0.0.1:7860)指向的是你刚刚更新后的 F5-TTS 服务。
  3. 重启服务:更新 F5-TTS 后,请重启其 API 服务,然后重新在 pyVideoTrans 中尝试配音任务。

如果更新 F5-TTS 服务后问题依旧,可能是 pyVideoTrans 软件本身需要更新以适配新版 F5-TTS API。请关注 pyVideoTrans 的官方更新。

请查阅相关文档:

F5-TTS的最新下载地址是?

F5-TTS 的官方项目地址是:https://github.com/。请访问此链接获取最新源码和部署说明。请注意,F5-TTS 是一个需要独立部署的 TTS 服务,pyVideoTrans 通过 API 调用与其交互。部署完成后,在 pyVideoTrans 的 菜单 -> 翻译设置 -> F5-TTS 设置 中配置正确的 API 地址(例如 http://127.0.0.1:7860)。请查阅相关文档:使用F5-TTS配音

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