#9064 Error during speech recognition stage[faster-whisper(Built-in)] :Traceback (most recent call last): File

3.110**0 Posted at: 15 hours ago

Error during speech recognition stage[faster-whisper(Built-in)] :Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 115, in faster_whisper
File "faster_whisper\transcribe.py", line 916, in transcribe
File "faster_whisper\feature_extractor.py", line 215, in call
File "faster_whisper\feature_extractor.py", line 189, in stft
File "numpy\fft\_pocketfft.py", line 409, in rfft
File "numpy\fft\_pocketfft.py", line 70, in _raw_fft
MemoryError

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 85, in run
File "videotrans\task\_stage_recogn.py", line 69, in recogn
File "videotrans\recognition\__init__.py", line 167, in run
File "videotrans\recognition\_base.py", line 98, in run
File "videotrans\recognition\_whisper.py", line 41, in _exec
File "videotrans\recognition\_whisper.py", line 137, in _faster
File "videotrans\configure\base.py", line 285, in _new_process
videotrans.configure.excepts.VideoTransError: :Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 115, in faster_whisper
File "faster_whisper\transcribe.py", line 916, in transcribe
File "faster_whisper\feature_extractor.py", line 215, in call
File "faster_whisper\feature_extractor.py", line 189, in stft
File "numpy\fft\_pocketfft.py", line 409, in rfft
File "numpy\fft\_pocketfft.py", line 70, in _raw_fft
MemoryError

trk=Translation V/A 单视频模式
Select Media File: C:/Users/Administrator/Downloads/44087118986-1-192.mp4,
Output Directory: C:/Users/Administrator/Downloads/_video_out/44087118986-1-192-mp4,
self.cfg.cache_folder='C:/Users/Administrator/Downloads/win-pyvideotrans-v4.20/tmp/3020/0e2800a90a'
Selected Clear Output, Selected Enable accelerator
STT Service:faster-whisper(Built-in), distil-large-v3.5, Spoken: Simplified Chinese
Max Speech Duration (s): 5s
Min Speech Duration (ms): 3000ms
Min Silence Duration for Split (ms): 600ms
VAD Speech Threshold: 0.45
VAD Engine: silero
Compute Type:default
Beam Size:5
Best Of:5
Condition on Previous Text:False
Repetition Penalty:1.0
Compression Ratio Threshold:2.4
TranslateSrt:Microsoft Translate (Free),Spoken:Simplified Chinese,Target:Hindi
Traditional Translation Batch Size (Lines): 5
TTS Service:ChatterBox(Built-in), Voices:clone, Target:Hindi
Volume:+0%, Speed:+0%, Selected TTS Speedup, Not-Selected Slow Video
Selected Trim Start/End Silence in Dubbed Segments
Silence Removal Intensity: default
Soft Subtitles
video duration:4020050ms
video information:{'video_fps': 29.97002997002997, 'r_frame_rate': 29.97002997002997, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 1280, 'height': 720, 'time': 4020050, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='0e2800a90a', name='C:/Users/Administrator/Downloads/44087118986-1-192.mp4', dirname='C:/Users/Administrator/Downloads', noextname='44087118986-1-192', basename='44087118986-1-192.mp4', ext='mp4', target_dir='C:/Users/Administrator/Downloads/_video_out/44087118986-1-192-mp4', cache_folder='C:/Users/Administrator/Downloads/win-pyvideotrans-v4.20/tmp/3020/0e2800a90a', is_cuda=True, source_language='Simplified Chinese', source_language_code='zh-cn', source_sub='C:/Users/Administrator/Downloads/_video_out/44087118986-1-192-mp4/zh-cn.srt', source_wav='C:/Users/Administrator/Downloads/win-pyvideotrans-v4.20/tmp/3020/0e2800a90a/zh-cn.wav', source_wav_output='C:/Users/Administrator/Downloads/_video_out/44087118986-1-192-mp4/zh-cn.m4a', target_language='Hindi', target_language_code='hi', target_sub='C:/Users/Administrator/Downloads/_video_out/44087118986-1-192-mp4/hi.srt', target_wav='C:/Users/Administrator/Downloads/win-pyvideotrans-v4.20/tmp/3020/0e2800a90a/target.wav', target_wav_output='C:/Users/Administrator/Downloads/_video_out/44087118986-1-192-mp4/hi.m4a', translate_type=1, tts_type=7, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, tts_model_name=None, detect_language='zh', recogn_type=0, model_name='distil-large-v3.5', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=False, fix_punc=0, app_mode='biaozhun', subtitle_language=None, targetdir_mp4='C:/Users/Administrator/Downloads/_video_out/44087118986-1-192-mp4/44087118986-1-192.mp4', novoice_mp4='C:/Users/Administrator/Downloads/win-pyvideotrans-v4.20/tmp/3020/0e2800a90a/novoice.mp4', is_separate=False, embed_bgm=True, instrument='C:/Users/Administrator/Downloads/win-pyvideotrans-v4.20/tmp/3020/0e2800a90a/instrument.wav', vocal='C:/Users/Administrator/Downloads/win-pyvideotrans-v4.20/tmp/3020/0e2800a90a/vocal.wav', clear_cache=True, background_music='', subtitle_type=2, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=4020050


=
system:Windows-10-10.0.26100-SP0
version:v4.20
frozen:True
language:en_US
root_dir:C:/Users/Administrator/Downloads/win-pyvideotrans-v4.20

1 Replies

#1 DeepSeek reply at 15 hours ago

This is caused by insufficient system memory (RAM): faster-whisper loads the whole audio and performs a large number of numpy FFT operations, and the current configuration (beam_size=5, best_of=5) together with this 67-minute (4020050ms) video exhausts the RAM, so a MemoryError is raised at numpy\fft\_raw_fft.

Another point needs to be corrected at the same time: distil-large-v3.5 is a distilled model for English only, but you selected Spoken = Simplified Chinese, which is a mismatch between model and language.

Handling steps:

  1. Change the model: for Chinese speech, select large-v3-turbo (or large-v3, or medium/small if RAM is tight) instead of distil-large-v3.5.
  2. Reduce the memory footprint: in Menu → Tools/Options → Advanced Options → Speech Recognition (ASR), set Beam Size and Best Of from 5 to 1, and set Compute Type from default to int8 (the most memory-efficient).
  3. Free up RAM: close browsers and other memory-heavy programs, and make sure Max Concurrent CPU Tasks and Max Concurrent GPU Tasks in Advanced Options are both set to 1.
  4. Long videos: for videos of this length (over 1 hour), it is recommended to split them first (or use the "Trim Video by Subtitles" tool) before processing, so that each run holds less audio data in memory.
  5. If the machine has an NVIDIA GPU with enough VRAM, keep Enable accelerator checked and let recognition run on the GPU; this reduces the CPU memory pressure.
  6. Also check the disk where the software resides: it currently sits under C:/Users/Administrator/Downloads/win-pyvideotrans-v4.20, with the cache under tmp/. Clear the leftover files in the tmp/ folder before retrying.

If the same MemoryError still occurs after the steps above, please provide the last 30 lines of the latest log in the software installation directory's logs/ folder, along with your RAM size and the model used, for further analysis.

Please refer to the related documentation:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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 via ko-fi.com

Related resource