Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions fern/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,9 @@ navigation:
- page: Does it cost extra to export SRT or VTT captions?
path: pages/faq/async/does-it-cost-extra-to-export-srt-or-vtt-captions.mdx
slug: /does-it-cost-extra-to-export-srt-or-vtt-captions
- page: Is there a way to generate SRT or VTT captions with speaker labels?
path: pages/faq/async/is-there-a-way-to-generate-srt-or-vtt-captions-with-speaker-labels.mdx
slug: /is-there-a-way-to-generate-srt-or-vtt-captions-with-speaker-labels
- page: Does it cost more to transcribe an audio or video?
path: pages/faq/async/does-it-cost-more-to-transcribe-an-audio-or-video.mdx
slug: /does-it-cost-more-to-transcribe-an-audio-or-video
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,3 +583,15 @@ file_put_contents("transcript_" . $transcript_id . ".vtt", $vtt_response);
```

</CodeBlocks>

## Additional resources

<CardGroup cols={2}>
<Card
title="Is there a way to generate SRT or VTT captions with speaker labels?"
icon="fa-regular fa-circle-question"
href="/docs/faq/is-there-a-way-to-generate-srt-or-vtt-captions-with-speaker-labels"
>
Learn how to create caption files that include speaker identification.
</Card>
</CardGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Is there a way to generate SRT or VTT captions with speaker labels?"
---

The [export captions endpoint](/docs/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](/docs/speech-to-text/pre-recorded-audio/speaker-diarization) 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](/docs/guides/speaker_labelled_subtitles) cookbook for a step-by-step guide on how to accomplish this.
Loading