Whistle (offline)

语音转文字离线仅 CPU允许商用

使用 Cactus Compute 的语音模型 Whistle,在你自己的电脑上把视频中的语音转为带时间戳的字幕。17 MB 的模型就在插件里:首次使用无需下载,无需显卡,也没有任何内容会离开你的电脑。

在 Subtitld 中安装

设置 插件 Whistle (offline) 安装

Subtitld 会下载它、校验其 SHA-256,并保持更新。

GitHub 上的源代码
语言
7
模型
1
插件下载量
23–31 MB
内存,至少
512 MB

功能说明

无需下载

模型和引擎都在插件里。安装后即可开始转录,即使离线也可以。

对电脑负担小

它在 CPU 上运行,占用内存很少。在台式电脑上,二十分钟的音频大约需要两分钟。

进度清晰可见

长音频每次转录大约一分钟,因此进度条会持续前进,点击取消后一分钟内即可生效。

名字拼写正确

在 Keywords 中列出视频里用到的人名和术语,Whistle 在对某个词没有把握时会优先选用它们。

模型

只有一个模型 Whistle,它已经包含在插件里。

模型 下载适合
Whistle 默认
17 MB
其七种语言中的清晰语音

Whistle 并不总会加上逗号和句号。加了的时候,每条字幕包含一句话;没加的时候,字幕会在大约两行文字或 7 秒处断开。

选项

在 设置 › 插件 › Whistle (offline) › 配置 中。

Keywords
默认: 空

视频中出现的人名和术语,用逗号分隔。当 Whistle 对某个词没有把握时,会偏向这些词,因此原本可能拼错的名字也能写对。

语言

英语、德语、法语、西班牙语、意大利语、荷兰语和波兰语。如果留空语言,则自动检测。其他语言的项目会被直接拒绝,而不会去猜测:这些语言请使用 Whisper (offline)。

  • en
  • de
  • fr
  • es
  • it
  • nl
  • pl

平台

系统 下载已测试
Linux x86-64 30.8 MB在真实机器上运行,并在 CI 中测试
macOS (Apple 芯片) 28.7 MB在 CI 中测试
Windows x86-64 22.6 MB在 CI 中测试

每次发布之前,每个构建版本都会在 CI 中以安装 Subtitld 的方式转录一段示例音频。

故障排除

  • unsupported_languageWhistle 不认识你项目的语言。请使用 Whisper (offline),它支持 99 种语言。
  • model_missing插件中缺少一个文件。请重新安装插件。
  • bad_paramsSubtitld 无法传递音频,或者找不到 ffmpeg。错误信息会说明是哪一种。
  • oom内存不足。请关闭其他程序,或者只转录一段区间而不是整个视频。
  • disk_full磁盘空间不足,无法解码音频。请释放一些空间后重试。

许可

插件
Apache-2.0
引擎
Apache-2.0
Needle,来自 Cactus Compute
模型
Apache-2.0
Whistle 权重

可用于商业工作:插件、Needle 引擎和 Whistle 权重均采用 Apache-2.0。

版本

  • 26.10.1

    Long audio no longer looks stuck at 20%.

    Whistle used to transcribe the whole file in one go: the progress bar stopped at 20% until it finished, Cancel had to wait for the end, and long files slowed down more than their length (20 minutes took about 3 minutes). The audio is now transcribed about a minute at a time, cut at quiet moments so no word is split:

    • The progress bar moves after every minute of audio.
    • Cancel takes effect within a minute.
    • 20 minutes of audio take about 2 minutes instead of 3, with the same words.
    • With no language set, the first stretch of speech sets the language for the rest of the file.

    Versions now follow Subtitld's own: year, month and the release of that month. 26.10.1 comes after 0.0.2, and Subtitld offers it as an update.

    The model, the engine and the add-on are unchanged otherwise: Apache-2.0, offline, CPU only.

其他语音转文字插件

更新于 · 来自插件目录 报告此插件的问题