New Tool Radar

Local AI

How to Convert Audio to 16 kHz WAV with ffmpeg for Whisper

Use one ffmpeg command to turn any audio or video file into 16 kHz mono 16-bit WAV, the format Whisper tools expect.

Schematic diagram with three steps: run ffmpeg to convert an audio file, check the output is 16 kHz mono WAV, and feed it to a Whisper transcriber.

Whisper tools are picky about input format. The common denominator is 16 kHz sample rate, mono, 16-bit PCM in a WAV container — that is the format Whisper’s front end works with internally, so feeding it anything higher buys no accuracy. One ffmpeg command produces it from almost any input.

Convert the file

ffmpeg -i input.mp4 -vn -ac 1 -ar 16000 -c:a pcm_s16le output.wav

Reading the flags: -i is the input file (any format — mp4, mkv, mov, mp3, m4a, ogg), -vn drops the video, -ac 1 makes it mono, -ar 16000 sets 16 kHz, and -c:a pcm_s16le writes 16-bit PCM. The same line works for an audio-only input — just leave out nothing; -vn is harmless when there is no video track. whisper.cpp’s CLI examples work on .wav files in the samples folder, so this output feeds straight into them.

Check the output before transcribing

ffprobe -v error -show_entries stream=codec_name,sample_rate,channels -of default=noprint_wrappers=1 output.wav

You want codec_name=pcm_s16le, sample_rate=16000, channels=1. If any of those differ, the transcriber will either refuse the file or quietly resample it again. A 16 kHz mono 16-bit WAV runs about 32,000 bytes per second, so an hour is roughly 115 MB — budget disk space for long recordings.

Check What you should see If you do not see it
Output is WAV The file ends in .wav and ffprobe shows pcm_s16le The codec flag was mistyped — re-run with -c:a pcm_s16le
Rate is 16000 sample_rate=16000 in ffprobe The -ar 16000 flag was left out
Mono channels=1 in ffprobe The -ac 1 flag was left out — stereo will be resampled by the tool

Expected result. We checked the transcription-ready guide for the ffmpeg command and the flag meanings, and the whisper.cpp README for the WAV samples. We did not run ffmpeg, so the command above is UNTESTED on this machine — verify the output with ffprobe before transcribing.

Limits

Conversion cannot restore audio that is not in the recording: a muffled, distant or clipped source stays muffled after conversion. Keep the original file until the transcript is done — the WAV is a working copy, not a replacement.

Sources

Sources checked 2026-11-28.

See all