#2522 TaskCfg(cache_folder='D:/AB/tmp/34120/1819a11dd1', target_dir='D:/迅雷下载/1月8日-mp3', remove_noise=False, is_separate=False,

120.244* Posted at: 1 month ago 👁55

语音识别阶段出错 [faster-whisper(本地)] Traceback (most recent call last):
File "videotrans\process\_overall.py", line 163, in run
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: Cannot load the vocabulary from the model directory

Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\trans_create.py", line 365, in recogn
File "videotrans\recognition\__init__.py", line 245, in run
File "videotrans\recognition\_base.py", line 80, in run
File "videotrans\recognition\_overall.py", line 182, in _exec
RuntimeError: Traceback (most recent call last):
File "videotrans\process\_overall.py", line 163, in run
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: Cannot load the vocabulary from the model directory

TaskCfg(cache_folder='D:/AB/tmp/34120/1819a11dd1', target_dir='D:/迅雷下载/1月8日-mp3', 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:/迅雷下载/1月8日-mp3/en.srt', target_sub='D:/迅雷下载/1月8日-mp3/zh-cn.srt', source_wav='D:/AB/tmp/34120/1819a11dd1/en.wav', source_wav_output='D:/迅雷下载/1月8日-mp3/en.m4a', target_wav='D:/AB/tmp/34120/1819a11dd1/target.wav', target_wav_output='D:/迅雷下载/1月8日-mp3/zh-cn.m4a', subtitles='', novoice_mp4='D:/AB/tmp/34120/1819a11dd1/novoice.mp4', noextname='1月8日', shibie_audio=None, targetdir_mp4='D:/迅雷下载/1月8日-mp3/1月8日.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='tiqu', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', copysrt_rawvideo=False, clear_cache=True, translate_type=1, tts_type=0, recogn_type=0, model_name='distil-large-v3', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name='D:/1月8日.MP3', basename='1月8日.MP3', ext='mp3', dirname='D:/', shound_del_name=None, uuid='1819a11dd1', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/AB

1 Replies

该错误表明 faster-whisper 无法从模型目录加载词汇表,通常是因为模型文件下载不完整或损坏。

核心解决方法:删除并重新下载模型文件。

操作步骤:

  1. 定位模型缓存目录:

    • 打开软件所在目录 D:/AB
    • 进入 models 文件夹,再进入 faster-whisper 文件夹。
    • 找到名为 distil-large-v3 的文件夹(对应您选择的模型)。
  2. 删除问题模型:

    • distil-large-v3 文件夹整个删除
  3. 重新运行任务:

    • 返回软件主界面,确保网络通畅(可能需要代理),再次点击“开始”执行任务。
    • 软件会自动重新下载完整的 distil-large-v3 模型文件。

如果问题依旧,请尝试:

  • 更换模型: 在主界面“语音识别”区域,将模型暂时更换为 large-v3medium 等,看是否能正常工作。
  • 检查网络/代理: 如果下载始终失败,请检查网络连接,或为软件配置正确的网络代理(主界面第5行“网络代理”处)。
  • 手动下载(备用方案): 如果自动下载失败,可以尝试从 Hugging Face 手动下载模型文件(https://huggingface.co/Systran/faster-whisper-large-v3),并放置到 D:/AB/models/faster-whisper/ 目录下。

请查看更多参考文档:

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.

Related resource