#1825 TaskCfg(cache_folder='D:/softP/win-pyvideotrans-v3.88_20251206_013046/tmp/10048/speech2text', target_dir='F:/下载/win-pyvi

117.155* Posted at: 1 day ago 👁15

语音识别阶段出错:[faster-whisper(本地)] 运行时错误:从国内镜像站下载模型失败,若频繁失败,请考虑科学上网并在软件目录下创建 huggingface.lock 文件,以便从国外源站下载
更多下载方法查看 https://pvt9.com/819
:
Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\_speech2text.py", line 146, 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: 从国内镜像站下载模型失败,若频繁失败,请考虑科学上网并在软件目录下创建 huggingface.lock 文件,以便从国外源站下载
更多下载方法查看 https://pvt9.com/819

TaskCfg(cache_folder='D:/softP/win-pyvideotrans-v3.88_20251206_013046/tmp/10048/speech2text', target_dir='F:/下载/win-pyvideotrans-v3.88_20251206_013046/output/recogn', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='F:/下载/win-pyvideotrans-v3.88_20251206_013046/output/recogn/S01E01.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='S01E01', shibie_audio='D:/softP/win-pyvideotrans-v3.88_20251206_013046/tmp/10048/speech2text/S01E01-1765103373.0078876.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=0, model_name='tiny', split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='G:/整理归档硬盘/B站视频/未阅/【SBS】希腊人,罗马人,维京人:欧洲的奠基者(2014)【三集】/S01E01.mp4', basename='S01E01.mp4', ext='mp4', dirname='G:/整理归档硬盘/B站视频/未阅/【SBS】希腊人,罗马人,维京人:欧洲的奠基者(2014)【三集】', shound_del_name=None, uuid='99afb9a0ee', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=2)


=
system:Windows-10-10.0.26100-SP0
version:v3.88
frozen:True
language:zh
root_dir:D:/softP/win-pyvideotrans-v3.88_20251206_013046

1 Replies

该错误是由于无法从国内镜像站下载 Faster-Whisper 语音识别模型导致的。请按以下步骤解决:

核心解决方法:在软件根目录创建 huggingface.lock 文件,强制从官方源下载。

  1. 定位软件根目录

    • 根据日志,您的软件安装在 D:/softP/win-pyvideotrans-v3.88_20251206_013046/
    • 打开此文件夹。
  2. 创建锁定文件

    • D:/softP/win-pyvideotrans-v3.88_20251206_013046/ 文件夹内,右键 -> 新建 -> 文本文档
    • 将新建的文件重命名huggingface.lock(注意扩展名是 .lock,不是 .txt)。如果系统提示“如果改变文件扩展名,可能会导致文件不可用”,请点击“是”。
  3. 重新运行任务

    • 创建文件后,返回软件主界面。
    • 务必勾选“清理已生成”,然后重新开始语音识别任务。

原理说明:创建 huggingface.lock 文件后,软件将跳过不稳定的国内镜像,直接从 HuggingFace 官方源下载模型,成功率更高。如果您的网络无法访问国外网站,则需要配置科学上网。

如果问题依旧,请检查网络连接,或参考错误信息中提供的链接 https://pvt9.com/819 查看其他下载方法。

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