#1913 TaskCfg(cache_folder='D:/BaiduNetdiskDownload/win-videotrans-v3.84/win-videotrans-v3.84/tmp/12932/speech2text', target_d

171.221* Posted at: 6 hours ago 👁7

语音识别阶段出错:[openai-whisper(本地)] 运行时错误:Traceback (most recent call last):
File "videotrans\process\_overall.py", line 44, in run
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 91, in _download
RuntimeError: Model has been downloaded but the SHA256 checksum does not not match. Please retry loading the model.
:
Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\_speech2text.py", line 146, in recogn
File "videotrans\recognition\__init__.py", line 243, in run
File "videotrans\recognition\_base.py", line 78, in run
File "videotrans\recognition\_overall.py", line 182, in _exec
RuntimeError: Traceback (most recent call last):
File "videotrans\process\_overall.py", line 44, in run
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 91, in _download
RuntimeError: Model has been downloaded but the SHA256 checksum does not not match. Please retry loading the model.

TaskCfg(cache_folder='D:/BaiduNetdiskDownload/win-videotrans-v3.84/win-videotrans-v3.84/tmp/12932/speech2text', target_dir='C:/Users/12560/Desktop/win-videotrans-v3.84/output/recogn', remove_noise=False, is_separate=False, detect_language='ja', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='C:/Users/12560/Desktop/win-videotrans-v3.84/output/recogn/MOND-118.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='MOND-118', shibie_audio='D:/BaiduNetdiskDownload/win-videotrans-v3.84/win-videotrans-v3.84/tmp/12932/speech2text/MOND-118-1765349183.7785861.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=1, model_name='large-v3-turbo', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name='D:/BaiduNetdiskDownload/AI/MOND-118.mp4', basename='MOND-118.mp4', ext='mp4', dirname='D:/BaiduNetdiskDownload/AI', shound_del_name=None, uuid='1403a8d255', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.89
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/win-videotrans-v3.84/win-videotrans-v3.84

1 Replies

这个错误表明 openai-whisper 模型文件下载不完整或已损坏,导致 SHA256 校验失败。

核心解决方法:删除损坏的模型文件,让软件重新下载。

请按以下步骤操作:

  1. 定位模型缓存目录

    • 打开文件资源管理器,进入路径:C:\Users\[你的用户名]\.cache\whisper\
    • 注意[你的用户名] 需要替换为你电脑的实际用户名(例如 12560)。
  2. 删除损坏的模型文件

    • whisper 文件夹内,找到名为 large-v3-turbo.pt 的文件(根据错误日志中的 model_name='large-v3-turbo')。
    • 将其删除。
  3. 重新运行软件

    • 关闭 pyVideoTrans,然后重新启动。
    • 再次尝试语音识别,软件会自动重新下载正确的模型文件。

补充建议

  • 如果重新下载后问题依旧,可能是网络问题导致下载中断。请尝试使用稳定的网络环境,或在高级选项中暂时切换使用 faster-whisper(本地) 作为替代方案。
  • 确保软件安装路径(D:/BaiduNetdiskDownload/win-videotrans-v3.84/)没有写入权限限制。

如果以上步骤无法解决,请提供 D:/BaiduNetdiskDownload/win-videotrans-v3.84/win-videotrans-v3.84/logs/ 目录下的最新日志文件。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions