post https://v1.fastpix.io/on-demand//track//generate-subtitles
This endpoint allows you to generate subtitles for an existing audio track in a media file. By calling this API, you can generate subtitles automatically using speech recognition
How it works
-
Send a
POST
request to this endpoint, replacing{mediaId}
with the media ID and{trackId}
with the track ID. -
Provide the necessary details in the request body, including the languageName and languageCode.
-
Receive a response containing a unique subtitle track ID and its details.
Webhook Events
-
Once the subtitle track is generated and ready, you will receive the webhook event video.media.subtitle.generated.ready.
-
Finally, an update event video.media.updated will notify your system about the media's updated status.
Related guide: Add auto-generated subtitles