Skip to content

Supported formats and limits

A pre-recorded job transcribes one file. You give it in one of three ways:

  • Upload it with POST /v2/upload, then start the job on the audio_url it returns (Transcribe a file).
  • Give the URL of the file itself (https://.../call.mp3) as the job’s audio_url.
  • Give the URL of an online video page (a YouTube video, a TikTok post…) as the job’s audio_url: the API finds the page’s audio file and transcribes it (Online video URLs).

What a job takes depends on where your cluster runs its pre-recorded jobs: on Gladia Enterprise’s own pre-recorded endpoints, or on Gladia’s standard API (Gladia SaaS). See Where pre-recorded jobs run; your cluster’s operator can tell you which one it uses.

Each row is one extension the cluster’s pre-recorded hosts accept at the gateway and decode on the worker (GET /capabilities → prerecorded.audio_formats). Video files are taken too: the job transcribes their first audio track. A recording from a browser (WebM), a phone (M4A, AMR, 3GP), a meeting tool export (MP4, WebM) or a broadcast capture (TS, AC3) uploads as it is: there is nothing to convert first.

Format Extensions What it holds
3GP .3gp, .3g2 3GPP / 3GPP2 multimedia; the audio track (AAC, AMR-NB)
AAC .aac AAC elementary stream (ADTS)
AC3 .ac3 Dolby Digital
AIFF .aif, .aiff Audio Interchange File Format
AMR .amr AMR-NB (phone voice recordings)
ASF .asf, .wma, .wmv Windows Media audio and video; the audio track (WMA 1 and 2)
AU .au Sun/NeXT audio
AVI .avi the audio track
CAF .caf Core Audio Format
FLAC .flac lossless audio
FLV .flv Flash video; the audio track (MP3, Nellymoser, Flash ADPCM)
M4A .m4a MP4 audio (AAC or ALAC)
M4V .m4v MP4 video; the audio track if present
MKV .mkv, .mka Matroska; the audio track
MOV .mov QuickTime; the audio track
MP2 .mp2 MPEG audio layer II
MP3 .mp3 MPEG audio layer III
MP4 .mp4 MP4; the audio track (AAC typical)
MPEG .mpeg, .mpg, .vob MPEG program stream (DVD); the audio track
TS .ts, .mts, .m2ts MPEG transport stream (broadcast, camcorders); the audio track (MPEG audio, AC3)
OGG .ogg, .oga Vorbis or FLAC in Ogg
Opus .opus Opus in an OGG container
QT .qt QuickTime (same as MOV)
WAV .wav PCM (8–32 bit), µ-law, A-law
WebM .webm, .weba Opus or Vorbis in WebM: browser and meeting recordings; the audio track
  • Wrong or unknown content ends the job with 422 unsupported_audio_format: the audio is not a AAC, AC3, AIFF, AMR, AU, AVI, CAF, FLAC, FLV, M4A, MKV, MP2, MP3, MP4, MOV, MPEG, OGG, Opus, WAV, WebM or WMA file this host can decode.
  • A damaged file is transcribed as far as it can be read: frames that cannot be decoded are skipped, not the whole file.
  • A damaged or cut file (an upload stopped part way, an MP3 whose end is missing) is transcribed and billed for the audio it really holds, not for the length written at its start.
  • Sample rates from 8 kHz to 192 kHz: telephony (8 kHz) to studio audio. The audio is resampled to 16 kHz for the model.
  • Up to 8 channels. Each channel is transcribed apart (a stereo call: one speaker per channel); channels that hold the same audio (a mono file copied to stereo) are transcribed once.
  • Not supported on own hosts: formats outside this table (for example RealMedia, raw PCM without a header), and these codecs inside the containers above: Dolby Digital Plus (E-AC-3), AMR-WB, WMA Pro, WMA Lossless, WMA Voice, and AAC in FLV, TS or AVI. Convert them first (Converting media), or run the job on Gladia SaaS (Where pre-recorded jobs run).
  • On-premise installations take, for now, AAC, AIFF, AU, CAF, FLAC, M4A, M4V, MOV, MP3, MP4, OGG, Opus, QT, 3GP and WAV. GET /capabilities → prerecorded.audio_formats lists what your cluster takes.

For a format outside the table above, or to send a smaller file, convert it on your workstation or in your ingestion pipeline before upload.

Extract audio from video (any format your local FFmpeg reads):

Terminal window
ffmpeg -i meeting.mp4 -vn -c:a flac meeting.flac

Shrink or normalise for upload (optional; hosts resample to 16 kHz for the model):

Terminal window
ffmpeg -i input.m4a -c:a flac output.flac
ffmpeg -i call.wav -ac 1 -ar 16000 call-16k.wav

Split a long file (under the duration limit per part):

Terminal window
ffmpeg -i all-day.flac -f segment -segment_time 3600 -c copy part-%02d.flac

Integrations that record in the browser (WebM on Chrome and Android, M4A on iOS Safari) upload the recording as it is: both are in the table above.

An upload’s format is read from its content, not its name: a FLAC file named call.mp42, or a WAV with no extension at all, runs as any FLAC or WAV. Only a file whose first bytes match no known audio container is judged by its extension. A refusal names the format the bytes carry (the m4a format is not taken… for an M4A named call.flac), so a 422 that names a format you did not expect means the file is not what its name says.

Gladia’s standard API takes almost every audio and video format, and converts it itself:

Kind Formats
Audio AAC, AC3, E-AC3, FLAC, M4A, MP2, MP3, OGG, Opus, WAV
Video 3G2, 3GP, AVI, FLV, M4V, MKV, MOV, MP4, WMV
Limit Gladia Enterprise’s own endpoints Gladia SaaS
File size, uploaded 1000 MB 1000 MB
File size, from a URL 1024 MB 1000 MB
Duration 8100 s (2 h 15 min) 135 min
Channels 8 2
Download of an audio_url 600 s at most, 5 redirects at most Gladia’s own
  • Uploads are limited for your workspace to 1000 MB by default: your account manager may set another limit for it, 5000 MB at most, as far as the endpoints that run its jobs take such files. A larger upload is refused with 413 before anything is stored.
  • The operator of a cluster may change its hosts’ limits (duration, channels, size of a URL’s file). A job its hosts cannot take is refused with the reason in validation_errors, never cut.
  • A file over the duration is refused with 413: at the job’s creation when its duration is known (a WAV upload), else when its file is read. Split a long recording into parts of an hour or so, for example:
Terminal window
ffmpeg -i all-day.flac -f segment -segment_time 3600 -c copy part-%02d.flac

An audio_url that is not an upload is downloaded when the job starts, by the host that transcribes it:

  • https only, at a public address. A URL whose host is on a private network (10.x, 192.168.x, localhost, a cloud’s metadata address) is refused, redirects included: the job ends with a 422, “the audio URL cannot be fetched”. A cluster installed on your own network may allow private addresses (its operator’s setting).
  • A signed link must outlive the job’s wait: a job may wait in your queue before it starts. Prefer uploading a file whose link expires within minutes.
  • The URL of a web page is not a file. On Gladia Enterprise’s own endpoints, a page ends the job with a 422, “the audio URL is a web page, not an audio or video file”. Give the URL of the file itself, or, for a video page of a platform below, check that your cluster takes online video URLs.

The URL of a video page of one of these platforms can be the job’s audio_url, as on Gladia’s cloud API. The API asks a video download service for the page’s audio file when the job starts, then transcribes it as any other file.

Platform Pages File it gets Gladia Enterprise’s own endpoints Gladia SaaS
YouTube youtube.com/watch?v=, youtu.be/, youtube.com/embed/ MP3 yes yes
TikTok tiktok.com/@user/video/ MP4 yes yes
Facebook facebook.com/watch, facebook.com/photo M4A yes no
LinkedIn linkedin.com/posts/ M4A yes no
ShareChat sharechat.com/ posts M4A yes no
Likee likee.com/video/, likee.com/post/ M4A yes no
  • YouTube and TikTok today. The video download service behind Facebook, LinkedIn, ShareChat and Likee answers that it no longer serves those pages: a cluster takes YouTube and TikTok pages by default, and the other four are left out until a service serves them again. A cluster that names them gets a 400, “the video download service for Facebook pages is not available”: give the URL of the audio instead.
Terminal window
curl -X POST https://eu1.api.gladia.io/v2/pre-recorded \
-H "x-gladia-key: $GLADIA_API_KEY" \
-H "content-type: application/json" \
-d '{"audio_url": "https://www.youtube.com/watch?v=jNQXAC9IVRw", "language_config": {"languages": ["en"]}}'
{
"id": "0199d7a2-6a10-7c22-8d4e-5f6a7b8c9d0e",
"result_url": "https://eu1.api.gladia.io/v2/pre-recorded/0199d7a2-6a10-7c22-8d4e-5f6a7b8c9d0e"
}

The job runs as any other: read it, or get its callback. Its file.source is your page’s URL, and file.filename is null.

  • The page’s URL leaves Gladia. To find the audio, the API sends the page’s URL to a third-party video download service (through the RapidAPI marketplace), which downloads and converts the video on its own servers; the file is then fetched from that service. Where your data must stay with Gladia (an unlisted video, a data-residency or zero-retention agreement), do not send page URLs: download the video yourself and upload its audio.
  • Your cluster must take them. Online video URLs are a setting of each cluster, off until its operator turns them on. Where they are off, the page’s URL is sent as is: Gladia SaaS may still find the video itself, Gladia Enterprise’s own endpoints end the job with a 422, “the audio URL is a web page”.
  • A file the cluster’s hosts cannot decode is refused at once. On Gladia Enterprise’s own endpoints, a TikTok, Facebook, LinkedIn, ShareChat or Likee page is refused with a 422 when the job is created: their file is a video or M4A (see Audio formats). YouTube’s is an MP3, taken everywhere.
  • One video per URL. A YouTube short, live stream, channel or playlist is refused with a 400.
  • Public videos only. A private, removed or age-restricted video ends the job with a 404, “video not found or private”; a YouTube video of more than 2 hours, with a 413.
  • The first job on a video may wait a little. The download service converts a YouTube video the first time it is asked; the job waits for it, up to 10 minutes, then ends with a 408 (“was not ready in time”): send it again later.
  • A page of another platform (Vimeo, Dailymotion, Instagram, X…) is sent as is, as any URL: on Gladia Enterprise’s own endpoints it fails as a web page. Download the video yourself, extract its audio and upload it.

A refusal at the job’s creation is the answer’s status and its validation_errors; a job that fails later has the status as its error_code and the message as its post_session_metadata.error. The messages of the files themselves are those of Gladia Enterprise’s own endpoints; Gladia SaaS gives its own.

When Status Message
A format the cluster’s hosts do not decode (an upload’s content, else its extension; a video page’s file) 422 audio_url: the wmv format is not taken by this cluster's pre-recorded hosts (they take …) — the message lists every format they take
An upload over its workspace’s limit 413 the upload is refused
A file over the hosts’ duration, known at creation 413 audio_url: the file lasts ... s, longer than this cluster's pre-recorded hosts take
A file over the hosts’ duration, once read 413 ...s of audio: at most 8100s here
More channels than the hosts take 400 ... channels: at most 8 here
A file the host cannot decode 422 see unsupported_audio_format in Audio formats (pasr/jobs/decode.py NOT_DECODED)
A web page given as audio_url 422 the audio URL is a web page, not an audio or video file: give the URL of the file itself, or upload the file (POST /v2/upload)
A URL’s file over the size limit 413 the audio is over ... bytes
A URL that cannot be downloaded (not https, not public, an HTTP error) 422 the audio URL cannot be fetched
A URL too slow to download 422 the audio took more than 600s to download
A YouTube short, live stream, channel or playlist 400 audio_url: YouTube shorts are not supported (and the like)
A private or removed video 404 audio_url: YouTube video not found or private
A YouTube video of more than 2 hours 413 audio_url: YouTube videos of more than 2 hours are not supported
A video still not converted after 10 minutes 408 audio_url: the audio of this YouTube video was not ready in time, retry later
A video file at an address that is not public 400 audio_url: the video's media file is not at a public https address
A page of a platform whose download service is gone (Facebook, LinkedIn, ShareChat, Likee) 400 audio_url: the video download service for Facebook pages is not available; upload the file, or give the URL of its audio