#2161 TaskCfg(cache_folder='D:/win-pyvideotrans-v3.87/tmp/34856/bb90754461', target_dir='D:/2222/Pharmacology,药理学/抗生素/_video_o

79.127* Posted at: 5 hours ago 👁5

语音识别阶段出错:[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: 3ad2392a-28b5-4316-a4dd-43af2ee6740f)')

TaskCfg(cache_folder='D:/win-pyvideotrans-v3.87/tmp/34856/bb90754461', target_dir='D:/2222/Pharmacology,药理学/抗生素/_video_out/Hexokinase.vs.Glucokinase.Part.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='D:/2222/Pharmacology,药理学/抗生素/_video_out/Hexokinase.vs.Glucokinase.Part.2-mp4/en.srt', target_sub='D:/2222/Pharmacology,药理学/抗生素/_video_out/Hexokinase.vs.Glucokinase.Part.2-mp4/zh-cn.srt', source_wav='D:/win-pyvideotrans-v3.87/tmp/34856/bb90754461/en.wav', source_wav_output='D:/2222/Pharmacology,药理学/抗生素/_video_out/Hexokinase.vs.Glucokinase.Part.2-mp4/en.m4a', target_wav='D:/win-pyvideotrans-v3.87/tmp/34856/bb90754461/target.wav', target_wav_output='D:/2222/Pharmacology,药理学/抗生素/_video_out/Hexokinase.vs.Glucokinase.Part.2-mp4/zh-cn.m4a', subtitles='', novoice_mp4='D:/win-pyvideotrans-v3.87/tmp/34856/bb90754461/novoice.mp4', noextname='Hexokinase.vs.Glucokinase.Part.2', shibie_audio=None, targetdir_mp4='D:/2222/Pharmacology,药理学/抗生素/_video_out/Hexokinase.vs.Glucokinase.Part.2-mp4/Hexokinase.vs.Glucokinase.Part.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='gtts', copysrt_rawvideo=False, clear_cache=False, translate_type=10, tts_type=22, recogn_type=0, model_name='large-v3', split_type=0, voice_autorate=True, video_autorate=True, cuda=False, name='D:/2222/Pharmacology,药理学/胰岛素相关/Hexokinase.vs.Glucokinase.Part.2.mp4', basename='Hexokinase.vs.Glucokinase.Part.2.mp4', ext='mp4', dirname='D:/2222/Pharmacology,药理学/胰岛素相关', shound_del_name=None, uuid='bb90754461', 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

这个错误是由于网络连接问题,导致软件无法从 Hugging Face 镜像站(hf-mirror.com)下载 faster-whisper 模型文件。核心原因是 SSL 握手失败。

核心解决方法:手动下载模型文件并放置到正确目录。

请按以下步骤操作:

  1. 确定模型名称:从错误信息看,你选择的模型是 large-v3。软件尝试下载的完整模型路径是 Systran/faster-whisper-large-v3
  2. 手动下载模型

    • 访问 Hugging Face 模型页面:https://huggingface.co/Systran/faster-whisper-large-v3
    • 点击 “Files and versions” 标签页。
    • 点击页面右上角的 “↓” 下载按钮,选择 “Download repository” 将整个模型仓库下载为一个 ZIP 文件。
    • 如果国内网络访问困难,可以尝试使用 https://hf-mirror.com/Systran/faster-whisper-large-v3 镜像站下载。
  3. 放置模型文件

    • 将下载的 ZIP 文件解压。
    • 将解压后的整个文件夹(应包含 config.json, model.bin 等文件)复制或移动到以下目录:

      • Windows 预打包版你的软件解压目录/models/faster-whisper-large-v3/
      • 源码部署版你的用户主目录/.cache/huggingface/hub/models--Systran--faster-whisper-large-v3/
    • 确保最终路径类似 .../models/faster-whisper-large-v3/config.json
  4. 重启软件并重试:关闭 pyVideoTrans,重新启动,再次进行语音识别。软件会优先使用本地已下载的模型,跳过网络下载步骤。

替代方案(如果不想手动下载)

  • 在软件主界面的“语音识别”设置中,暂时切换到一个更小的模型(如 mediumsmall),这些模型可能已预下载或体积更小,下载成功率更高。
  • 检查你的网络代理设置(如果使用了代理),确保其稳定且能正常访问 hf-mirror.comhuggingface.co

完成以上操作后,问题应得到解决。

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