mp4_url
field.
Example of obtaining MP4 URL
https://demo-public.gvideo.io/videos/2675_G8EuYJFTsvIyWmKt/qid96v1_200_240.mp4
.{your_api_key}
and {your_video_url}/{quality}.mp4
with your actual API token and MP4 video URL.
In the response, you will get a task ID. It’ll come in handy in the next step. For example: "task_id": "abc12345-6def…"
Example of assigning a transcription task to AI
34d0ba5a-23f6-4462-85ff-fe343b0cdb2d
."subtitles_language"
parameter.
So, this is how the request body will look like if the original language is not English, and subtitles are desired in English:
"audio_language"
field, and Gcore AI ASR will detect it automatically.
For the “code-switching” feature mentioned above, audio_language
must be skipped.
"start_time"
, "end_time"
and "text"
fields.Example of obtaining the result
"vttContent"
field from the previous step. This contains the subtitles for your video.
2. Add the subtitles to the video by executing the following API request: