Skip to main content

Process for decode

Upload: Media File

In order to upload a media file, a PUT request has to be made with the binary data used as the request body.

ℹ️ Configure Content-Type header:

Set the content type to an appropriate audio/ or video/ media type.

URL: PUT https://api.scriptix.io/api/v3/speech-to-text/session/${sessionId}


Request headers

The following headers need to be present:

ParameterValueDescription
x-zoom-s2t-keyScriptix Batch API TokenAPI key of type real-time needed for authorization. Must match the one used for session initialization.
x-filenamefilename.datUse this header to set the filename of the uploaded file for easy reference in the API portal.

Responses

Status codeDescriptionPayload
200New session initialized
400Invalid language
401Unauthorized
402Payment required, a subscription is missing
415Content Invalid
422Body Invalid
500Server Error