> ## Documentation Index
> Fetch the complete documentation index at: https://assemblyai.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Audio requirements

> Duration, size, format, and sample-rate constraints for Sync STT audio.

The Sync API has two endpoints with different limits. [`POST /v1/transcribe`](https://assemblyai.com/docs/sync-stt/getting-started/transcribe-a-short-audio-file#using-the-http-api-directly) takes audio you already hold in full. [`POST /v1/transcribe/live`](https://assemblyai.com/docs/sync-stt/getting-started/transcribe-live-audio) takes audio while it is still being recorded. The SDKs send every request through `/v1/transcribe/live`, including `transcribe()` for a complete file, so their limits are the live column's.

| Constraint | `/v1/transcribe` (HTTP) | `/v1/transcribe/live` (HTTP and SDKs) |
| - | - | - |
| Minimum duration | 80 ms | None |
| Maximum duration | 20 minutes | 120 s |
| Maximum file size | 256 MB | 256 MB |
| Formats | WAV, raw PCM, AAC, MP3, M4A, Ogg/Opus, FLAC, or WebM | WAV or raw PCM |
| Server deadline | 30 s | 300 s, covering the recording as well as the transcription |
| Over-limit audio | Rejected with `413` before transcription | Rejected with `413` mid-upload, as soon as it passes 120 s |

WAV and raw PCM audio must meet these constraints on both endpoints:

| Constraint | Value |
| - | - |
| Sample width | 16-bit only |
| Channels | Mono or stereo (stereo is down-mixed internally) |
| Sample rates | 8000, 16000, 22050, 24000, 32000, 44100, 48000 Hz |
| Content-Type | `audio/wav` for WAV, `audio/pcm` for raw PCM S16LE |

Compressed audio on `/v1/transcribe` takes its Content-Type from the format: `audio/aac`, `audio/mpeg`, `audio/mp4`, `audio/ogg`, `audio/flac`, or `audio/webm`. Its stream parameters are read from the file, so no config parameters are needed.

For WAV, the sample rate and channel count are read from the file header. For raw PCM, pass `sample_rate` and `channels` in the `config` part — see [Sending raw PCM audio](https://assemblyai.com/docs/sync-stt/getting-started/transcribe-a-short-audio-file.md#sending-raw-pcm-audio).

Audio that violates a constraint is rejected with a `400`, `413`, or `415` — see [Error handling](https://assemblyai.com/docs/sync-stt/error-handling.md) for the full error table.

For a recording longer than 120 seconds, wait until it finishes and post it to `/v1/transcribe` over HTTP. For audio longer than 20 minutes, use [Pre-recorded STT](https://assemblyai.com/docs/pre-recorded-audio/getting-started/transcribe-an-audio-file.md). For words returned while the speaker is still talking, use [Real-time STT](https://assemblyai.com/docs/streaming/getting-started/transcribe-streaming-audio.md).
