#2170 TaskCfg(cache_folder='D:/win-pyvideotrans-v3.87/tmp/14720/62d9044435', target_dir='D:/2222/Pharmacology,药理学/胰岛素相关/_video

240a:42a0* Posted at: 1 day ago 👁17

语音识别阶段出错:[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: ca67d2d8-2409-47b7-ac26-57a6a8780182)')

TaskCfg(cache_folder='D:/win-pyvideotrans-v3.87/tmp/14720/62d9044435', target_dir='D:/2222/Pharmacology,药理学/胰岛素相关/_video_out/Insulin.Receptors.and.Transduction.Pathways.part.1-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/Insulin.Receptors.and.Transduction.Pathways.part.1-mp4/en.srt', target_sub='D:/2222/Pharmacology,药理学/胰岛素相关/_video_out/Insulin.Receptors.and.Transduction.Pathways.part.1-mp4/zh-cn.srt', source_wav='D:/win-pyvideotrans-v3.87/tmp/14720/62d9044435/en.wav', source_wav_output='D:/2222/Pharmacology,药理学/胰岛素相关/_video_out/Insulin.Receptors.and.Transduction.Pathways.part.1-mp4/en.m4a', target_wav='D:/win-pyvideotrans-v3.87/tmp/14720/62d9044435/target.wav', target_wav_output='D:/2222/Pharmacology,药理学/胰岛素相关/_video_out/Insulin.Receptors.and.Transduction.Pathways.part.1-mp4/zh-cn.m4a', subtitles='', novoice_mp4='D:/win-pyvideotrans-v3.87/tmp/14720/62d9044435/novoice.mp4', noextname='Insulin.Receptors.and.Transduction.Pathways.part.1', shibie_audio=None, targetdir_mp4='D:/2222/Pharmacology,药理学/胰岛素相关/_video_out/Insulin.Receptors.and.Transduction.Pathways.part.1-mp4/Insulin.Receptors.and.Transduction.Pathways.part.1.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,药理学/胰岛素相关/Insulin.Receptors.and.Transduction.Pathways.part.1.mp4', basename='Insulin.Receptors.and.Transduction.Pathways.part.1.mp4', ext='mp4', dirname='D:/2222/Pharmacology,药理学/胰岛素相关', shound_del_name=None, uuid='62d9044435', 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-large-v3 模型文件。核心原因是 SSL 握手失败。

解决方法:

方案一:手动下载模型(推荐,一劳永逸)

  1. 访问模型下载页面:https://huggingface.co/Systran/faster-whisper-large-v3/tree/main
  2. 点击页面上的 “Files and versions” 标签页。
  3. 逐个下载所有文件(主要是 .bin.json 文件)。
  4. 在您的软件根目录(D:/win-pyvideotrans-v3.87)下,找到 models 文件夹。
  5. models 文件夹内,新建一个名为 faster-whisper-large-v3 的文件夹。
  6. 将下载的所有文件放入这个新建的文件夹内。
  7. 重启软件,再次尝试识别。

方案二:更换模型(快速尝试)

  1. 在主界面的“语音识别”区域,将模型从 large-v3 更换为 large-v2medium
  2. 这些较小的模型可能已缓存,或者网络连接更稳定。

方案三:检查网络环境

  1. 确保您的网络可以正常访问 huggingface.cohf-mirror.com
  2. 如果您使用了代理,请在软件主界面第5行的“网络代理”处正确填写代理地址(例如 http://127.0.0.1:10809)。
  3. 暂时关闭防火墙或杀毒软件,看是否是其拦截了连接。

方案四:使用其他识别渠道
如果问题持续,可以暂时切换到其他语音识别渠道,例如:

  • 阿里FunASR(本地):对中文识别效果很好。
  • 或选择任一个在线API渠道(如OpenAI、字节火山等)。

完成以上任一方案后,请重新处理视频。如果问题依旧,请提供 D:/win-pyvideotrans-v3.87/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

Trending Questions