New Tool Radar

Local Speech & Transcription

How to Transcribe Audio With whisper.cpp in Docker

Run whisper.cpp from a Docker container to transcribe audio without building anything on your own machine.

Schematic diagram with four steps: convert the audio to 16-bit WAV, pull the whisper.cpp image, run the container with the audio mounted, then read the transcript.

Building whisper.cpp is not the only way in: the project publishes Docker images, and the README has a Docker section with its prerequisites, images and usage. A container transcribes your audio without a local build.

Run the container with your audio mounted

Follow the README’s Docker section: pick the image for your platform, pull it, and run the container with your audio folder mounted into it so the transcriber can read the file. The container runs the same whisper-cli inside, with the model you choose — download the model first with the download script, or let the container fetch it. The audio must still be 16-bit WAV: convert it with ffmpeg first if it is not.

ffmpeg -i input.mp3 -ar 16000 -ac 1 -c:a pcm_s16le output.wav
# then run the whisper.cpp Docker image per the README's Docker section,
# with your audio folder mounted into the container

A container cannot see your files unless you mount them: the most common Docker failure is a “file not found” for an audio file that is on your machine but not in the container. Mount the folder, check the file is visible inside, and then transcribe.

Try it: four checks

Check What you should see If you do not see it
Image pulled The Docker image downloads Check the image name in the README
Audio mounted The file is visible inside the container Mount the folder
Audio is WAV The file is 16-bit WAV Convert with ffmpeg if not
Transcript produced The container writes a transcript Check the output file

Expected result. We checked the whisper.cpp README, which has a Docker section with prerequisites, images and usage, and says whisper-cli runs only with 16-bit WAV files with the ffmpeg conversion command. We did not run a container on this machine.

Limits

This guide covers the Docker route only. The exact image name and run command are in the README’s Docker section. We did not test any container ourselves.

Sources

See all