#8701 Error during speech recognition stage[Qwen-ASR(Built-in)] list index out of range:Traceback (most recent call last): Fi

217.60**5 Posted at: 5 hours ago

Error during speech recognition stage[Qwen-ASR(Built-in)] list index out of range:Traceback (most recent call last):
File "videotrans\process\stt_qwen.py", line 110, in qwen3asr_fun
IndexError: list index out of range

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 84, in run
File "videotrans\task\_stage_recogn.py", line 64, in recogn
File "videotrans\recognition\__init__.py", line 148, in run
File "videotrans\recognition\_base.py", line 101, in run
File "videotrans\recognition\_qwenasrlocal.py", line 84, in _exec
File "videotrans\configure\base.py", line 291, in _new_process
videotrans.configure.excepts.VideoTransError: list index out of range:Traceback (most recent call last):
File "videotrans\process\stt_qwen.py", line 110, in qwen3asr_fun
IndexError: list index out of range

trk=Translation V/A 单视频模式
Select Media File: D:/Zona Downloads/April X (2025) [720p] [WEBRip] [YTS.GG - YTS.BZ]/April.X.2025.720p.WEBRip.x264.AAC-[
......
25) [720p] [WEBRip] [YTS.GG - YTS.BZ]/_video_out/April.X.2025.720p.WEBRip.x264.AAC-[YTS.GG - YTS.BZ]-mp4/en.srt', source_wav='C:/win-pyvideotrans-v4.18-1106/tmp/28788/645e60da02/en.wav', source_wav_output='D:/Zona Downloads/April X (2025) [720p] [WEBRip] [YTS.GG - YTS.BZ]/_video_out/April.X.2025.720p.WEBRip.x264.AAC-[YTS.GG - YTS.BZ]-mp4/en.m4a', target_language='Russian', target_language_code='ru', target_sub='D:/Zona Downloads/April X (2025) [720p] [WEBRip] [YTS.GG - YTS.BZ]/_video_out/April.X.2025.720p.WEBRip.x264.AAC-[YTS.GG - YTS.BZ]-mp4/ru.srt', target_wav='C:/win-pyvideotrans-v4.18-1106/tmp/28788/645e60da02/target.wav', target_wav_output='D:/Zona Downloads/April X (2025) [720p] [WEBRip] [YTS.GG - YTS.BZ]/_video_out/April.X.2025.720p.WEBRip.x264.AAC-[YTS.GG - YTS.BZ]-mp4/ru.m4a', translate_type=0, tts_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=2, model_name='1.7B', 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='D:/Zona Downloads/April X (2025) [720p] [WEBRip] [YTS.GG - YTS.BZ]/_video_out/April.X.2025.720p.WEBRip.x264.AAC-[YTS.GG - YTS.BZ]-mp4/April.X.2025.720p.WEBRip.x264.AAC-[YTS.GG - YTS.BZ].mp4', novoice_mp4='C:/win-pyvideotrans-v4.18-1106/tmp/28788/645e60da02/novoice.mp4', is_separate=False, embed_bgm=True, instrument='C:/win-pyvideotrans-v4.18-1106/tmp/28788/645e60da02/instrument.wav', vocal='C:/win-pyvideotrans-v4.18-1106/tmp/28788/645e60da02/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=5537823


=
system:Windows-10-10.0.26300-SP0
version:v4.18
frozen:True
language:en_US
root_dir:C:/win-pyvideotrans-v4.18-1106

1 Replies

#1 DeepSeek reply at 5 hours ago

The knowledge base contains no exact record of stt_qwen.py line 110 raising IndexError: list index out of range. You cannot determine the definitive cause from this traceback alone. However, there are two highly likely causes worth ruling out first: the Qwen-ASR 1.7B model files are incomplete or corrupted (so the model returns an empty result, and index [0] fails), or the video path/name contains special characters ([, ], spaces, parentheses, .GG), which breaks the subprocess data passing.

Troubleshooting steps, in order:

  1. Normalize the path and file name (do this first)

    • Move the video to a shallow directory and rename it to plain ASCII letters/digits, e.g. D:/videos/aprilx.mp4. Remove [ ] ( ) - . and spaces from both the file name and the folder name.
    • Uncheck Clear Output, delete the old _video_out result folder, and re-run.
  2. Verify or re-download the Qwen-ASR 1.7B model

    • Check C:/win-pyvideotrans-v4.18-1106/models/models--Qwen--Qwen3-ASR-1.7B-hf. If the folder is missing files (model.safetensors, config.json, tokenizer files) or was interrupted mid-download, delete the whole folder and download it manually from:
      https://huggingface.co/Qwen/Qwen3-ASR-1.7B-hf/tree/main
    • Also try the 0.6B model in the same channel to see whether the error persists. If 0.6B works, the 1.7B model files are the problem.
  3. Isolate the channel

    • Switch STT Service to faster-whisper(Built-in) + large-v3-turbo and re-run. If recognition succeeds, the problem is confined to the Qwen-ASR channel/model, not the video itself.
  4. Note on your configuration (not the cause of this traceback, but relevant)

    • You selected Voices: clone with Qwen3-TTS. When cloning, Min Speech Duration (ms) must be ≥ 3000. It is currently 3000, so this is borderline; do not lower it.
    • Your current TTS Speedup is on and Slow Video is off. This is fine and does not need to change.

If the error still occurs after steps 1–3, provide the last 30–50 lines of the log file in C:/win-pyvideotrans-v4.18-1106/logs/ (the file named by date, e.g. 20251106.log) so the actual failing statement can be analyzed.

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