#3168 TaskCfg(cache_folder='C:/Users/Muhammed/Desktop/win-pyvideotrans-v3.96/tmp/35852/34caae0c1e', target_dir='M:/Tutorials/H

2a00:1d34* Posted at: 8 hours ago 👁9

ASR Error [faster-whisper (Local)] Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 259, in faster_whisper
File "faster_whisper\transcribe.py", line 586, in _batched_segments_generator
File "faster_whisper\transcribe.py", line 120, in forward
File "faster_whisper\transcribe.py", line 222, in generate_segment_batched
TypeError: generate(): incompatible function arguments. The following argument types are supported:

1. (self: ctranslate2._ext.Whisper, features: ctranslate2._ext.StorageView, prompts: Union[List[List[str]], List[List[int]]], *, asynchronous: bool = False, beam_size: int = 5, patience: float = 1, num_hypotheses: int = 1, length_penalty: float = 1, repetition_penalty: float = 1, no_repeat_ngram_size: int = 0, max_length: int = 448, return_scores: bool = False, return_logits_vocab: bool = False, return_no_speech_prob: bool = False, max_initial_timestamp_index: int = 50, suppress_blank: bool = True, suppress_tokens: Optional[List[

......
sultAsync]]

Invoked with: , 0.0697632 0.219604 0.328125 ... -0.155151 0.165771 0.605957
[cuda:0 float16 storage viewed as 4x1500x1280], [[50258, 50259, 50360, 50364], [50258, 50259, 50360, 50364], [50258, 50259, 50360, 50364], [50258, 50259, 50360, 50364]]; kwargs: beam_size=5, patience=1, length_penalty=1, max_length=448, suppress_blank=True, suppress_tokens=(1, 2, 7, 8, 9, 10, 14, 25, 26, 27, 28, 29, 31, 58, 59, 60, 61, 62, 63, 90, 91, 92, 93, 359, 503, 522, 542, 873, 893, 902, 918, 922, 931, 1350, 1853, 1982, 2460, 2627, 3246, 3253, 3268, 3536, 3846, 3961, 4183, 4667, 6585, 6647, 7273, 9061, 9383, 10428, 10929, 11938, 12033, 12331, 12562, 13793, 14157, 14635, 15265, 15618, 16553, 16604, 18362, 18956, 20075, 21675, 22520, 26130, 26161, 26435, 28279, 29464, 31650, 32302, 32470, 36865, 42863, 47425, 49870, 50254, 50258, 50359, 50360, 50361, 50362, 50363), return_scores=True, return_no_speech_prob=True, sampling_temperature='0.0', repetition_penalty=1.0, no_repeat_ngram_size=0
TaskCfg(cache_folder='C:/Users/Muhammed/Desktop/win-pyvideotrans-v3.96/tmp/35852/34caae0c1e', target_dir='M:/Tutorials/Houdini Learn Paths/Getting Started/1-) Foundations 20.5 Model, Render, Animate/_video_out/H20.5 Foundations - Model Render Animate 1 - Explore the Houdini UI-mp4', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='English', target_language='Turkish', source_language_code='en', target_language_code='tr', source_sub='M:/Tutorials/Houdini Learn Paths/Getting Started/1-) Foundations 20.5 Model, Render, Animate/_video_out/H20.5 Foundations - Model Render Animate 1 - Explore the Houdini UI-mp4/en.srt', target_sub='M:/Tutorials/Houdini Learn Paths/Getting Started/1-) Foundations 20.5 Model, Render, Animate/_video_out/H20.5 Foundations - Model Render Animate 1 - Explore the Houdini UI-mp4/tr.srt', source_wav='C:/Users/Muhammed/Desktop/win-pyvideotrans-v3.96/tmp/35852/34caae0c1e/en.wav', source_wav_output='M:/Tutorials/Houdini Learn Paths/Getting Started/1-) Foundations 20.5 Model, Render, Animate/_video_out/H20.5 Foundations - Model Render Animate 1 - Explore the Houdini UI-mp4/en.m4a', target_wav='C:/Users/Muhammed/Desktop/win-pyvideotrans-v3.96/tmp/35852/34caae0c1e/target.wav', target_wav_output='M:/Tutorials/Houdini Learn Paths/Getting Started/1-) Foundations 20.5 Model, Render, Animate/_video_out/H20.5 Foundations - Model Render Animate 1 - Explore the Houdini UI-mp4/tr.m4a', subtitles='', novoice_mp4='C:/Users/Muhammed/Desktop/win-pyvideotrans-v3.96/tmp/35852/34caae0c1e/novoice.mp4', noextname='H20.5 Foundations - Model Render Animate 1 - Explore the Houdini UI', shibie_audio=None, targetdir_mp4='M:/Tutorials/Houdini Learn Paths/Getting Started/1-) Foundations 20.5 Model, Render, Animate/_video_out/H20.5 Foundations - Model Render Animate 1 - Explore the Houdini UI-mp4/H20.5 Foundations - Model Render Animate 1 - Explore the Houdini UI.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Ahmet(Male/TR)', copysrt_rawvideo=False, clear_cache=True, translate_type=5, tts_type=0, recogn_type=0, model_name='large-v3-turbo', voice_autorate=True, video_autorate=False, cuda=True, name='M:/Tutorials/Houdini Learn Paths/Getting Started/1-) Foundations 20.5 Model, Render, Animate/H20.5 Foundations - Model Render Animate 1 - Explore the Houdini UI.mp4', basename='H20.5 Foundations - Model Render Animate 1 - Explore the Houdini UI.mp4', ext='mp4', dirname='M:/Tutorials/Houdini Learn Paths/Getting Started/1-) Foundations 20.5 Model, Render, Animate', shound_del_name=None, uuid='34caae0c1e', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=True, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.96
frozen:True
language:en
root_dir:C:/Users/Muhammed/Desktop/win-pyvideotrans-v3.96

1 Replies

This error is caused by a version mismatch between the faster-whisper library and the underlying ctranslate2 engine. The error TypeError: generate(): incompatible function arguments indicates that the sampling_temperature parameter is being passed as a string ('0.0') when the ctranslate2 library expects a float (1).

This is a known issue that can occur after a software update or when using a pre-packaged version with mismatched dependencies.

Solution:

  1. Clear the model cache: Delete the models/ folder located in your pyVideoTrans installation directory (e.g., C:\Users\Muhammed\Desktop\win-pyvideotrans-v3.96\models). This will force the software to re-download the correct model files on the next run.
  2. Manually update the faster-whisper dependency (if step 1 fails):

    • Open a command prompt in your pyVideoTrans directory.
    • Run the following command to upgrade the faster-whisper package to a compatible version:

      pip install --upgrade faster-whisper
    • If you are using the pre-packaged .exe version and cannot run pip, you may need to download the latest complete package from the official source and replace your current installation.
  3. Restart the software: After performing either step 1 or 2, restart sp.exe and try the task again.

If the problem persists, please check the official documentation for any specific notes about version v3.96 and dependency compatibility.

Please refer to the relevant documentation:

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