# Transcribing audio with MarkItDown

> How MarkItDown 0.1.9 transcribes WAV, MP3 and M4A: when ffmpeg is needed, accuracy on clips in two languages, the long-clip limit and where the audio goes.

Source: https://markitdown.dev/formats/audio/ · Updated 2026-11-16·Upstream source ↗

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:
> 
> ```bash
> 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](https://markitdown.dev/data/audio-youtube.csv), [ubuntu-latest-clips.json](https://markitdown.dev/evidence/T19/ubuntu-latest-clips.json), [ubuntu-latest-clips-noffmpeg.json](https://markitdown.dev/evidence/T19/ubuntu-latest-clips-noffmpeg.json)

## What you get

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

````markdown
{
 "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*

## Formats and what each needs

A short clip in three containers, on three systems, with and without ffmpeg
| File | System | ffmpeg | Worked | Seconds | Message |
| --- | --- | --- | --- | --- | --- |
| `test.wav` | macos | no ffmpeg | yes | 4.2 |  |
| `test.mp3` | macos | no ffmpeg | no | 1.4 | \- AudioConverter threw FileNotFoundError with message: No such file or directory: 'ffprobe' |
| `test.m4a` | macos | no ffmpeg | no | 1.6 | \- AudioConverter threw FileNotFoundError with message: No such file or directory: 'ffprobe' |
| `test.wav` | macos | ffmpeg installed | yes | 2.1 |  |
| `test.mp3` | macos | ffmpeg installed | yes | 2.1 |  |
| `test.m4a` | macos | ffmpeg installed | yes | 2.5 |  |
| `test.wav` | ubuntu | no ffmpeg | yes | 2.1 |  |
| `test.mp3` | ubuntu | no ffmpeg | no | 1.1 | \- AudioConverter threw FileNotFoundError with message: No such file or directory: 'ffprobe' |
| `test.m4a` | ubuntu | no ffmpeg | no | 1.0 | \- AudioConverter threw FileNotFoundError with message: No such file or directory: 'ffprobe' |
| `test.wav` | ubuntu | ffmpeg installed | yes | 1.8 |  |
| `test.mp3` | ubuntu | ffmpeg installed | yes | 2.2 |  |
| `test.m4a` | ubuntu | ffmpeg installed | yes | 2.5 |  |
| `short-video-with-captions` | ubuntu | n/a | page text only | 2.7 | 754 characters, exit 0 |
| `popular-music-video` | ubuntu | n/a | transcript | 2.8 | 5084 characters, exit 0 |
| `short-url` | ubuntu | n/a | page text only | 1.8 | 754 characters, exit 0 |
| `nonexistent-id` | ubuntu | n/a | page text only | 1.3 | 754 characters, exit 0 |
| `playlist-url` | ubuntu | n/a | page text only | 1.5 | 786 characters, exit 0 |
| `shorts-url` | ubuntu | n/a | page text only | 2.2 | 754 characters, exit 0 |
| `test.wav` | windows | no ffmpeg | yes | 2.8 |  |
| `test.mp3` | windows | no ffmpeg | no | 1.5 | \- AudioConverter threw FileNotFoundError with message: \[WinError 2\] The system cannot find the file specified |
| `test.m4a` | windows | no ffmpeg | no | 1.5 | \- AudioConverter threw FileNotFoundError with message: \[WinError 2\] The system cannot find the file specified |
| `test.wav` | windows | ffmpeg installed | yes | 2.1 |  |
| `test.mp3` | windows | ffmpeg installed | yes | 2.6 |  |
| `test.m4a` | windows | ffmpeg installed | yes | 2.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](https://markitdown.dev/errors/ffmpeg/)).

## 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
| Clip | Worked | Word error rate | Seconds | Message |
| --- | --- | --- | --- | --- |
| `en-short.wav (6.9 s, en-US)` | yes | 0.211 | 2.6 |  |
| `en-short.mp3 (6.9 s, en-US)` | yes | 0.263 | 3.0 |  |
| `es-short.wav (4.7 s, es-ES)` | yes | 0.154 | 1.6 |  |
| `es-short.mp3 (4.7 s, es-ES)` | yes | 0.154 | 1.6 |  |
| `en-long.wav (79.0 s, en-US)` | yes | 0.815 | 12.1 |  |
| `en-long.mp3 (79.0 s, en-US)` | yes | 0.597 | 17.3 |  |
| `silence-5s.wav (5 s)` | no |  | 1.3 | \- AudioConverter threw UnknownValueError with message: |
| `tone-5s.wav (5 s)` | no |  | 1.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](https://github.com/microsoft/markitdown/issues/74)

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

## 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.

## Related

- [Couldn't find ffmpeg or avconv](https://markitdown.dev/errors/ffmpeg/): The ffmpeg warning and error.
- [YouTube transcripts](https://markitdown.dev/formats/youtube/): YouTube links.
- [Extras and install size](https://markitdown.dev/install/extras/): The audio-transcription extra.
- [Supported formats](https://markitdown.dev/formats/): Every format.

---
Independent guide to the open-source MarkItDown library. Not affiliated with or endorsed by Microsoft. Official source: https://github.com/microsoft/markitdown
