How to Transcribe Long Audio Files (Hours Long) With an API

To transcribe an audio file that is hours long, don't upload it and wait: put the recording behind a public or signed link, send that link to the API as an asynchronous job, and collect the transcript later by webhook or by polling the job id. With DeProcess that is one POST to /v1/audio/transcriptions with url, "async": true and an optional webhook_url; the link can point to a recording of any length. A three-hour recording costs $0.36 at the listed $0.12 per audio hour.
Key takeaways
- Direct uploads hit size limits: about 4 MB on DeProcess and 25 MB on OpenAI's transcription API, as of November 10, 2026.
- Send long recordings as a url with "async": true; you get a job id right away instead of holding a connection open.
- Results come by webhook to an https address, or by polling GET /v1/jobs/{id} until the status is done or failed.
- Make signed links last longer than the job may wait; DeProcess cancels jobs that can't be processed within 7 days, free of charge.
- Download what you need to keep: DeProcess deletes uploads 7 days and results 30 days after a job finishes.
How do you transcribe long audio files with an API?
You send a link to the recording as an asynchronous job, then pick up the transcript when it is done. Uploading a two-hour file in the request body and waiting for the text is the fragile way: uploads hit size limits, connections time out and a single network blip loses the whole attempt.
The asynchronous flow has three steps:
- Put the recording somewhere the API can download it: a public link or a signed (expiring) link.
- POST the link with
"async": true. The API answers at once with a job id. - Get the result when it is ready, either by webhook or by polling the job.
This is the same queue-based design explained in how batch speech to text works: long recordings wait their turn and run when capacity is free, which is a large part of why batch transcription is cheap.
Why not just upload the file and wait?
Three limits get in the way of large uploads, and each gets worse as files get longer.
- Size limits. As of November 10, 2026, OpenAI's speech-to-text guide says its transcription API accepts files up to 25 MB and suggests compressing or splitting larger recordings. The DePro API accepts direct uploads up to about 4 MB and answers 413 for anything larger, with the advice to send a
urlinstead (DePro errors). For scale, one hour of mp3 audio at 128 kilobits per second is about 58 MB (128,000 bits × 3,600 seconds ÷ 8). - Time limits. The official OpenAI Python SDK's README says requests time out after 10 minutes by default. Hours of audio can take longer than that to transcribe. On DeProcess, a synchronous request that runs longer than about 50 seconds returns 202 with a job id, so your code never hangs, but you still need to collect the result later.
- Model limits. Speech models don't read a whole recording at once. The Whisper large-v3 model card says Whisper has a 30-second receptive field and describes processing longer audio either as sequential 30-second windows or as overlapping chunks stitched together. A service that accepts long files does this splitting for you; if you have to split files yourself to fit a size limit, OpenAI's guide warns against cutting in the middle of a sentence, which removes context and can reduce accuracy.
Sending a link avoids all three: nothing large crosses your connection, nothing waits on an open request, and the service handles the long recording on its side.
What does the request look like?
Here is the long-file request from the DePro speech-to-text docs, with curl:
curl https://api.deprocess.ai/v1/audio/transcriptions -H "Authorization: Bearer dpc_your_key" -H "Content-Type: application/json" -d '{"url": "https://files.example.com/deposition-0412.mp3", "async": true, "webhook_url": "https://your-app.com/hooks/depro"}'
The answer comes back right away:
{ "id": "a1b2c3d4e5f6", "status": "queued", "poll": "/v1/jobs/a1b2c3d4e5f6" }
The same call in Python with the requests library:
job = requests.post("https://api.deprocess.ai/v1/audio/transcriptions", headers={"Authorization": "Bearer dpc_your_key"}, json={"url": "https://files.example.com/deposition-0412.mp3", "async": True, "webhook_url": "https://your-app.com/hooks/depro"}).json()print(job["id"])
And in JavaScript with fetch:
const job = await (await fetch("https://api.deprocess.ai/v1/audio/transcriptions", { method: "POST", headers: { Authorization: "Bearer dpc_your_key", "Content-Type": "application/json" }, body: JSON.stringify({ url: "https://files.example.com/deposition-0412.mp3", async: true, webhook_url: "https://your-app.com/hooks/depro" }) })).json();
The parameters, as the docs list them:
| Parameter | What it does |
|---|---|
url | Public or signed link to the recording. Use for anything long. |
async | true returns a job id immediately instead of waiting. |
webhook_url | Optional https address DePro calls when the job finishes. |
language | Optional language code such as en or es; detected automatically if left out. |
response_format | Optional: json (default), verbose_json, text, srt or vtt. |
Most audio and video formats work: mp3, wav, m4a, mp4, webm, ogg and flac. If you know the language, set it; otherwise it is detected automatically. To keep long files small without hurting the transcript, see which audio format and bitrate to use for transcription.
How do you host the recording for the API?
Use a link that returns the file itself, and keep it valid until the job is done. A sharing link that opens a preview page won't work, because the service needs the audio bytes, not a web page.
Signed links are the usual answer for private files: the link works for a limited time and then expires. On Amazon S3, the AWS documentation says a presigned URL made with the AWS CLI can last up to 7 days, and one made in the S3 console up to 12 hours.
Choose an expiry that covers the time a job may wait in the queue, not just the time it takes to run. DeProcess cancels jobs that couldn't be processed within 7 days (free of charge), so a link valid for a few days covers almost every case. If a link expires before the job runs, the audio can't be downloaded; resubmit the job with a fresh link.
How do you get the result back?
Pick one of two ways, or use both:
- Webhook. If you sent a
webhook_url, DeProcess POSTs the result to it when the job finishes. The payload carries the job id, the status, any error and the result (text, segments, language and duration). Answer quickly with a 2xx status and do the heavy work afterwards. The guide to webhooks for async transcription covers how to build that endpoint safely. - Polling. Call
GET /v1/jobs/{id}with your key. It returnsqueued,running,doneorfailed, and the result once done. For long recordings, checking every minute or so is plenty.
When the job is done you can fetch the transcript in any format by adding ?format= with srt, vtt, text, json or verbose_json to the job request, as often as you like (transcript formats). That is the easy way to get subtitles from a long recording; see SRT and VTT subtitles from an API.
What does a long transcription cost?
Speech to text on DeProcess costs $0.12 per audio hour, billed by the minute, as listed on the DePro pricing table on November 10, 2026. Billing is per finished job from your prepaid balance, and failed jobs are free.
| Recording | Audio length | Cost at $0.12 per audio hour |
|---|---|---|
| Long meeting | 90 minutes | $0.18 |
| Deposition | 3 hours | $0.36 |
| Conference day | 8 hours | $0.96 |
| Archive | 100 hours | $12.00 |
You pay for the length of the recording, not for how long the processing takes. If your balance runs out, the API answers 402 until you add credit.
What should you do after the transcript arrives?
Save it. DeProcess deletes uploads 7 days and results 30 days after a job finishes, and fetching a deleted result returns 410 (data handling). If the recording is sensitive, you can delete the job's audio and transcript sooner with DELETE /v1/jobs/{id} once you have stored your copy.
For long or important recordings, also spot-check accuracy: listen to a few minutes from the start, the middle and the end, where background noise, cross-talk or a change of speaker is most likely to cause errors.
When is this approach the wrong fit?
If someone needs the words while the audio is still being recorded, such as live captions for an event or a call, use a live (streaming) transcription service instead; DeProcess handles recorded audio in batches. If your recordings can't leave your building at all, DeProcess also offers a private pool and an on-site version that runs inside your office (private processing).
Frequently asked questions
Is there a maximum length for one recording?
The DePro docs say a link can point to a recording of any length. Very long recordings simply take longer to finish, so plan on a turnaround window rather than an instant answer.
Should I split a long recording myself before sending it?
Not with DeProcess, since you send the whole recording as a link. If you use an API with a file size limit and must split, OpenAI's guide advises against cutting in the middle of a sentence because it removes context.
What happens if a long job fails halfway?
With DeProcess, a job that fails after retries ends with status failed and an error message, the webhook says so, and you aren't charged for it. You can resubmit the same link.
Can I use a Google Drive or Dropbox sharing link?
Use a link that returns the audio file itself when fetched, not a web page that shows a preview. Direct links from cloud storage, such as a presigned Amazon S3 URL, work best.
Sources
- DeProcess: API docs (long files, job status, webhooks, data handling, pricing)
- OpenAI: Speech to text guide (file size limit and splitting advice)
- Hugging Face: openai/whisper-large-v3 model card (30-second window, long-form transcription)
- Amazon Web Services: Sharing objects with presigned URLs (Amazon S3 User Guide)
- OpenAI: openai-python README (default request timeout)
Have recordings to transcribe?
Test DeProcess on your own audio. Ask for a free 10-hour test, or start with the free credit every new account gets. Same API format as OpenAI.
Start a free testHave a computer that sits idle?
Install the DePro app and your computer works on AI jobs while you’re away. Free to join, about five minutes to set up.
Join with your computerRelated guides
- Speech to textHow Batch Speech to Text Works, Step by StepBatch speech to text queues recordings, cuts them into pieces, transcribes them in parallel and returns text and subtitles later. Here is how each step works.
- Speech to textHow Webhooks Work for Asynchronous Transcription JobsA transcription webhook is a POST the API sends to your https address when a job finishes. Here is what DeProcess sends and how to build the receiver.
- Speech to textHow to Get SRT or VTT Subtitles From Audio With an APISend audio to a speech-to-text API with response_format set to srt or vtt, or fetch a finished job as subtitles. Here is how both formats work.
About this guide
Last reviewed . Written by Sydney Kibuuka, Founder, researched and drafted with AI and checked by automated quality checks before it was published. Facts about other companies come from their own published pages, with dates. Read our editorial standards; spotted a mistake? Tell us and we’ll fix it (see corrections).