#1939 语音识别阶段出错:[faster-whisper(本地)] 多次重试连接失败,服务可能暂时不可用:Traceback (most recent call last): File "videotrans\task\job.py", line

155.117* Posted at: 20 days ago 👁41

语音识别阶段出错:[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 182, 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: 4ecc5706-4303-4c57-b4e5-013d04401554)')

TaskCfg(cache_folder='E:/BaiduNetdiskDownload/win-pyvideotrans-v3.86/tmp/21296/618a2cdc6d', target_dir='E:/BaiduNetdiskDownload/_video_out/08._chs-mp4', remove_noise=False, is_separate=False, detect_language='ko', subtitle_language=None, source_language='韩语', target_language='简体中文', source_language_code='ko', target_language_code='zh-cn', source_sub='E:/BaiduNetdiskDownload/_video_out/08._chs-mp4/ko.srt', target_sub='E:/BaiduNetdiskDownload/_video_out/08._chs-mp4/zh-cn.srt', source_wav='E:/BaiduNetdiskDownload/win-pyvideotrans-v3.86/tmp/21296/618a2cdc6d/ko.wav', source_wav_output='E:/BaiduNetdiskDownload/_video_out/08._chs-mp4/ko.m4a', target_wav='E:/BaiduNetdiskDownload/win-pyvideotrans-v3.86/tmp/21296/618a2cdc6d/target.wav', target_wav_output='E:/BaiduNetdiskDownload/_video_out/08._chs-mp4/zh-cn.m4a', subtitles='', novoice_mp4='E:/BaiduNetdiskDownload/win-pyvideotrans-v3.86/tmp/21296/618a2cdc6d/novoice.mp4', noextname='08._chs', shibie_audio=None, targetdir_mp4='E:/BaiduNetdiskDownload/_video_out/08._chs-mp4/08._chs.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=2, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Xiaoxiao(Female/CN)', copysrt_rawvideo=False, clear_cache=True, translate_type=0, tts_type=0, recogn_type=0, model_name='large-v3', split_type=0, voice_autorate=True, video_autorate=False, cuda=False, name='E:/BaiduNetdiskDownload/A64 从Blender基础知识到3D动画/08._chs.mp4', basename='08._chs.mp4', ext='mp4', dirname='E:/BaiduNetdiskDownload/A64 从Blender基础知识到3D动画', shound_del_name=None, uuid='618a2cdc6d', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=True)

1 Replies

此错误是由于软件在下载 faster-whisper-large-v3 模型时,网络连接(特别是SSL握手)失败导致的。核心原因是网络环境不稳定或代理设置问题,导致无法从镜像站 hf-mirror.com 下载模型。

请按以下步骤解决:

  1. 检查网络与代理

    • 确保你的网络连接稳定。
    • 如果你使用了网络代理(VPN/Clash等),请确保代理工作正常,并且软件的网络代理设置正确。你可以在软件主界面第5行的“网络代理”处填写你的代理地址(例如 http://127.0.0.1:7890)。
  2. 手动下载模型(推荐且最有效的方法)

    • 访问 Hugging Face 模型页面:https://huggingface.co/Systran/faster-whisper-large-v3
    • 点击“Files and versions”标签页。
    • 下载整个仓库(使用“Clone repository”按钮旁的下载链接,或使用 git clone 命令)。
    • 将下载的模型文件夹(应包含 config.json, model.bin 等文件)放置到软件目录下的 models/faster_whisper/ 文件夹中(如果没有此文件夹请手动创建)。
    • 重启软件,再次尝试识别。
  3. 更换模型(临时方案)

    • 在软件主界面第2行的“语音识别模型”下拉菜单中,选择一个更小或不同的模型(例如 medium, smalltiny)。小模型文件更小,下载失败的概率更低。
  4. 清理缓存后重试

    • 在下次处理时,确保勾选主界面第1行的“清理已生成”选项,然后重新开始任务。

如果以上步骤均无效,可能是你的网络环境对 hf-mirror.com 有特殊限制。你可以尝试在系统环境变量中设置 HF_ENDPOINT=https://hf-mirror.com 后重启软件,或者寻找其他可用的模型下载源。

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