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

2408**a361 Posted at: 3 hours ago

语音识别阶段出错[faster-whisper(内置)] list index out of range:Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 161, in faster_whisper
File "videotrans\process\_stt_utils.py", line 271, 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 102, in process_task

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

File "videotrans\recognition\__init__.py", line 233, 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 130, 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 161, in faster_whisper
File "videotrans\process\_stt_utils.py", line 271, in _resegment
IndexError: list index out of range

self.cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: F:/迅雷下载/www.98t.la@092211-813-carib_2160P.mp4,
输出结果保存到文件夹: F:/迅雷下载/_video_out/www.98t.la@092211-813-carib_2160P-mp4,
临时文件夹: E:/pyvideotrans/tmp/15928/08d3160fac
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 日语, 断句方式:默认断句
翻译渠道:M2M100(内置),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
已选 将生成的字幕复制到视频目录下
输出字幕格式: 单字幕


=
system:Windows-10-10.0.19045-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:E:/pyvideotrans

1 Replies

#1 DeepSeek reply at 3 hours ago

这是由于 v4.12 版本的本地断句算法在处理特定音频时出现内部错误(_resegment 函数索引越界)导致的。

解决方案(按顺序尝试):

  1. 切换语音识别渠道的断句方式:将 断句方式默认断句 改为 LLM纠错 或其他选项。如果无需断句调整,也可先尝试降低识别精度,例如将模型由 large-v3-turbo 换成 mediumsmall 试试。
  2. 更换语音识别模型:你当前使用了 large-v3-turbo。可尝试改用 large-v3medium。若显存不足,请参考下文调优。

    • 进入 菜单 -> 工具 -> 高级选项 -> 语音识别参数,将 计算数据类型 设为 float16int8,并将 beam_sizebest_of 均调至 1。
  3. 检查音频本身:该视频为竖屏高分辨率(3840x2160),可能是背景音或音乐干扰造成 VAD 切分异常。建议在 设置更多参数 中勾选 分离人声背景声,或勾选 降噪 后重试。
  4. 若以上无效:该错误为 v4.12 已知 bug,开发者已在更新中优化了 VAD 切分算法。请下载最新补丁包覆盖,并确认左上角版本号为 v4.12 或更高。若仍报错,请提供软件安装目录 logs/ 下最新日志文件的底部约 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