Timed Transcript Caption Packager
Pricing
$0.05 / actor start
Timed Transcript Caption Packager
Convert timed words into SRT and WebVTT subtitles with line wrapping, speaker breaks, a timeline offset and a cue sheet.
Timed Transcript Caption Packager
Pricing
$0.05 / actor start
Convert timed words into SRT and WebVTT subtitles with line wrapping, speaker breaks, a timeline offset and a cue sheet.
You can access the Timed Transcript Caption Packager programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "payload": {12 "words": [13 {14 "text": "Hello",15 "startMs": 0,16 "endMs": 230,17 "speaker": "One"18 },19 {20 "text": "&",21 "startMs": 250,22 "endMs": 480,23 "speaker": "One"24 },25 {26 "text": "hola",27 "startMs": 500,28 "endMs": 730,29 "speaker": "One"30 },31 {32 "text": "Bienvenidos",33 "startMs": 1250,34 "endMs": 1480,35 "speaker": "Two"36 }37 ],38 "offsetMs": 10039 }40};41
42// Run the Actor and wait for it to finish43const run = await client.actor("autosecurelogin/timed-transcript-caption-packager").call(input);44
45// Fetch and print Actor results from the run's dataset (if any)46console.log('Results from dataset');47console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);48const { items } = await client.dataset(run.defaultDatasetId).listItems();49items.forEach((item) => {50 console.dir(item);51});52
53// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use Timed Transcript Caption Packager API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: