#3224 TypeError: Parameter `randomize_seed` is not a valid key-word argument. Please click on 'view API' in the footer of the

104.129* Posted at: 10 hours ago 👁11

程序内部错误: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 17, in run
File "videotrans\tts\__init__.py", line 359, in run
File "videotrans\tts\_base.py", line 176, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_f5tts.py", line 323, in _run
File "videotrans\tts\_f5tts.py", line 86, in _item_task_v1
File "gradio_client\client.py", line 496, in predict
File "gradio_client\client.py", line 547, in submit
File "gradio_client\utils.py", line 1279, 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.96
frozen:True
language:zh
root_dir:X:/win-pyvideotrans-v3.96-22

1 Replies

这是由于您使用的 F5-TTS 服务的 API 接口版本与 pyVideoTrans 当前版本不兼容导致的。错误表明软件尝试传递一个名为 randomize_seed 的参数,但您启动的 F5-TTS 服务 API 不支持此参数。

请按以下步骤解决:

  1. 检查 F5-TTS 版本:确认您启动的 F5-TTS 服务是否为官方最新版本。旧版本的 API 接口可能缺少 randomize_seed 参数。
  2. 更新 F5-TTS:请前往 F5-TTS 官方项目仓库(如 https://github.com/Plachtaa/F5-TTS),拉取最新代码并重新部署其 API 服务。
  3. 重启服务:更新 F5-TTS 后,确保其 API 服务(通常为 http://127.0.0.1:7860)已正确启动。
  4. 验证连接:在 pyVideoTrans 的“菜单” -> “TTS设置” -> “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