#4505 TaskCfgSTT(is_cuda=False, uuid='818461c750', cache_folder='C:/Users/user/Documents/WhisperJAV/output/ja.whisperjav/win-p

183.179* Posted at: 1 hour ago 👁10

语音识别阶段出错 [Deepgram.com] 处理列表或序列时索引越界:list index out of range
Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 143, 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\job.py", line 105, in run
File "videotrans\task\_speech2text.py", line 191, in recogn
File "videotrans\recognition\__init__.py", line 265, in run
File "videotrans\recognition\_base.py", line 180, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_deepgram.py", line 98, in _exec
File "deepgram_captions\srt.py", line 19, in srt
IndexError: list index out of range
TaskCfgSTT(is_cuda=False, uuid='818461c750', cache_folder='C:/Users/user/Documents/WhisperJAV/output/ja.whisperjav/win-pyvideotrans-v3.99-0508/tmp/56756/818461c750', target_dir='C:/Users/user/Documents/WhisperJAV/output/ja.whisperjav/win-pyvideotrans-v3.99-0508/output/recogn', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='C:/Users/user/Documents/WhisperJAV/output/ja.whisperjav/win-pyvideotrans-v3.99-0508/output/recogn/FC2-PPV-795111 Obowa z投稿作品 戲劇表演矢場現年18歲從網吧私塾歸來的沒經驗的Ubrori小孩100生SX個人拍攝.srt', target_wav=None, target_wav_output=None, name='F:/qb bt3/WAV/pyvideotrans test/FC2-PPV-795111 Obowa z投稿作品 戲劇表演矢場現年18歲從網吧私塾歸來的沒經驗的Ubrori小孩100生SX個人拍攝.wav', noextname='FC2-PPV-795111 Obowa z投稿作品 戲劇表演矢場現年18歲從網吧私塾歸來的沒經驗的Ubrori小孩100生SX個人拍攝', basename='FC2-PPV-795111 Obowa z投稿作品 戲劇表演矢場現年18歲從網吧私塾歸來的沒經驗的Ubrori小孩100生SX個人拍攝.wav', ext='wav', dirname='F:/qb bt3/WAV/pyvideotrans test', shound_del_name=None, detect_language='ja', recogn_type=10, model_name='nova-3', shibie_audio='C:/Users/user/Documents/WhisperJAV/output/ja.whisperjav/win-pyvideotrans-v3.99-0508/tmp/56756/818461c750/FC2-PPV-795111 Obowa z投稿作品 戲劇表演矢場現年18歲從網吧私塾歸來的沒經驗的Ubrori小孩100生SX個人拍攝-1778408637.237679.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:C:/Users/user/Documents/WhisperJAV/output/ja.whisperjav/win-pyvideotrans-v3.99-0508

1 Replies

这是由于 Deepgram API 返回的响应中缺少有效字幕数据或格式异常,导致解析时索引越界。

解决方案:

  1. 检查网络与 API Key:确保能稳定访问 api.deepgram.com,且 API Key 正确有效。
  2. 简化音频文件名:当前文件名包含空格、特殊符号和非英文字符(如中文、日文),可能被 Deepgram 或内部解析器视为无效。请将音频文件重命名为纯英文+数字(如 test.wav)再试。
  3. 验证音频文件:确认音频文件未损坏,可用播放器试听或使用 ffmpeg 转码为 16kHz WAV 再试。
  4. 降低请求频率:如果批量处理较多文件,尝试减少并发数,或在“高级选项”中适当增加“翻译后暂停秒”或“配音后暂停秒”(对 ASR 无直接作用,但可避免限流)。
  5. 查看 Deepgram 官方状态:偶尔服务端异常,可稍后重试。

如果以上无效,请提供 logs/ 目录下当天日志文件的完整底部 30 行内容,以便进一步分析。

请查阅相关文档:

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