Intermediate 18 minAudio

Whisper + Ollama locally: 100% offline transcription ligne

Whisper + Ollama locally: 100% offline transcription

To transcribe locally, install whisper.cpp, download a model (large-v3-turbo or medium for French), convert the audio to 16 kHz WAV, and run whisper-cli with -l fr. Ollama doesn't offer a Whisper model: you use it afterward to summarize the text. Its documentation also describes a transcription endpoint for audio models such as lfm3-audio.

By Mohamed Meguedmi·Update 2026-11-19·Tested on Windows, macOS, and Linux

#Why use a whisper + ollama pipeline for local transcription?

A meeting recording contains client names, figures, strategic decisions, and sometimes HR data. SaaS transcription services store these recordings on their servers and use them (according to their terms of service) to train their own models. For a team that takes confidentiality seriously, that is non-negotiable.

Online transcription services store your audio on their servers; reread their terms of service before uploading a meeting. For a team that takes privacy seriously, local transcription sidesteps the issue.

i
The breakdown
OpenAI's Whisper is freely downloadable under the MIT license and runs offline. whisper.cpp, its C/C++ port, runs it efficiently on CPU and GPU, and Python isn't required. Ollama, for its part, exposes a local LLM on http://localhost:11434. You chain the two: audio, then text (Whisper), then a structured summary (Ollama). Everything stays on your disk.

#Running Whisper locally: which option should you choose?

The complete kit for building your own AI assistant.

Benefit from our experience and a guided path to build your local assistant and use your AI every day.

  • Lifetime online access
  • PDF + files
  • Refunded within 30 days

"Local Whisper" covers several tools. The table compares them based on what their official repositories say. This guide walks through the first row, whisper.cpp, and then summarization with Ollama.

Local transcription options · official sources checked on November 16, 2026
OptionWhat it isChoose it if…
whisper.cppC/C++ port of Whisper (ggml-org), CPU and NVIDIA GPU, AMD, Vulkan, Apple Silicon. Latest release: 1.9.5 (October 6, 2026).You want a standalone binary, without Python, on Mac, Linux, or Windows.
openai-whisper (Python)OpenAI's reference implementation, MIT license, installed with pip install -U openai-whisper. The turbo model is the default there.You're already working in a Python environment or want the reference implementation.
faster-whisperA reimplementation of Whisper using CTranslate2, claimed to be up to 4 times faster than openai/whisper with the same accuracy. MIT license, pip install faster-whisper.You have an NVIDIA GPU and want a fast Python pipeline.
Ollama audio modelsModels that accept audio input, such as lfm3-audio (2 billion parameters, French among 18 languages), via /v1/audio/transcriptions.You want to keep everything in Ollama and don't need SRT subtitles.
Parakeet TDT 0.6B v3 (NVIDIA)600 million parameters, 25 European languages including French, punctuation and timestamps, CC BY 4.0 license.You're looking for a compact non-Whisper alternative.
Voxtral Mini 3B (Mistral)Audio model under the Apache 2.0 license, with French among eight languages, transcription of up to 30 minutes, and about 9.5 GB of GPU memory.You have a recent GPU and want a model from a French vendor.

#Ollama and Whisper: what Ollama can do as of November 2026

The official Ollama library has no model named whisper, so “ollama whisper” or “whisper ollama” doesn't refer to an ollama pull whisper command. In this guide, Ollama is used to summarize the transcribed text, which is what it's built for.

However, Ollama has added support for models that accept audio. Its documentation describes an OpenAI-compatible endpoint, /v1/audio/transcriptions, with these stated limits:

File
WAV, up to 512 MB and 2 hours; audio longer than what the model accepts at once (30 seconds for current models) is split at pauses.
Outputs
json (default), text, and verbose_json. The srt and vtt formats and the timestamp_granularities option are not supported.
Models
lfm3-audio (Liquid AI, 2 billion parameters, LFM Open License v1.0) transcribes, translates, and synthesizes speech in 18 languages, including French. It became available on Mac in Ollama version 0.40.12, then on Linux and Windows in 0.40.13. Gemma 4 handles audio on Ollama's MLX engine, which means on Mac.
Synthetic speech
The phonon model generates speech from text: the opposite of transcription. See the local voice assistant guide.
Transcription through the Ollama API (fields listed in the documentation, OpenAI format)
ollama pull lfm3-audio

curl http://localhost:11434/v1/audio/transcriptions \
  -F file=@reunion.wav \
  -F model=lfm3-audio \
  -F language=fr \
  -F response_format=text
i
When to stick with whisper.cpp
For SRT or VTT subtitles, long meetings, or fine-grained control over the Whisper model size, whisper.cpp is still the direct route: Ollama returns neither srt nor vtt. The rest of this guide uses it.

#Prerequisites

