> ## Documentation Index
> Fetch the complete documentation index at: https://assemblyai.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Is there a way to generate SRT or VTT captions with speaker labels?

The [export captions endpoint](/api-reference/transcripts/get-subtitles) does not include speaker label information by default, but you can generate captions with speaker labels using the information from the JSON response for the completed transcript.

When you enable [Speaker Diarization](/pre-recorded-audio/label-speakers) in your transcription request, the response includes speaker information for each word and utterance. You can use this data along with the word-level timestamps to build custom SRT or VTT files that include speaker identification.

See the [Create Subtitles with Speaker Labels](/pre-recorded-audio/guides/speaker_labelled_subtitles) cookbook for a step-by-step guide on how to accomplish this.
