#1758 TaskCfg(cache_folder='D:/win-pyvideotrans-v3.87/tmp/32672/5068410e1b', target_dir='C:/Users/zhulingtao/Desktop/Ninja Ner

2408:8438* Posted at: 5 days ago 👁24

语音识别阶段出错:[faster-whisper(本地)] 多次重试连接失败,服务可能暂时不可用:
Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\trans_create.py", line 360, 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 180, in _exec
RuntimeError: urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:997)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "requests\adapters.py", line 644, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='hf-mirror.com', port=443): Max retries exceeded with url: /api/models/Systran/faster-whisper-large-v3/revision/main (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\_overall.py", line 93, in run
File "faster_whisper\transcribe.py", line 681, in init
File "faster_whisper\utils.py", line 116, in download_model
File "huggingface_hub\utils\_validators.py", line 114, in _inner_fn
File "huggingface_hub\_snapshot_download.py", line 165, in snapshot_download
File "huggingface_hub\utils\_validators.py", line 114, in _inner_fn
File "huggingface_hub\hf_api.py", line 2864, in repo_info
File "huggingface_hub\utils\_validators.py", line 114, in _inner_fn
File "huggingface_hub\hf_api.py", line 2648, in model_info
File "requests\sessions.py", line 602, in get
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "huggingface_hub\utils\_http.py", line 95, in send
File "requests\adapters.py", line 675, in send
requests.exceptions.SSLError: (MaxRetryError("HTTPSConnectionPool(host='hf-mirror.com', port=443): Max retries exceeded with url: /api/models/Systran/faster-whisper-large-v3/revision/main (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)')))"), '(Request ID: d7a692e1-c3b5-4a8d-b922-6d74ee4d6d7b)')

TaskCfg(cache_folder='D:/win-pyvideotrans-v3.87/tmp/32672/5068410e1b', target_dir='C:/Users/zhulingtao/Desktop/Ninja Nerd血液医学/1文件夹/_video_out/骨髓增殖性肿瘤 (MPN)(2)-mp4', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='C:/Users/zhulingtao/Desktop/Ninja Nerd血液医学/1文件夹/_video_out/骨髓增殖性肿瘤 (MPN)(2)-mp4/en.srt', target_sub='C:/Users/zhulingtao/Desktop/Ninja Nerd血液医学/1文件夹/_video_out/骨髓增殖性肿瘤 (MPN)(2)-mp4/zh-cn.srt', source_wav='D:/win-pyvideotrans-v3.87/tmp/32672/5068410e1b/en.wav', source_wav_output='C:/Users/zhulingtao/Desktop/Ninja Nerd血液医学/1文件夹/_video_out/骨髓增殖性肿瘤 (MPN)(2)-mp4/en.m4a', target_wav='D:/win-pyvideotrans-v3.87/tmp/32672/5068410e1b/target.wav', target_wav_output='C:/Users/zhulingtao/Desktop/Ninja Nerd血液医学/1文件夹/_video_out/骨髓增殖性肿瘤 (MPN)(2)-mp4/zh-cn.m4a', subtitles='', novoice_mp4='D:/win-pyvideotrans-v3.87/tmp/32672/5068410e1b/novoice.mp4', noextname='骨髓增殖性肿瘤 (MPN)(2)', shibie_audio=None, targetdir_mp4='C:/Users/zhulingtao/Desktop/Ninja Nerd血液医学/1文件夹/_video_out/骨髓增殖性肿瘤 (MPN)(2)-mp4/骨髓增殖性肿瘤 (MPN)(2).mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='晓辰 多语言(Female/CN)', copysrt_rawvideo=False, clear_cache=True, translate_type=10, tts_type=0, recogn_type=0, model_name='large-v3', split_type=0, voice_autorate=True, video_autorate=True, cuda=False, name='C:/Users/zhulingtao/Desktop/Ninja Nerd血液医学/1文件夹/骨髓增殖性肿瘤 (MPN)(2).mp4', basename='骨髓增殖性肿瘤 (MPN)(2).mp4', ext='mp4', dirname='C:/Users/zhulingtao/Desktop/Ninja Nerd血液医学/1文件夹', shound_del_name=None, uuid='5068410e1b', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0)


=
system:Windows-10-10.0.26200-SP0
version:v3.87
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.87

1 Replies

此错误是由于软件在下载 faster-whisper 模型时,网络连接(特别是 SSL 握手)失败导致的。具体原因是软件尝试从镜像站 hf-mirror.com 下载模型时,SSL 协议被中断。

核心解决方法:手动下载并放置模型文件。

请按以下步骤操作:

  1. 手动下载模型文件

    • 访问 Hugging Face 模型页面:https://huggingface.co/Systran/faster-whisper-large-v3/tree/main
    • 下载页面中所有以 .bin 结尾的文件(例如 model.bin)和 config.jsontokenizer.json 等配置文件。如果页面文件较多,建议直接下载整个仓库(点击“Files and versions”旁边的下载按钮)。
  2. 放置模型文件

    • 在软件根目录(例如您的 D:/win-pyvideotrans-v3.87)下,找到或创建 models 文件夹。
    • models 文件夹内,创建名为 faster-whisper-large-v3 的文件夹。
    • 将第1步下载的所有文件放入 D:/win-pyvideotrans-v3.87/models/faster-whisper-large-v3/ 目录中。
  3. 重新运行任务

    • 完成文件放置后,返回软件主界面。
    • 务必勾选“清理已生成”选项,然后重新开始任务。
    • 软件会优先从本地的 models 目录加载模型,从而绕过网络下载步骤。

替代方案(如果手动下载困难)

  • 在软件主界面的“语音识别”设置中,暂时更换为其他识别模型,例如 阿里FunASR(本地)(针对中文效果好)或更小的 faster-whisper 模型(如 medium),这些模型可能已缓存或网络更稳定。
  • 检查您的网络环境,特别是代理或防火墙设置,是否阻止了与 hf-mirror.comhuggingface.co 的 SSL 连接。如果使用代理,请在软件主界面第5行的“网络代理”处正确填写。

完成手动模型放置后,问题应得到解决。

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

Trending Questions