#8288 语音识别阶段出错[openai-whisper(内置)] NoneTraceback (most recent call last):

2a09**28 Posted at: 1 hour ago

语音识别阶段出错[openai-whisper(内置)] None
Traceback (most recent call last):

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

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

File "videotrans\task\speech2text.py", line 97, in recogn

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

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

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

File "videotrans\recognition\_whisper.py", line 85, in _openai

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

videotrans.configure.excepts.VideoTransError: None
trk=[SpeechToText]: uuid='de9840076d', proxy_str=None, cfg=[TaskCfgSTT]
原始输入文件名: E:/DownLoad/4/rrr/Aleixs Rae - Sexual Deviants.mp4,
输出结果保存到文件夹: D:/win-pyvideotrans-v4.16-1/output/recogn,
临时文件夹: D:/win-pyvideotrans-v4.16-1/tmp/8188/de9840076d
已启用CUDA加速
已选 降噪
语音识别:openai-whisper(内置), large-v3-turbo
发音语言:en
已选 降噪, precent=1, hasend=False, should_recogn=True, should_trans=False, should_dubbing=False, should_hebing=False, out_format='srt', copysrt_rawvideo=False, spk_insert=True


=
system:Windows-10-10.0.26100-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.16-1

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 openai-whisper(内置) 在子进程启动阶段就失败了(异常抛在 base.py 的 _new_process,错误信息为空 None),属于子进程未能正常拉起或模型文件不可用,最常见的原因是 large-v3-turbo 的 .pt 模型文件缺失、下载不完整,其次是显存不足导致子进程直接硬崩溃。

请按顺序排查:

  1. 检查模型文件是否完整
    打开 D:/win-pyvideotrans-v4.16-1/models/,确认是否存在 large-v3-turbo.pt,正常体积约 1.5GB 以上。

    • 若不存在、或只有几 KB / 几十 MB,说明下载失败或不完整,请删除后手动下载:
      https://openaipublic.azureedge.net/main/whisper/models/aff26ae408abcba5fbf8813c21e62b0941638c5f6eebfb145be0c9839262a19a/large-v3-turbo.pt
      下载后直接放入 软件目录/models/ 文件夹(不要改名)。
  2. 换渠道验证是否为模型问题
    把语音识别渠道改为默认的 faster-whisper(内置),模型选 large-v3-turbo 再跑一次。若 faster-whisper 正常,则基本确定是 openai-whisper 的模型文件问题。
  3. 排除显存因素
    取消勾选 启用CUDA加速,或将模型降为 medium/small 测试一次;也请确认 菜单-工具/选项-高级选项-通用设置-GPU同时任务数 为 1。
  4. 排除降噪干扰(次要)
    本次已勾选 降噪,可先取消勾选 降噪 再试一次,确认是否为降噪环节产物导致的音频异常。
  5. 路径检查
    你的输出目录/临时目录位于 D:/win-pyvideotrans-v4.16-1/,看似正常;但仍建议确认软件所在路径全为英文数字、无空格与特殊符号。

若以上步骤后仍报 VideoTransError: None,请提供 D:/win-pyvideotrans-v4.16-1/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