macOS, Linux, or Windows (WSL2)
whisper.cpp compiles everywhere. On pure Windows, use WSL2—the native build works but requires more tinkering.
Ollama installed and operational
A ollama run gemma4:e4b should respond. If not, go back through the installation guide for your system.
A lightweight LLM in Ollama
gemma4:e4b (about 10 GB of VRAM at Q4, according to the catalog) works for summarization; for a more nuanced summary, qwen3.8:27b requires about 16 GB.
C++ compiler and CMake
build-essential cmake on Debian/Ubuntu, Xcode Command Line Tools on macOS.
ffmpeg
To convert your .m4a, .mp3, or .mp4 files to 16 kHz WAV. By default, whisper-cli reads 16-bit WAV; building it with FFmpeg expands the supported formats.
8 GB of memory minimum
The large-v3 model file is about 2.9 GiB and the large-v3-turbo file about 1.5 GiB; leave headroom for the summarization LLM. 16 GB is more comfortable.
Optional GPU
A GPU speeds up transcription. For reference, OpenAI cites about 6 GB of VRAM for turbo and 10 GB for large with its Python implementation. On Apple Silicon, the whisper.cpp README states that inference runs entirely on the GPU via Metal.

#1. Install whisper.cpp

The README suggests cloning the repository and compiling. It takes a few minutes and gives you a binary you can move anywhere you want.

Clone + CPU build
git clone https://github.com/ggml-org/whisper.cpp.git
cd whisper.cpp
cmake -B build
cmake --build build -j --config Release

The main binary is located at build/bin/whisper-cli (formerly named main before the CMake overhaul). This is the one you will call to transcribe.

→
GPU acceleration
For CUDA (NVIDIA), add -DGGML_CUDA=1 to the cmake -B build command. For AMD (ROCm), use -DGGML_HIP=1 with your architecture, for example -DAMDGPU_TARGETS="gfx1201". For Vulkan, -DGGML_VULKAN=1. On Apple Silicon, there's nothing to configure: Metal is used. The binary then detects the GPU at launch.
CUDA variant
cmake -B build -DGGML_CUDA=1
cmake --build build --config Release -j

Install ffmpeg separately if it isn't already installed:

ffmpeg
# Debian / Ubuntu / WSL2
sudo apt install ffmpeg

# macOS
brew install ffmpeg

#2. Choose the right Whisper model (tiny → large-v3)

Whisper comes in six sizes: tiny, base, small, medium, large, and turbo, an optimized version of large-v3. Models with .en in their name are English-only, so use a multilingual model for French. The table lists the file sizes from the whisper.cpp repository and the ballpark figures published by OpenAI.

ggml file sizes (whisper.cpp) and OpenAI's ballpark figures for its Python implementation (VRAM, speed relative to large, measured by OpenAI on an A100 in English)
Modelggml fileApproximate VRAMRelative speed
tiny75 MiBabout 1 GBabout 10 times
base142 MiBabout 1 GBabout 7 times
small466 MiBabout 2 GBabout 4 times
medium1.5 GiBabout 5 GBabout 2x
large-v32.9 GiBabout 10 GB1x
large-v3-turbo1.5 GiB (547 MiB in q5_0)about 6 GBabout 8 times

To transcribe a meeting in French, start with large-v3-turbo: OpenAI describes it as a faster version of large-v3 with minimal degradation. Fall back to medium or small if memory is tight. Note that turbo isn't trained for translation into English, so use medium or large for that.

Download a model
# Depuis le dossier whisper.cpp
sh ./models/download-ggml-model.sh large-v3-turbo
# ou
sh ./models/download-ggml-model.sh medium

Models are saved to models/ in ggml format. You can download several and switch between them as needed.

i
Quantized versions
If memory is tight, the script offers quantized variants: large-v3-q5_0 (about 1.1 GiB), large-v3-turbo-q5_0 (about 547 MiB), or medium-q5_0. Quantization reduces memory use at the cost of a small loss in accuracy, so compare the results on your own audio.

#3. Transcribe an audio file

whisper.cpp only reads mono 16 kHz WAV files. We use ffmpeg to prepare the audio, then whisper-cli to transcribe it.

Conversion to 16 kHz WAV
ffmpeg -i reunion.m4a -ar 16000 -ac 1 -c:a pcm_s16le reunion.wav
-ar 16000
Resample at 16 kHz (the sampling rate used to train Whisper).
-ac 1
Forces mono. Whisper ignores stereo anyway.
-c:a pcm_s16le
16-bit little-endian PCM, the expected uncompressed WAV format.
Transcription
./build/bin/whisper-cli \
  -m models/ggml-large-v3-turbo.bin \
  -f reunion.wav \
  -l fr \
  -otxt \
  -of reunion

The output goes to reunion.txt. A few useful options to know:

