#6082 语音识别阶段出错[阿里FunASR(本地内置)] 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

2607:9d00* Posted at: 1 hour ago

手动没找到这个阿里的模型。是不是不支持了?

语音识别阶段出错[阿里FunASR(本地内置)] 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

Traceback (most recent call last):

File "videotrans\util\help_down.py", line 348, in check_and_down_ms

File "modelscope\hub\snapshot_download.py", line 137, in snapshot_download

return _snapshot_download(

File "modelscope\hub\snapshot_download.py", line 283, in _snapshot_download

raise ValueError(

ValueError: Cannot find the requested files in the cached path and outgoing traffic has been disabled. To enable look-ups and downloads online, set 'local_files_only' to False.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\util\help_down.py", line 359, in check_and_down_ms

File "modelscope\hub\snapshot_download.py", line 137, in snapshot_download

return _snapshot_download(

File "modelscope\hub\snapshot_download.py", line 310, in _snapshot_download

endpoint = _api.get_endpoint_for_read(

File "modelscope\hub\api.py", line 541, in get_endpoint_for_read

if not self.repo_exists(

File "modelscope\hub\api.py", line 689, in repo_exists

raise Exception('Invalid repo_id: %s, must be of format namespace/name' % repo_type)

Exception: Invalid repo_id: model, must be of format namespace/name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 100, in process_task

File "videotrans\task\speech2text.py", line 97, in recogn

File "videotrans\recognition\__init__.py", line 206, in run

File "videotrans\recognition\_base.py", line 92, in run

File "videotrans\recognition\_funasr.py", line 43, in _exec

File "videotrans\util\help_down.py", line 364, in check_and_down_ms

videotrans.configure.excepts.DownloadModelsError: 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

cfg=TaskCfgSTT(uuid='5847f9c105', name='D:/迅雷下载/184-4K.高码率.mp4', dirname='D:/迅雷下载', noextname='184-4K.高码率', basename='184-4K.高码率.mp4', ext='mp4', target_dir='C:/Users/Administrator/Videos/pyvideotrans/recogn', cache_folder='D:/hai/AI/win-pyvideotrans/tmp/4460/5847f9c105', is_cuda=True, source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='C:/Users/Administrator/Videos/pyvideotrans/recogn/184-4K.高码率.srt', target_wav=None, target_wav_output=None, detect_language='yue', recogn_type=3, model_name='paraformer-zh', shibie_audio='D:/hai/AI/win-pyvideotrans/tmp/4460/5847f9c105/184-4K.高码率-1785009611.0909376.wav', remove_noise=False, enable_diariz=True, nums_diariz=0, rephrase=0, fix_punc=0)


=
system:Windows-10-10.0.19045-SP0
version:v4.07
frozen:True
language:zh
root_dir:D:/hai/AI/win-pyvideotrans

1 Replies

阿里FunASR(本地内置) 渠道仍完全支持。当前报错是因为模型文件自动下载时连接阿里魔塔仓库失败。

请手动下载 FunASR 模型文件,解压后放到软件目录的 models/ 下:

  1. 下载地址:https://modelscope.cn/models/himyworld/videotrans/resolve/master/funasr.zip
  2. funasr.zip 解压,得到 funasr 文件夹
  3. 将该文件夹完整复制到 软件目录/models/ 内,最终路径形如 软件目录/models/funasr/...
  4. 重新启动软件即可自动识别已下载的模型

请查阅相关文档:

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource