音频与语音MITC++

whisper.cpp

Whisper in plain C/C++ — fast on CPUs, Apple Silicon and mobile.

Star 数
54.4K
Fork 数
6.3K
未关闭 Issue
353
最近提交
2026-10-12

数据来自 GitHub API · 更新于 2026-10-15

whisper.cpp 是什么?

whisper.cpp is a dependency-free port of Whisper built on the ggml library. It runs efficiently on CPUs and Apple Silicon (Metal/Core ML), supports quantized models and powers many desktop and mobile transcription apps.

主要功能

  • No Python required
  • Metal, CUDA, Vulkan and Core ML acceleration
  • Quantized models for low memory use
  • Real-time streaming example

系统要求

平台
Windows · macOS · Linux
内存
~1–4 GB depending on model

如何安装 whisper.cpp

根据项目 README 整理。开源项目更新很快,请以 GitHub 页面上的最新说明为准。

Build from source

  1. 1
    Clone and download a model.
    git clone https://github.com/ggml-org/whisper.cpp.git
    cd whisper.cpp
    sh ./models/download-ggml-model.sh base.en
  2. 2
    Build and transcribe a sample.
    cmake -B build
    cmake --build build -j --config Release
    ./build/bin/whisper-cli -f samples/jfk.wav

优势

  • Very fast on Apple Silicon
  • Easy to embed

不足

  • Command-line only
  • Expects 16 kHz WAV input

whisper.cpp 替代品对比

软件Star 数许可证平台显存
whisper.cpp

Whisper in plain C/C++ — fast on CPUs, Apple Silicon and mobile.

54.4KMIT—
Whisper

OpenAI’s open-source speech recognition and translation model.

110.5KMIT~1 GB (tiny) to ~10 GB (large)
faster-whisper

Whisper reimplemented on CTranslate2 — up to 4× faster with less memory.

25.9KMIT—
WhisperX

Fast transcription with word-level timestamps and speaker diarization.

24.6KBSD-2-Clause—
Coqui TTS

Deep-learning text-to-speech toolkit, including the XTTS voice cloning model.

46.1KMPL-2.0—
GPT-SoVITS

Few-shot voice cloning and TTS with a full training WebUI.

62.8KMIT6 GB+

常见问题

whisper.cpp 免费吗?

是的——whisper.cpp 是开源软件,采用 MIT 许可证。商用前请确认软件及模型权重的许可条款。

whisper.cpp 支持 Windows、Mac 和 Linux 吗?

whisper.cpp 支持:Windows, macOS, Linux。

运行 whisper.cpp 需要什么配置?

RAM: ~1–4 GB depending on model

如何安装 whisper.cpp?

1. Clone and download a model. 2. Build and transcribe a sample.

whisper.cpp 有哪些好的替代品?

常见替代品包括 Whisper, faster-whisper, WhisperX, Coqui TTS,详见本页对比表。