Transcribing a finished recording is one job; turning live speech into text while it is still being spoken is another. whisper.cpp has a separate example for that: whisper-stream, which the README’s examples table describes as real-time transcription of raw microphone capture. It samples the audio every half a second and runs the transcription continuously. This guide is about whisper.cpp’s own whisper-stream example; it is different from the WhisperLive guide, which transcribes live microphone audio with a different tool, and from the whisper-server guide, which serves transcription over HTTP instead of listening to a microphone.
Install SDL2 and build with stream support
whisper-stream needs SDL2 to capture the microphone, and it is not part of the default build. The README says you will need to have sdl2 installed for it to work properly, and gives its own build commands:
cmake -B build -DWHISPER_SDL2=ON
cmake --build build -j --config Release
Download a model if you need one — the README’s Quick start uses base.en:
sh ./models/download-ggml-model.sh base.en
That gives you models/ggml-base.en.bin. If the build cannot find SDL2, install it first and run the build commands again — without it, there is no whisper-stream binary to run.
Run whisper-stream on your microphone
Run the stream example with the model, a thread count, and the README’s own step and length values:
./build/bin/whisper-stream -m ./models/ggml-base.en.bin -t 8 --step 500 --length 5000
The -t 8 sets 8 threads. The --step 500 matches the half-second sampling the README describes: the tool samples the audio every half a second. Speak into your microphone in English for the practice check, since the command above uses ggml-base.en.bin, the English model from the README’s Quick start.
Watch the text appear as you speak
Text appears while you are still speaking, and keeps appearing as you go on — that is the difference from transcribing a file, where nothing appears until the whole file is processed. Read each line as it arrives and compare it with what you just said: a line should match the words you spoke a moment earlier. If the text lags far behind your speech, or whole sentences never appear, stop the run and check that the microphone is the one the system is actually using, then start again. For a practice check, say a short sentence with a distinctive word in it, such as a place name, and look for that word in the live output.
Try it: four checks
| Check | What you should see | If you do not see it |
|---|---|---|
| Built | A whisper-stream binary after building with -DWHISPER_SDL2=ON |
Install sdl2 first — the README says it is needed for the stream example to work properly |
| Model | The command points at models/ggml-base.en.bin |
Download base.en with the README’s download script before running |
| Live | Text appears while you are still speaking | Nothing appearing means the microphone is not reaching the tool — check the system microphone first |
| Match | Each line matches the words you just spoke | Speak English for this check — the command above uses the English model from the Quick start |
Expected result. We checked the whisper.cpp README for the Real-time audio input example section, the naive real-time microphone example that samples the audio every half a second and runs the transcription continuously, the sdl2 requirement, the cmake build with -DWHISPER_SDL2=ON, the whisper-stream command with -m ./models/ggml-base.en.bin -t 8 –step 500 –length 5000, the Quick start download of base.en, and the examples table describing whisper-stream as real-time transcription of raw microphone capture. We did not run whisper.cpp or transcribe any live audio.
Limits
The README calls this a naive example of performing real-time inference on audio from your microphone, so expect rough edges rather than a polished captioning app: it is a demonstration of continuous transcription, not a finished product. It listens to the microphone only — it does not transcribe a file, and it is not the HTTP server, which is a separate example with its own guide. We did not run whisper.cpp, so no live transcript here is a recorded result.
