If you use the enhanced model the max audio input duration is currently 60 minutes (this will be increased in the near future).
Transcribe a file from direct URL
If you have a media file accessible via a URL, you can provide the URL to the file in the request body with the headerContent-Type
set to application/json
.
Typically you would use this method if you have a file stored in a cloud storage service such as Amazon S3.
Use the url
field in the body of the request to provide the URL to the file.
Make sure the URL to the file is publicly accessible, otherwise our endpoint cannot read the file. It must be a direct link to the file, not e.g. a Google Drive share link.
Transcribe an uploaded file
Instead of providing a direct URL, you can use the file key you get from the Upload media file endpoint. It starts withfile://
.
Receiving the transcript (Webhook)
The webhook URL is where the finished transcript will be sent. The transcript will be sent as a JSON object in the request body.Make sure the webhook URL is publicly accessible, otherwise our endpoint cannot send the transcript
Job status and transcript output
You can view the status of the job by using the Retrieve Job endpoint. The output of the job will be saved in theoutput
field of the job object, and is deleted after 24 hours.Authorizations
API key authentication. Add your API key with format: Bearer <API_KEY>
Body
application/json
Transcribe a media file. Either provide a URL to a media file exposed to the public or a file:// key from a file uploaded to the Spectropic Upload API.
Response
OK
The response is of type object
.