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

91.243* Posted at: 3 hours ago 👁9

程序内部错误: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

1 Replies

这是由于 F5-TTS API 服务的版本或参数不兼容导致的。

解决方案:

  1. 确保你部署的 F5-TTS 服务是最新版本,并且其 API 接口支持 randomize_seed 参数。
  2. 如果更新 F5-TTS 服务后问题依旧,请尝试在 pyVideoTrans 的“高级选项”中,将 F5-TTS 的 API 地址从 http://127.0.0.1:7860/ 修改为 http://127.0.0.1:7860/apihttp://127.0.0.1:7860/api/v1(具体取决于你的 F5-TTS 部署方式)。
  3. 如果上述方法无效,请暂时切换到其他配音渠道(如 Edge-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