#3840 TaskCfg(cache_folder='D:/Download/win-pyvideotrans-v3.86/tmp13444/speech2text', target_dir='D:/Download/win-pyvideotrans

2409:8a02* Posted at: 2 hours ago 👁6

语音识别阶段出错:[faster-whisper(本地)] 运行时错误: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 332, in snapshot_download
File "tqdm\contrib\concurrent.py", line 69, in thread_map
File "tqdm\contrib\concurrent.py", line 51, in _executor_map
File "tqdm\std.py", line 1169, in iter
File "concurrent\futures\_base.py", line 609, in result_iterator
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "concurrent\futures\thread.py", line 58, in run
File "huggingface_hub\_snapshot_download.py", line 306, in _inner_hf_hub_download
File "huggingface_hub\utils\_validators.py", line 114, in _inner_fn
File "huggingface_hub\file_download.py", line 1010, in hf_hub_download
File "huggingface_hub\file_download.py", line 1184, in _hf_hub_download_to_cache_dir
File "huggingface_hub\file_download.py", line 734, in _create_symlink
OSError: [WinError 1314] 客户端没有所需的特权。: '..\..\blobs\7818adb6de9fa3064d3ff81226fdd675be1f6344' -> 'D:\Download\win-pyvideotrans-v3.86\models\models--Systran--faster-whisper-base\snapshots\ebe41f70d5b6dfa9166e2c581c45c9c0cfc57b66\tokenizer.json'
:
Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\_speech2text.py", line 140, in recogn
File "videotrans\recognition\__init__.py", line 236, in run
File "videotrans\recognition\_base.py", line 78, in run
File "videotrans\recognition\_overall.py", line 193, in _exec
RuntimeError: 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 332, in snapshot_download
File "tqdm\contrib\concurrent.py", line 69, in thread_map
File "tqdm\contrib\concurrent.py", line 51, in _executor_map
File "tqdm\std.py", line 1169, in iter
File "concurrent\futures\_base.py", line 609, in result_iterator
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "concurrent\futures\thread.py", line 58, in run
File "huggingface_hub\_snapshot_download.py", line 306, in _inner_hf_hub_download
File "huggingface_hub\utils\_validators.py", line 114, in _inner_fn
File "huggingface_hub\file_download.py", line 1010, in hf_hub_download
File "huggingface_hub\file_download.py", line 1184, in _hf_hub_download_to_cache_dir
File "huggingface_hub\file_download.py", line 734, in _create_symlink
OSError: [WinError 1314] 客户端没有所需的特权。: '..\..\blobs\7818adb6de9fa3064d3ff81226fdd675be1f6344' -> 'D:\Download\win-pyvideotrans-v3.86\models\models--Systran--faster-whisper-base\snapshots\ebe41f70d5b6dfa9166e2c581c45c9c0cfc57b66\tokenizer.json'

TaskCfg(cache_folder='D:/Download/win-pyvideotrans-v3.86/tmp13444/speech2text', target_dir='D:/Download/win-pyvideotrans-v3.86/output/recogn', remove_noise=False, is_separate=False, detect_language='auto', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='D:/Download/win-pyvideotrans-v3.86/output/recogn/Text.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='Text', shibie_audio='D:/Download/win-pyvideotrans-v3.86/tmp13444/speech2text/Text-1774702449.8394437.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='base', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name='C:/Users/ilove/Desktop/Text.mp4', basename='Text.mp4', ext='mp4', dirname='C:/Users/ilove/Desktop', shound_del_name=None, uuid='127f00d804', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=False)


=
system:Windows-10-10.0.22631-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/Download/win-pyvideotrans-v3.86

1 Replies

这是由于软件安装路径权限问题导致模型下载失败。错误信息显示在创建符号链接时“客户端没有所需的特权”,通常是因为软件被解压到了需要管理员权限的目录(如 C:\Program Files)或在压缩包内直接运行。

解决方案:

  1. 重新解压软件:将软件完整包(.7z文件)解压到非系统盘(如 D:\)的英文路径下,例如 D:\pyVideoTrans。确保路径中不包含中文、空格或特殊符号。
  2. 避免权限目录禁止解压到 C:\Program FilesC:\Windows 或任何需要管理员权限的目录。
  3. 禁止在压缩包内运行禁止直接在压缩软件中双击 sp.exe 运行,必须先解压。
  4. 手动下载模型(可选):如果网络问题持续,可以按照知识库“手动下载适用于 faster-whisper(本地) 语音识别渠道的模型”部分,手动下载 faster-whisper-base 模型文件,并放置到 软件根目录/models/models--Systran--faster-whisper-base/ 文件夹内。

请查阅相关文档:

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