Simply add captions to your video using an API with the caption
endpoint. Take a look at the video below for a demo!
*** Update ***
Automatically caption and translate your videos using AI or an SRT file.
- Removed all duration limitations on AI speech recognition
- Added a queue so you now get given an
id
which you can poll using GEThttps://labs.shotstack.io/caption/{id}
- Added a translate function. Now you can translate any video into a language of your choosing. Just add
"translateTo": "nl"
to the body. - Added a new style
black
.
Demo
Old demo
Endpoint configuration
You can use this endpoint in two way:
- Use an SRT file to add captions
- Use AI to transcribe video and add captions
Call this endpoint by sending a POST
request to:
https://labs.shotstack.io/caption
with the following body
:
{
"url": "https://shotstack-assets.s3.amazonaws.com/footage/scott-ko.mp4",
"srtUrl": "https://raw.githubusercontent.com/shotstack/php-demos/main/examples/assets/transcript.srt",
"style": "simple"
}
The srtUrl
property is optional, and if omitted it automatically uses AI mode.
Make sure to add your Shotstack API production key to it. It won’t work with your staging key.
Limitations
Styling
You can only created two very simple caption styles. But could add more styles quite easily.
Use black
and simple
style now available. Use property "style": "black"}