Skip to content
Gladia Help Center home
Gladia Help Center home

Export SRT or VTT caption files

You can export completed transcripts in both SRT and VTT format, which can be used for subtitles and captions in videos.

You can use the subtitles feature alongside the translation feature. You’ll have your subtitles in the original language, and also in languages you targeted for the translation!

{ "audio_url": "YOUR_AUDIO_URL", "subtitles": true, "subtitles_config": { "formats": ["srt", "vtt"], "minimum_duration": 1, "maximum_duration": 5, "maximum_characters_per_row": 42, "maximum_rows_per_caption": 2, "style": "compliance" } }

The subtitles_config object supports the following options:

  • formats: Array of subtitle formats to generate (options: “srt”, “vtt”)

  • minimum_duration: Minimum duration of a subtitle in seconds (minimum: 0)

  • maximum_duration: Maximum duration of a subtitle in seconds (minimum: 1, maximum: 30)

  • maximum_characters_per_row: Maximum number of characters per row in a subtitle (minimum: 1)

  • maximum_rows_per_caption: Maximum number of rows per caption (minimum: 1, maximum: 5)

  • style: Style of the subtitles. Options are:

The JSON response will include a new property subtitles which is an array of every formats you requested. With the given example, subtitles will contains 2 items of shape:

{ "format": "srt", //format name "subtitles": "1\\n00:00:00,210 --> 00:00:04,711....." // subtitles }