Getting started
Get started with Gladia Pre-recorded STT API
Upload your file
If you’re working with audio or video files, you’ll need to upload it first using our POST /v2/upload
endpoint with multipart/form-data
content-type since the POST /v2/pre-recorded
endpoint only accept audio URLs.
If you are already using audio file URLs, proceed to the next step.
Example response:
We will now proceed to the next steps using the returned audio_url
.
Transcribe
We’ll now POST the transcription request to Gladia’s API using the POST /v2/pre-recorded
endpoint.
/v2/pre-recorded
only accept application/json
as Content-Type.
You’ll get an instant response from the request with an id
and a result_url
. The id
is your transcription ID that you
will use to get your transcription result once it’s done.
result_url
is returned for convenience. This is a pre-built url with your transcription id in it that you can use to get your result in the next step.
Get the transcription result
You can get your transcription results in 3 different ways:
Full sample
You can find a complete sample in our Github repository:
Was this page helpful?