#7403 list index out of rangeASR Error:Deepgram.com, Trans Error: Microsoft (Free), Dubbing Error:Edge-TTS(Free)Traceback (mos

191.6**4 Posted at: 1 hour ago

list index out of rangeASR Error:Deepgram.com, Trans Error: Microsoft (Free), Dubbing Error:Edge-TTS(Free)
Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 94, in run
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 47, in run
File "videotrans\task\trans_create.py", line 322, in recogn
File "videotrans\recognition\__init__.py", line 190, in run
File "videotrans\recognition\_base.py", line 100, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_deepgram.py", line 86, in _exec
File "deepgram_captions\srt.py", line 19, in srt
IndexError: list index out
......
Really Wants-webm', cache_folder='E:/win-pyvideotrans-v4.01-0602/tmp/12348/f00e556f28', is_cuda=True, source_language='Spanish', source_language_code='es', source_sub='E:/_video_out/All Girls Fall in Love With the New Bad Boy Student Except the Girl He Really Wants-webm/es.srt', source_wav='E:/win-pyvideotrans-v4.01-0602/tmp/12348/f00e556f28/es.wav', source_wav_output='E:/_video_out/All Girls Fall in Love With the New Bad Boy Student Except the Girl He Really Wants-webm/es.m4a', target_language='Portuguese', target_language_code='pt', target_sub='E:/_video_out/All Girls Fall in Love With the New Bad Boy Student Except the Girl He Really Wants-webm/pt.srt', target_wav='E:/win-pyvideotrans-v4.01-0602/tmp/12348/f00e556f28/target.wav', target_wav_output='E:/_video_out/All Girls Fall in Love With the New Bad Boy Student Except the Girl He Really Wants-webm/pt.m4a', translate_type=1, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Antonio(Male/BR)', voice_autorate=False, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='es', recogn_type=10, model_name='nova-2', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='E:/_video_out/All Girls Fall in Love With the New Bad Boy Student Except the Girl He Really Wants-webm/All Girls Fall in Love With the New Bad Boy Student Except the Girl He Really Wants.mp4', novoice_mp4='E:/win-pyvideotrans-v4.01-0602/tmp/12348/f00e556f28/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='E:/win-pyvideotrans-v4.01-0602/tmp/12348/f00e556f28/vocal.wav', clear_cache=False, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.22631-SP0
version:v4.01
frozen:True
language:en
root_dir:E:/win-pyvideotrans-v4.01-0602

1 Replies

#1 DeepSeek reply at 1 hour ago

The core cause is that the deepgram-captions library failed to parse Deepgram's returned response — it returned an empty or non-standard result, so deepgram_captions/srt.py raised IndexError: list index out of range while building the SRT. This is an ASR (Deepgram) response/parsing failure, not a translation or dubbing issue. The Microsoft and Edge-TTS errors are just downstream consequences of the ASR stage aborting.

Also note: you are running a very old version v4.01, and your file name/path is extremely long with spaces, which can also cause parsing/command issues.

Steps:

  1. Update to the latest version v4.12 (download the full package 2.6GB+, then optionally the patch) from https://pyvideotrans.com/downpackage — the Deepgram parsing path and many bugs were fixed in later releases.
  2. Rename the video to a short, simple ASCII name WITHOUT spaces or special characters, and move it to a shallow path, e.g. E:/dgtest.mp4. Your current name All Girls Fall in Love With the New Bad Boy Student Except the Girl He Really Wants.webm is extremely long.
  3. Verify your Deepgram API key is valid, has balance/quota, and is correctly configured in Menu -> Translation Settings -> Deepgram. A failed/invalid request can return a non-standard body that triggers this IndexError.
  4. If Deepgram keeps failing, switch the ASR channel to faster-whisper(内置) with large-v3 model (default recommended) and retry — this avoids the Deepgram parsing path entirely. Your audio is Spanish (es), which faster-whisper supports.
  5. If the error persists after upgrading, provide the log.

If the problem continues, please provide the latest log file from the logs/ folder under the software installation directory (copy the last ~30 lines of the error).

请查阅相关文档:

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