Process for alignment
Upload: Media File
In order to upload a media file for alignment, a POST request must be made with multipart/form-data content containing both the media file and the correct transcript.
⚠️ Extra costs
Extra costs may incur for alignment. Please check with your subscription if the feature is enabled and what the associated costs are.
URL:
POST https://api.scriptix.io/api/v3/speech-to-text/session/${sessionId}/align
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 be the same as the one used for session initialization. |
Request body
The following data must be uploaded as part of a multipart/form-data request:
| Parameter | Value | Description |
|---|---|---|
| media_file | Binary audio/*, video/* | The media file to upload, either audio or video. |
| transcript_file | text/plain | The known good transcript that should be aligned to the audio in media_file. |
Responses
| Status code | Description | Payload |
|---|---|---|
| 200 | Files are accepted | |
| 400 | Invalid data | |
| 401 | Unauthorized | |
| 402 | Payment required, a subscription is missing | |
| 415 | Content Invalid | |
| 422 | Body Invalid | |
| 500 | Server Error |