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

14.191* Posted at: 5 hours ago 👁11

Parameter instruct 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 417, in run
File "videotrans\tts\_base.py", line 181, in run
File "videotrans\tts\_base.py", line 210, in _local_mul_thread
File "videotrans\tts\_omnivoice.py", line 63, in _item_task
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 instruct 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.22631-SP0
version:v3.99
frozen:True
language:en
root_dir:F:/09_Pyvideo/win-pyvideotrans-v3.98-312

2 Replies

This error occurs because the OmniVoice-TTS service has been updated and now requires an additional mandatory parameter instruct, which is not being provided by your current pyVideoTrans version.

Solution:

  1. Download the latest version of pyVideoTrans (v3.99) from the official download page.
  2. Replace your current sp.exe with the new one, or extract the full package if you are using the patch update.
  3. Restart the software and try the OmniVoice-TTS function again.

Download Link:

Please refer to the relevant documentation:

image
https://github.com/k2-fsa/OmniVoice
The latest information on OminiVoice sources

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