Formats

Transcribing audio with MarkItDown

Updated 2026-11-16·Upstream source ↗
Markdown view

MarkItDown turns speech in a WAV, MP3 or M4A file into text through the SpeechRecognition package. It worked on short clean clips, failed on MP3 and M4A until ffmpeg was installed, and returned a truncated, garbled result on a 79-second clip. Whether the audio leaves your machine is something we did not capture on the network, so check before you use confidential recordings.

Short answer

Install the extra and, for MP3 and M4A, ffmpeg:

Command
pip install "markitdown[pdf]"

(Use audio-transcription instead of pdf.) WAV worked without ffmpeg; MP3 and M4A failed without it on all three systems. Short clips worked; our 79-second clip came back as 288 of 1,200 characters.

Tested with markitdown 0.1.9 · Python GitHub-hosted Ubuntu, Windows and macOS runners, Python 3.13, with and without ffmpeg; one run per file (T19). The network path of the audio was NOT captured (T24 not run) · 2026-11-16 · evidence: audio-youtube.csv, ubuntu-latest-clips.json, ubuntu-latest-clips-noffmpeg.json

What you get

A ### Audio Transcript: heading and the text, lower case and without punctuation:

en-short.wav (the raw test record)
{
 "label": "ubuntu-latest",
 "phase": "clips",
 "no_ffmpeg": false,
 "date": "2026-11-15",
 "python": "3.13.18",
 "platform": "Linux-7.0.0-1019-azure-x86_64-with-glibc2.43",
 "ffmpeg": "/usr/bin/ffmpeg",
 "rows": [
  {
   "file": "en-short.wav",
   "exit": 0,
ubuntu-latest-clips.json · 9,433 bytes · first 12 of 137 lines shown output (.md)

Formats and what each needs

A short clip in three containers, on three systems, with and without ffmpeg
FileSystemffmpegWorkedSecondsMessage
test.wavmacosno ffmpegyes4.2
test.mp3macosno ffmpegno1.4- AudioConverter threw FileNotFoundError with message: No such file or directory: 'ffprobe'
test.m4amacosno ffmpegno1.6- AudioConverter threw FileNotFoundError with message: No such file or directory: 'ffprobe'
test.wavmacosffmpeg installedyes2.1
test.mp3macosffmpeg installedyes2.1
test.m4amacosffmpeg installedyes2.5
test.wavubuntuno ffmpegyes2.1
test.mp3ubuntuno ffmpegno1.1- AudioConverter threw FileNotFoundError with message: No such file or directory: 'ffprobe'
test.m4aubuntuno ffmpegno1.0- AudioConverter threw FileNotFoundError with message: No such file or directory: 'ffprobe'
test.wavubuntuffmpeg installedyes1.8
test.mp3ubuntuffmpeg installedyes2.2
test.m4aubuntuffmpeg installedyes2.5
short-video-with-captionsubuntun/apage text only2.7754 characters, exit 0
popular-music-videoubuntun/atranscript2.85084 characters, exit 0
short-urlubuntun/apage text only1.8754 characters, exit 0
nonexistent-idubuntun/apage text only1.3754 characters, exit 0
playlist-urlubuntun/apage text only1.5786 characters, exit 0
shorts-urlubuntun/apage text only2.2754 characters, exit 0
test.wavwindowsno ffmpegyes2.8
test.mp3windowsno ffmpegno1.5- AudioConverter threw FileNotFoundError with message: [WinError 2] The system cannot find the file specified
test.m4awindowsno ffmpegno1.5- AudioConverter threw FileNotFoundError with message: [WinError 2] The system cannot find the file specified
test.wavwindowsffmpeg installedyes2.1
test.mp3windowsffmpeg installedyes2.6
test.m4awindowsffmpeg installedyes2.5
A short clip in three containers, on three systems, with and without ffmpeg Source: Test T19 · GitHub runners · 2026-11-15 · audio-youtube.csv · Download CSV

Without ffmpeg an MP3 or M4A fails with FileNotFoundError for ffprobe ([WinError 2] on Windows). The warning about ffmpeg is a separate matter (ffmpeg page).

How accurate is it?

We recorded known scripts and compared the output word by word (word error rate; 0 is perfect). One run each, one voice:

Word error rate against the script, by clip
ClipWorkedWord error rateSecondsMessage
en-short.wav (6.9 s, en-US)yes0.2112.6
en-short.mp3 (6.9 s, en-US)yes0.2633.0
es-short.wav (4.7 s, es-ES)yes0.1541.6
es-short.mp3 (4.7 s, es-ES)yes0.1541.6
en-long.wav (79.0 s, en-US)yes0.81512.1
en-long.mp3 (79.0 s, en-US)yes0.59717.3
silence-5s.wav (5 s)no1.3- AudioConverter threw UnknownValueError with message:
tone-5s.wav (5 s)no1.3- AudioConverter threw UnknownValueError with message:
Word error rate against the script, by clip Source: Test T19 · Ubuntu runner · 2026-11-15 · audio-youtube.csv · Download CSV

The two short clips, English and Spanish, scored 0.15 to 0.26. The 79-second clip scored 0.82 (WAV) and 0.60 (MP3): the output began correctly and then repeated and dropped words, so do not rely on it for long recordings. Silence and a pure tone raised UnknownValueError, which MarkItDown reports as a conversion failure.

Could not transcribe this audio

Reproduced by us

### Audio Transcript: Error. Could not transcribe this audio.

Transcription is sent to Google's free web speech endpoint. It fails when that service cannot hear speech (silence) or cannot be reached.

Affected: all releases with the audio extra · last reproduced 2026-11-15 · Upstream report

Silence and a pure tone both produced this failure in our tests (accuracy table).

Other languages

The Spanish clip worked through the Python API (word error rate 0.15). We did not test how to choose a language from the command line.

Where your audio goes

The converter calls the speech service through the SpeechRecognition package, and our runs worked on machines with internet access. We did not capture the network traffic, so we cannot name the service from our own evidence. The upstream source and the package documentation say. Treat audio as leaving your computer.

Not tested

Video files, speaker labels, timestamps, noisy audio, long files in pieces, Azure or a local speech model. We do not recommend a route for those.