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:
| Parameter | Value | Description |
|---|---|---|
| x-zoom-s2t-key | Scriptix Batch API Token | API key of type real-time needed for authorization. Must match the one used for session initialization. |
| x-filename | filename.dat | Use this header to set the filename of the uploaded file for easy reference in the API portal. |
Responses
| Status code | Description | Payload |
|---|---|---|
| 200 | New session initialized | |
| 400 | Invalid language | |
| 401 | Unauthorized | |
| 402 | Payment required, a subscription is missing | |
| 415 | Content Invalid | |
| 422 | Body Invalid | |
| 500 | Server Error |