whisper.cpp is best known as a command-line tool for turning recordings into text, but it also includes whisper-server, a small web server that does the same job on request. Run it once and any app, script or home automation on your PC (or, if you choose, your network) can send it an audio file and get back plain text, JSON or ready-made SRT and VTT subtitles. Nothing leaves your machine, and you don't pay per minute of audio.
This guide contains no performance figures. The steps, options and defaults come from the official whisper.cpp README, the server's README and source code, and the model list on GitHub, read on 26 November 2026.
If you just want to transcribe the odd file, our guide to transcribing audio locally with Whisper is the simpler starting point. This guide is for when you want transcription available as a service.
What you need
A PC running Windows, Linux or macOS. The whisper.cpp README lists Windows (built with Visual Studio's MSVC compiler or MinGW) among its supported platforms.
Either Docker, or the tools to build from source: Git and CMake, plus a C/C++ compiler (Visual Studio on Windows).
A Whisper model in ggml format. These are converted versions of OpenAI's Whisper models; you download one separately.
Optional: FFmpeg, if you want the server to accept MP3, M4A and other formats rather than only WAV files.
Optional: a graphics card. whisper.cpp can use CUDA on Nvidia cards and Vulkan on other GPUs, but you need a build with that support switched on. Our best GPU for Whisper guide covers what to look for.
Step 1: Choose a model
The whisper.cpp model list gives these download sizes. Bigger models are generally more accurate but slower and need more memory; models ending in .en are English-only.
Model | Download size | Notes |
|---|
tiny / tiny.en | 75 MiB | Fastest, least accurate |
base / base.en | 142 MiB | The server's default model file is ggml-base.en.bin |
small / small.en | 466 MiB | |
medium / medium.en | 1.5 GiB | |
large-v3-turbo | 1.5 GiB | A q5_0 quantised version is 547 MiB |
large-v3 | 2.9 GiB | Largest; a q5_0 quantised version is 1.1 GiB |
The README also explains how to make smaller quantised models yourself with the included quantize tool, for example in the Q5_0 format.
Step 2: Get whisper-server running
Option A: Docker (quickest)
The whisper.cpp project publishes Docker images, including ghcr.io/ggml-org/whisper.cpp:main for the CPU, plus main-cuda for Nvidia and main-vulkan versions. The standard image includes FFmpeg. Following the README's example, make a folder for models, download one into it, then start the server:
docker run -it --rm -v /path/to/models:/models ghcr.io/ggml-org/whisper.cpp:main download-ggml-model.sh base /models
docker run -it --rm -p 8080:8080 -v /path/to/models:/models ghcr.io/ggml-org/whisper.cpp:main whisper-server --host 0.0.0.0 -m /models/ggml-base.bin
The README's example adds --host 0.0.0.0 so the server accepts connections from outside the container, and the -p 8080:8080 option publishes it on port 8080 of your PC. The README notes that these examples use the CPU, and that you need to share your GPU with the container to use it. If you run Docker on Windows through WSL 2, our guide to setting up WSL 2 for GPU-accelerated local AI covers the graphics side.
Option B: Build it yourself
Clone the repository and build it with CMake, as the README describes:
git clone https://github.com/ggml-org/whisper.cpp.git
cd whisper.cpp
cmake -B build
cmake --build build -j --config Release
For an Nvidia graphics card, install the CUDA toolkit first and add -DGGML_CUDA=1 to the first cmake command; for Vulkan, check that your graphics driver supports it and use -DGGML_VULKAN=1 instead. Then download a model with the script in the models folder: sh ./models/download-ggml-model.sh base.en on Linux or macOS, or .\models\download-ggml-model.cmd base.en on Windows.
Start the server with the model you downloaded:
./build/bin/whisper-server -m models/ggml-base.en.bin
On Windows, Visual Studio builds put the programs in build\bin\Release\, so the command is build\bin\Release\whisper-server.exe with the same options.
By default the server listens on 127.0.0.1, port 8080, so only programs on your own PC can reach it. Open that address in a browser and you'll see a simple page with the request examples and an upload form.
Step 3: Send it some audio
Transcription requests go to the /inference address as a file upload. The server README's example, trimmed down, looks like this:
curl 127.0.0.1:8080/inference -F file="@recording.wav" -F temperature="0.0" -F response_format="json"
The response_format field decides what you get back. The server's source code supports:
json (the default): the transcript as JSON.
text: plain text.
srt and vtt: subtitle files with timings, ready to load alongside a video. For editing subtitles afterwards, see our guide to generating subtitles locally with Subtitle Edit.
verbose_json: JSON with extra detail, including timed segments and the detected language.
Other useful fields include language, translate (to translate into English) and prompt, which supplies an initial prompt to give the model context.
To switch model without restarting the server, send the path of another model file to /load:
curl 127.0.0.1:8080/load -F model="models/ggml-small.en.bin"
Step 4: Set the options that matter
whisper-server takes most of the same options as the command-line tool. These are the ones worth knowing:
Language: the server defaults to English (-l en). For other languages, set the language code, or use -l auto to let Whisper detect it. You also need a multilingual model, not one ending in .en.
Other audio formats: --convert makes the server convert uploads to WAV with FFmpeg, which must be installed. Without it, send 16-bit WAV files (the README's FFmpeg example converts to 16kHz mono).
Threads and GPU: -t sets CPU threads (default 4). -ng turns off the GPU and -fa enables flash attention.
Skip silence: --vad with a Silero VAD model (-vm) detects speech first and only transcribes those parts, which the README says can significantly speed up transcription. Download the VAD model with the download-vad-model script in the models folder.
Subtitle line length: -ml sets a maximum segment length in characters and -sow splits on words rather than tokens, which helps produce tidier subtitles.
Network access: --host and --port change where it listens.
Keep it safe
The whisper.cpp README for the server is blunt: don't run it with administrator privileges, and run it in a sandboxed environment, because it accepts file uploads and can call FFmpeg to convert them. Inputs should be validated. The server also sends permissive cross-origin headers, which allow web pages open in your browser to send requests to it and read the replies. In practice:
Leave it on the default 127.0.0.1 address unless you need other devices to reach it.
Don't run it as Administrator (or root).
If you do share it on your network, run it in Docker and only on a network you trust, and don't forward the port on your router.
Where it fits
A local whisper-server pairs well with a local text-to-speech server: see our guide to running a Piper TTS server for the other half of a private voice assistant. If you're still choosing a speech recognition engine, whisper.cpp vs faster-whisper and Whisper vs Parakeet compare the main options, and best local transcription apps covers ready-made desktop apps.
Our verdict
whisper-server is the easiest way to turn whisper.cpp into a private transcription service that other apps can use. Docker gets it running quickest; a CUDA or Vulkan build is worth the extra effort if you have a graphics card. Start with base.en or small.en, set -l auto or your language if you don't transcribe English, add --convert if you have FFmpeg, and keep it on 127.0.0.1 without administrator rights, as the developers advise.