#5398 videotrans.configure.excepts.DubbingSrtError: Parameter `randomize_seed` is not a valid key-word argument. Please click

108.165* Posted at: 18 hours ago

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 "/Users/user/Desktop/Source/youtube/lib/pyvideotrans/videotrans/util/ListenVoice.py", line 16, in run

tts.run(

File "/Users/user/Desktop/Source/youtube/lib/pyvideotrans/videotrans/tts/__init__.py", line 189, in run

return _cls(**kwargs).run()  # type:ignore

File "/Users/user/Desktop/Source/youtube/lib/pyvideotrans/videotrans/tts/_base.py", line 133, in run

raise self.error if isinstance(self.error, Exception) else DubbingSrtError(str(self.error))

videotrans.configure.excepts.DubbingSrtError: 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:macOS-15.7.3-arm64-arm-64bit
version:v4.03
frozen:False
language:en
root_dir:/Users/user/Desktop/Source/youtube/lib/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

This error occurs because you're using a Gradio-based TTS service (likely GPT-SoVITS or F5-TTS) but the API parameters expected by pyVideoTrans do not match the service version you've deployed. The randomize_seed parameter is not recognized by the current API endpoint.

Solution:

  1. Verify the API endpoint – Make sure you're connecting to the correct API address:

    • For GPT-SoVITS: use http://127.0.0.1:9880 (the API port), not the WebUI port 7860.
    • For F5-TTS: confirm the Gradio service is running and fill in the address under Menu → TTS Settings → F5TTS (default http://127.0.0.1:7860).
  2. Check the API version – In pyVideoTrans, go to Menu → TTS Settings → GPT-SoVITS and ensure the “Enable api_v2?” checkbox matches the script you started:

    • If you launched api.py, uncheck it.
    • If you launched api_v2.py, check it.
  3. Restart both services – After fixing the settings, restart the TTS service and the pyVideoTrans task.

If the issue persists, provide the latest log files from logs/ directory for further diagnosis.

Please refer to the docs:

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