File uploads to the Whisper API are currently limited to 25 MB, and for longer recordings you must split the audio into chunks under 25 MB. Cut at quiet pauses between sentences or speakers, so no sentence is split in half, and transcribe each part separately. Then join the transcripts in order, checking the joins for a repeated or missing sentence.
Prerequisites
- The audio file, with its size in megabytes.
- An audio editor or a tool such as ffmpeg to split the file.
- A note of the parts and their order, so the transcripts join correctly.
Steps
Step 1: Measure the file
Check the file size. A 31 MB file is over the limit and needs at least 2 parts; a 52-minute recording at the same bitrate needs 3. Work out the part count from the size, not from the length.
Step 2: Cut at quiet pauses
Cut the audio at quiet pauses between sentences, so each part is under 25 MB and no sentence is split. Name the parts in order: part 1, part 2, part 3.
Step 3: Transcribe each part
Send each part to the transcriptions endpoint separately and collect the transcripts. Join them in order, and read the joins: a sentence repeated at a join is a sign the cut overlapped, and a missing sentence is a sign the cut skipped audio.
Worked example: Cedar Street Library 52-minute talk
The fictional Cedar Street Library splits a 52-minute talk into 3 parts for the Whisper API.
| Part | Length | Size | Under 25 MB |
|---|---|---|---|
| Part 1 | 18 minutes | About 16 MB | Yes |
| Part 2 | 18 minutes | About 16 MB | Yes |
| Part 3 | 16 minutes | About 15 MB | Yes |
| Total | 52 minutes | About 47 MB | Split done |
The 52-minute talk becomes 3 parts of 18, 18 and 16 minutes, each under 25 MB, and the 3 transcripts join in order.
Expected result. Every part is under the 25 MB limit, and the joined transcript covers the whole recording in order. UNTESTED: this guide was not run against a live model or API. The worked example below is fictional practice material, and its result is the expected result, not a measured one.
Limits
- Splitting at a pause is approximate; check the joins for repeated or missing sentences.
- The 25 MB limit is per request; the file format also matters, so check both.
- This guide does not cover the 25 MB limit for other providers.
