☰ Menu
Home›AI & Machine Learning›whisper.cpp
CLI Open source 22,086 installs/mo Up 77.31×

whisper.cpp for Mac

whisper.cpp

High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model: Plain C/C++ implementation without dependencies Apple Silicon first-class citizen - optimized via ARM NEON, Accelerate framework, M…

whisper.cpp — overview

High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model: Plain C/C++ implementation without dependencies Apple Silicon first-class citizen - optimized via ARM NEON, Accelerate framework, Metal and Core ML AVX intrinsics support for x86 architectures VSX intrinsics support for POWER architectures Mixed F16 / F32 precision Integer quantization support Zero memory allocations at runtime Vulkan support Support for CPU-only inference Efficient GPU support for NVIDIA AMD ROCm GPU support AMD Ryzen AI NPU Support OpenVINO Support Huawei Ascend NPU Support Moore Threads GPU Support C-style API Voice Activity Detection (VAD)

Supported platforms: [x] Mac OS (Intel and Arm) [x] iOS [x] Android [x] Java [x] Linux / FreeBSD [x] WebAssembly [x] Windows (MSVC and MinGW) [x] Raspberry Pi [x] Docker

The entire high-level implementation of the model is contained in whisper.h and whisper.cpp. The rest of the code is part of the ggml machine learning library.

Having such a lightweight implementation of the model allows to easily integrate it in different platforms and applications. As an example, here is a video of running the model on an iPhone 13 device - fully offline, on-device: whisper.objc

https://user-images.githubusercontent.com/1991296/197385372-962a6dea-bca1-4d50-bf96-1d8c27b98c81.mp4

You can also easily make your own offline voice assistant application: command

https://user-images.githubusercontent.com/1991296/204038393-2f846eae-c255-4099-a76d-5735c25c49da.mp4

On Apple Silicon, the inference runs fully on the GPU via Metal:

https://github.com/ggml-org/whisper.cpp/assets/1991296/c82e8f86-60dc-49f2-b048-d2fdbd6b5225

Quick start

First clone the repository:

Navigate into the directory:

Then, download one of the Whisper models converted in ggml format. For example:

Now build the whisper-cli example and transcribe an audio file like this:

For a quick demo, simply run make base.en.

The command downloads the base.en model converted to custom ggml format and runs the inference on all .wav samples in the folder samples.

For detailed usage instructions, run: ./build/bin/whisper-cli -h

Note that the whisper-cli example currently runs only with 16-bit WAV files, so make sure to convert your input before running the tool. For example, you can use ffmpeg like this:

More audio samples

If you want some extra audio samples to play with, simply run:

This will download a few more audio files from Wikipedia and convert them to 16-bit WAV format via ffmpeg.

You can download and run the other models as follows:

Memory usage

POWER VSX Intrinsics

whisper.cpp supports POWER architectures and includes code which significantly speeds operation on Linux running on POWER9/10, making it capable of faster-than-realtime transcription on underclocked Raptor Talos II. Ensure you have a BLAS package installed, and replace the standard cmake setup with:

Quantization

Details

OpenAI Whisper 模型的 C/C++ 版本

How to install whisper.cpp

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2026-10-06; current version v1.9.5, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
v1.9.52026-10-06Stable————
v1.9.42026-09-11Stable————
b49382026-08-20Stable51.1 MB—DownloadDownload
v1.9.22026-08-04Stable7.8 MB—DownloadDownload
v1.9.12026-06-19Stable7.6 MB—DownloadDownload
v1.9.02026-06-17Stable5.2 MB—DownloadDownload
b54542026-10-06Pre-release62.8 MB—DownloadDownload
b51302026-09-11Pre-release54.5 MB—DownloadDownload
b51272026-09-10Pre-release54.5 MB—DownloadDownload
v1.9.32026-08-20Pre-release————

Data from GitHub Releases; stable releases first, each group sorted newest first.

Depended on by 2 apps

The following apps install it automatically, ranked by 30-day installs:

Prebuilt bottle platforms

Official Homebrew bottles cover:

  • Apple silicon · latest macOS
  • Apple silicon · macOS 26 Tahoe
  • Apple silicon · macOS 15 Sequoia
  • Linux · ARM64
  • Linux · x86_64

⚠️ No prebuilt bottle for Intel Macs; Intel users need brew install --build-from-source to build from source.

Installation notes

whisper.cpp requires GGML model files to work. These are not downloaded by default.nTo obtain model files (.bin), visit one of these locations:nn  https://huggingface.co/ggerganov/whisper.cpp/tree/mainn  https://github.com/ggml-org/whisper.cpp/tree/master/modelsn

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
whisper.cppv1.9.5MITCLI22,086
ChatGPT26.1021.31345—Universal binary12,860
openai-whisperv20250625MITCLI4,045
Codexrust-v0.169.0—Universal binary417,825

Similar apps: AI & Machine Learning

Leave a comment

评论表单加载中…