#7679 语音识别阶段出错[faster-whisper(内置)] list index out of range:Traceback (most recent call last): File

2409**1684 Posted at: 1 hour ago

语音识别阶段出错[faster-whisper(内置)] list index out of range:Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 160, in faster_whisper
File "videotrans\process\_stt_utils.py", line 290, in _resegment
IndexError: list index out of range

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 103, in process_task

File "videotrans\task\_stage_recogn.py", line 63, in recogn

File "videotrans\recognition\__init__.py", line 121, in run

File "videotrans\recognition\_base.py", line 99, in run

File "videotrans\recognition\_whisper.py", line 41, in _exec

File "videotrans\recognition\_whisper.py", line 138, in _faster

File "videotrans\configure\base.py", line 264, in _new_process

videotrans.configure.excepts.VideoTransError: list index out of range:Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 160, in faster_whisper
File "videotrans\process\_stt_utils.py", line 290, in _resegment
IndexError: list index out of range

self.cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: D:/zimu/shuchu/VID_20161003_163531.mp4,
输出结果保存到文件夹: D:/zimu/shuchu/VID_20161003_163531-mp4,
临时文件夹: D:/zimu/win-pyvideotrans-v4.14/tmp/30100/3e78b33e66
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
输出字幕格式: 单字幕


=
system:Windows-10-10.0.19045-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/zimu/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 v4.14 语音识别阶段内部断句算法(_resegment)在处理识别结果时触发的越界错误(list index out of range),属于程序内部 bug,通常由某段无有效识别文本的字幕行(如空行、纯静音片段)导致。

请按以下步骤排查:

  1. 确认你使用的是 v4.14 完整包,而非仅覆盖了补丁包。若只覆盖了 sp.exe,请重新下载并完整覆盖 _internal 和 videotrans 文件夹,并删除 _internal 内所有 __pycache__ 文件夹后重试。
  2. 若已是最新完整包仍报错,请在 高级选项 → 语音识别参数 中:

    • 将 最长语音持续(秒) 适当调大(如 6~8)
    • 将 最短语音持续(毫秒) 调小(如 1000~1500)
      避免切分出过短或空的语音片段触发该 bug。
  3. 也可尝试切换为 openai-whisper(内置) 渠道测试同一视频,以判断是否为该渠道特定问题。
  4. 若以上均无效,请提供日志以便定位:打开软件安装目录下 logs/ 文件夹,找到最新的日志文件(如 2025xxxx.log),复制末尾约 30 行报错信息。

请查阅相关文档:

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