Skip to main content

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:

ParameterValueDescription
x-zoom-s2t-keyScriptix Batch API TokenAPI 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:

ParameterValueDescription
media_fileBinary audio/*, video/*The media file to upload, either audio or video.
transcript_filetext/plainThe known good transcript that should be aligned to the audio in media_file.

Responses

Status codeDescriptionPayload
200Files are accepted
400Invalid data
401Unauthorized
402Payment required, a subscription is missing
415Content Invalid
422Body Invalid
500Server Error