#2904 TaskCfg(cache_folder='D:/pyVideoTrans/tmp/7364/b15b40417a', target_dir='D:/Downloads/_video_out/The Top 10 Pony Videos o

134.195* Posted at: 23 hours ago 👁11

语音识别阶段出错 [faster-whisper(本地)] 程序内部错误:'float' object cannot be interpreted as an integer
Traceback (most recent call last):
File "videotrans\task\job.py", line 106, in run
File "videotrans\task\trans_create.py", line 358, in recogn
File "videotrans\recognition\__init__.py", line 276, in run
File "videotrans\recognition\_base.py", line 136, in run
File "videotrans\recognition\_overall.py", line 76, in _download
File "videotrans\recognition\_base.py", line 118, in _vad_split
File "videotrans\configure\_base.py", line 265, in _new_process
File "videotrans\process\signelobj.py", line 73, in submit_task_cpu
File "videotrans\process\signelobj.py", line 56, in get_executor_cpu
File "concurrent\futures\process.py", line 650, in init
File "concurrent\futures\process.py", line 165, in init
File "multiprocessing\queues.py", line 49, in init
File "multiprocessing\context.py", line 88, in BoundedSemaphore
File "multiprocessing\synchronize.py", line 145, in init
File "multiprocessing\synchronize.py", line 57, in init
TypeError: 'float' object cannot be interpreted as an integer
TaskCfg(cache_folder='D:/pyVideoTrans/tmp/7364/b15b40417a', target_dir='D:/Downloads/_video_out/The Top 10 Pony Videos of September 2025-mp3', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='D:/Downloads/_video_out/The Top 10 Pony Videos of September 2025-mp3/en.srt', target_sub='D:/Downloads/_video_out/The Top 10 Pony Videos of September 2025-mp3/zh-cn.srt', source_wav='D:/pyVideoTrans/tmp/7364/b15b40417a/en.wav', source_wav_output='D:/Downloads/_video_out/The Top 10 Pony Videos of September 2025-mp3/en.m4a', target_wav='D:/pyVideoTrans/tmp/7364/b15b40417a/target.wav', target_wav_output='D:/Downloads/_video_out/The Top 10 Pony Videos of September 2025-mp3/zh-cn.m4a', subtitles='', novoice_mp4='D:/pyVideoTrans/tmp/7364/b15b40417a/novoice.mp4', noextname='The Top 10 Pony Videos of September 2025', shibie_audio=None, targetdir_mp4='D:/Downloads/_video_out/The Top 10 Pony Videos of September 2025-mp3/The Top 10 Pony Videos of September 2025.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='tiqu', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', copysrt_rawvideo=False, clear_cache=False, translate_type=5, tts_type=18, recogn_type=0, model_name='large-v3-turbo', voice_autorate=False, video_autorate=False, cuda=False, name='D:/Downloads/The Top 10 Pony Videos of September 2025.mp3', basename='The Top 10 Pony Videos of September 2025.mp3', ext='mp3', dirname='D:/Downloads', shound_del_name=None, uuid='b15b40417a', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=True)


=
system:Windows-10-10.0.22631-SP0
version:v3.95
frozen:True
language:zh
root_dir:D:/pyVideoTrans

1 Replies

这是 pyVideoTrans v3.95 版本的一个已知 bug。错误 'float' object cannot be interpreted as an integer 是由于软件内部进程池初始化参数计算错误导致的。

解决方案:

  1. 打开 pyVideoTrans 软件。
  2. 点击顶部菜单栏的 “工具” -> “高级选项”
  3. 在打开的窗口中,找到 “通用设置” 部分。
  4. 找到 “最大进程数” 选项,将其值修改为 2(如果你的 CPU 核心数大于 16,可以设置为 8)。
  5. 点击 “保存”,然后完全关闭并重新启动软件。

修改此设置后,该错误将不再出现。

参考文档:

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