-l fr
Forces French. Note: without this option, whisper-cli uses English (default value en). For automatic detection, use -l auto, but setting the language avoids errors on short sentences.
-otxt / -osrt / -ovtt / -oj
Output format: plain text, SRT or VTT subtitles, or JSON (-ojf for a more detailed version). You can combine them.
-of <prefix>
Output filename prefix (without the extension).
-t 8
Number of CPU threads. The default is 4; increase it on a recent processor.
-pp (--print-progress)
Shows progress. Handy for long files.
→
JSON format for the pipeline
To chain it with an LLM, add -oj: you get the segments with their start and end timestamps. That way you can cite a precise timestamp in the final summary ("decision made at 23:14").

#4. Summarize the transcription with Ollama

Once you have the raw transcription, send it to Ollama through its local HTTP API. The /api/chat endpoint is the most direct option for one-shot use.

Ollama prerequisites
ollama pull gemma4:e4b
# Ou pour un résumé plus fin d'une longue réunion :
ollama pull qwen3.8:27b

For a one-hour meeting, the transcript often runs 10,000 to 15,000 tokens. gemma4:e4b lists a 128,000-token context window in the Ollama library, which is more than enough. For a more polished summary, qwen3.8:27b (18 GB download, 256,000 tokens) needs about 16 GB of VRAM at Q4, according to the catalog.

Quick test with curl
curl -s http://localhost:11434/api/chat -d '{
  "model": "gemma4:e4b",
  "stream": false,
  "options": {"temperature": 0.2, "num_ctx": 16384},
  "messages": [
    {"role": "system", "content": "Tu résumes une réunion de travail en français."},
    {"role": "user", "content": "<COLLE ICI LE CONTENU DE reunion.txt>"}
  ]
}' | jq -r '.message.content'
!
Set num_ctx yourself
Ollama picks a default context size based on VRAM: 4,000 tokens below 24 GB, which would truncate a long transcript. Pass num_ctx (8192, 16384, 32768…) explicitly in options on every call, or set OLLAMA_CONTEXT_LENGTH when you start the server.

#5. Complete pipeline: meeting-minutes example (1h)

We put everything together in a Python script that takes an audio file as input and outputs a Markdown report. This is the core of a reusable local whisper ollama transcription pipeline.

Python dependencies
pip install requests
pipeline_reunion.py
#!/usr/bin/env python3
"""Audio -> transcription Whisper -> compte-rendu via Ollama."""
import subprocess, sys, requests, pathlib, json

WHISPER_BIN = "./build/bin/whisper-cli"
WHISPER_MODEL = "models/ggml-large-v3-turbo.bin"
OLLAMA_URL = "http://localhost:11434/api/chat"
LLM_MODEL = "gemma4:e4b"

SYSTEM_CR = """Tu es un assistant qui produit des comptes-rendus de
réunion en français à partir d'une transcription brute.

FORMAT DE SORTIE (Markdown) :
# Compte-rendu
## Participants identifiables
## Sujets abordés (1 paragraphe par sujet)
## Décisions prises
## Actions à mener (avec porteur si mentionné)
## Points en suspens

RÈGLES :
- N'invente AUCUN nom, AUCUNE décision, AUCUNE action.
- Si une info manque, écris \"Non précisé\".
- Sois concis : un compte-rendu se lit en 2 minutes.
"""

def to_wav(src: pathlib.Path) -> pathlib.Path:
    dst = src.with_suffix(".wav")
    subprocess.run([
        "ffmpeg", "-y", "-i", str(src),
        "-ar", "16000", "-ac", "1", "-c:a", "pcm_s16le",
        str(dst),
    ], check=True)
    return dst

def transcribe(wav: pathlib.Path) -> str:
    prefix = wav.with_suffix("")
    subprocess.run([
        WHISPER_BIN, "-m", WHISPER_MODEL, "-f", str(wav),
        "-l", "fr", "-otxt", "-of", str(prefix),
        "--print-progress",
    ], check=True)
    return prefix.with_suffix(".txt").read_text(encoding="utf-8")

def summarize(transcription: str) -> str:
    r = requests.post(OLLAMA_URL, json={
        "model": LLM_MODEL,
        "stream": False,
        "options": {"temperature": 0.2, "num_ctx": 16384},
        "messages": [
            {"role": "system", "content": SYSTEM_CR},
            {"role": "user",   "content": transcription},
        ],
    }, timeout=600)
    r.raise_for_status()
    return r.json()["message"]["content"]

if __name__ == "__main__":
    src = pathlib.Path(sys.argv[1])
    wav = to_wav(src)
    print(f"[1/3] Audio converti -> {wav}")
    texte = transcribe(wav)
    print(f"[2/3] Transcription : {len(texte)} caractères")
    cr = summarize(texte)
    out = src.with_name(src.stem + "_compte-rendu.md")
    out.write_text(cr, encoding="utf-8")
    print(f"[3/3] Compte-rendu : {out}")
