#5226 TaskCfgVTT(uuid='69197e1783', name='G:/油管/ig.mp4', dirname='G:/油管', noextname='ig', basename='ig.mp4', ext='mp4', target

209.33* Posted at: 1 day ago

语音识别阶段出错[openai-whisper(本地内置)] [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2588):Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 51, in openai_whisper
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 82, in _download
File "http\client.py", line 466, in read
File "socket.py", line 717, in readinto
File "ssl.py", line 1307, in recv_into
File "ssl.py", line 1163, in read
ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2588)

Traceback (most recent call last):

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

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

File "videotrans\task\trans_create.py", line 324, in recogn

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

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

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

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

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

videotrans.configure.excepts.VideoTransError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2588):Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 51, in openai_whisper
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 82, in _download
File "http\client.py", line 466, in read
File "socket.py", line 717, in readinto
File "ssl.py", line 1307, in recv_into
File "ssl.py", line 1163, in read
ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2588)
TaskCfgVTT(uuid='69197e1783', name='G:/油管/ig.mp4', dirname='G:/油管', noextname='ig', basename='ig.mp4', ext='mp4', target_dir='G:/油管/ig-mp4', cache_folder='E:/py/win-pyvideotrans-v4.02-0615/tmp/10632/69197e1783', is_cuda=False, source_language='韩语', source_language_code='ko', source_sub='G:/油管/ig-mp4/ko.srt', source_wav='E:/py/win-pyvideotrans-v4.02-0615/tmp/10632/69197e1783/ko.wav', source_wav_output='G:/油管/ig-mp4/ko.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='G:/油管/ig-mp4/zh-cn.srt', target_wav='E:/py/win-pyvideotrans-v4.02-0615/tmp/10632/69197e1783/target.wav', target_wav_output='G:/油管/ig-mp4/zh-cn.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='ko', recogn_type=1, model_name='medium', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0, subtitle_language=None, app_mode='tiqu', subtitles='', targetdir_mp4='G:/油管/ig-mp4/ig.mp4', novoice_mp4='E:/py/win-pyvideotrans-v4.02-0615/tmp/10632/69197e1783/novoice.mp4', is_separate=False, embed_bgm=True, instrument='E:/py/win-pyvideotrans-v4.02-0615/tmp/10632/69197e1783/instrument.wav', vocal='E:/py/win-pyvideotrans-v4.02-0615/tmp/10632/69197e1783/vocal.wav', clear_cache=False, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=False, output_srt=1, copysrt_rawvideo=False, loop_backaudio=0, backaudio_volume=0.8)


=
system:Windows-10-10.0.26100-SP0
version:v4.02
frozen:True
language:zh
root_dir:E:/py/win-pyvideotrans-v4.02-0615

1 Replies

这是由于网络问题导致 openai-whisper 在下载模型文件时 SSL 连接失败(HuggingFace 等源站在国内可能被限制)。

解决方案:

  1. 配置代理:在软件主界面第 5 行的“网络代理”处填写你的代理地址(例如 http://127.0.0.1:7890),然后重试。
  2. 手动下载模型:根据知识库“手动下载 faster-whisper 模型”的说明,将所需模型(如 medium)的文件下载到 models/models--Systran--faster-whisper-medium 目录下(注意这里是 openai-whisper 渠道,模型目录名与 faster-whisper 不同,请参考 openai-whisper 的下载方法;也可直接使用 faster-whisper 渠道替代 openai-whisper)。若你坚持使用 openai-whisper,模型文件需下载到 models/models--openai--whisper-medium 下,但 openai-whisper 的模型格式与 faster-whisper 不同,建议优先切换为 faster-whisper(本地) 渠道并提前下载对应模型。

推荐替换方案:直接在语音识别渠道中切换为 faster-whisper(本地),使用相同模型名称(如 medium),该渠道支持手动下载且更稳定。

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. Dondate: ko-fi.com/jianchang512

Related resource

Similar issues already exist