You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

R中安装audio.whisper包及加载Whisper large模型失败的问题求助

R中安装audio.whisper包及加载Whisper large模型失败的问题求助

大家下午好!我正在尝试在R中安装audio.whisper包,用来实现音频转文字的功能,但过程中遇到了一些问题,想请大家帮忙看看。

一、安装包时的波折

我一开始按照官方指引执行了安装命令:

remotes::install_github("bnosac/audio.whisper", ref = "0.2.1")

结果报错说remotes库没装,我先把remotes装上了,可再次运行安装命令时,又弹出了安装包返回非零退出状态的错误。

之后我按照提示安装了Rtools和pkgbuild库,甚至把所有提示有新版本的包都更新了一遍,但重新执行安装命令后,错误还是没解决。

不过后来我听了建议重启了RStudio,居然成功装上audio.whisper包了!

二、模型加载的新问题

现在包是装上了,但加载Whisper的large模型时又卡壳了。我执行了以下代码:

require(audio.whisper)
library(audio.whisper)
model <- whisper("large")

得到了一堆错误提示:

trying URL 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-large.bin'
Something went wrong
Error in utils::download.file(url = url, destfile = to, mode = "wb") :
cannot open URL 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-large.bin'
whisper_init_from_file: loading model from 'E:/Документы/ggml-large.bin'
whisper_init_from_file: failed to open 'E:/Документы/ggml-large.bin'

我的核心需求就是完成音频转文字,想请教大家:

  • 这个模型加载失败的原因可能是什么?
  • 我需要做哪些操作才能成功加载模型?

提前谢谢大家的帮助!

备注:内容来源于stack exchange,提问作者prolabrus

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 07:10:29