Launch
python pipeline_reunion.py reunion.m4a

Processing time depends on the Whisper model, the GPU, and the length of the recording. Try a clip of a few minutes first to judge quality and speed on your machine; no network requests are made during processing.

→
Very long meetings
Beyond 90 minutes or 30,000 transcription tokens, split the text into 10,000-token chunks, summarize each chunk, then ask the LLM to merge the summaries. This is the classic map-reduce pattern. Otherwise, summary quality collapses, even if num_ctx accepts it.

#Tips and troubleshooting

Transcription that hallucinates during silences
Whisper sometimes hallucinates text during long silences or music. Set the language with -l fr, enable voice activity detection (VAD) with --vad -vm models/ggml-silero-v6.2.0.bin after downloading the model with ./models/download-vad-model.sh silero-v6.2.0, and try -sns (suppresses non-speech tokens) or -nf (disables temperature fallback), as recommended in the whisper-cli README.
Distorted proper names
Whisper doesn't know your coworkers' names. Pass them in an initial prompt with --prompt "Marie, Julien, Samir, ACME Corp, ProjetX" and they'll be spelled more accurately.
Compressed audio (Zoom, Teams)
Zoom MP4 recordings often contain poor-quality mono audio. Prefer Zoom's “audio only” export (M4A), or record in parallel with OBS if quality is a priority.
ggml_metal_init error on Mac
You compiled without Metal, or whisper.cpp cannot find the resources. Recompile from scratch: rm -rf build && cmake -B build && cmake --build build --config Release -j.
Ollama timeout on large context
The HTTP client times out before the response finishes. In requests, increase the timeout to timeout=600 (10 minutes). On the server side, OLLAMA_KEEP_ALIVE=30m keeps the model warm.
Truncated transcription
If the summary seems to cut off the audio partway through, num_ctx is too low. Check the token count (wc -w on the .txt × 1.3 ≈ tokens) and set num_ctx to twice that.
Diarization (who is speaking)
whisper.cpp offers only experimental speaker-turn segmentation (-tdrz), with the small.en-tdrz model, which is English-only. To tell speakers apart in French, add pyannote.audio to the pipeline, then label each segment. That's a separate layer, outside the scope of this guide.
The text comes out in English
You forgot -l fr: whisper-cli's default language is English. Run it again with -l fr or -l auto.
i
Actual hardware cost
For everyday use, a recent Mac or a PC with a consumer GPU is usually enough. Compare the cost of that hardware, which you keep, with the subscription to an online transcription service you would use instead.

#Sources and verification as of November 16, 2026

The whisper.cpp commands, model sizes, and Ollama audio capabilities were reviewed on November 16, 2026, against the official repositories and documentation.

#Go further

Your pipeline transcribes and summarizes locally. Three logical directions depending on your needs:

Medical report with faster-whisper
The consultation transcription guide uses faster-whisper (an optimized Python port) with a focus on medical confidentiality, pyannote diarization, and French healthcare GDPR compliance. An interesting variation on the same pattern.
Choose the right summarization LLM
Summarization is where quality varies the most. The guide to choosing your quantization compares Q4_K_M, Q5_K_M, and Q8_0—a noticeable difference on long, nuanced text.
Automate the pipeline with n8n
To trigger the chain as soon as an audio file arrives (watched folder, email, Slack), the n8n + Ollama automation guide shows you how to build the workflow without code.

#Frequently asked questions

FAQ
How do you use Whisper locally?+
Clone whisper.cpp, build it with cmake, download a model with models/download-ggml-model.sh, convert your audio to 16 kHz WAV with ffmpeg, then run whisper-cli with -m, -f, and -l fr. Everything runs on your machine, with no account required.
Does Whisper work with Ollama?+
Ollama does not include a Whisper model. You use Whisper (whisper.cpp) to transcribe, then Ollama to summarize the text. Ollama also supports audio models such as lfm3-audio through a /v1/audio/transcriptions endpoint, but without SRT or VTT output.
Which Whisper model should you choose for French?+
A multilingual model, without the .en suffix. large-v3-turbo is a good starting point; medium or small work if memory is limited. Don't forget -l fr.
Is local Whisper free and offline?+
Yes: Whisper's code and weights are released under the MIT license, and whisper.cpp runs without a connection once the model is downloaded.
Do you need a GPU to run Whisper locally?+
No, whisper.cpp runs on the CPU. A GPU speeds up transcription; OpenAI cites about 6 GB of VRAM for turbo and 10 GB for large with its Python implementation.
Can it tell speakers apart?+
Not reliably with whisper.cpp alone: its speaker-turn segmentation is experimental and limited to an English model. Add pyannote.audio for diarization in French.
Did this guide help you?

Feedback, an error, or a clarification? Let us know—it improves the guide for everyone.