captions

Adding automatic captions to your videos: how to choose a speech-to-text API

Captions used to be an afterthought, added only when a client asked or a platform required them. Now they are part of how video gets watched. Plenty of people scroll with the sound off, viewers who are deaf or hard of hearing rely on them, and a written transcript makes video content easier to search, quote and repurpose.

Typing captions by hand is slow, so most creators and marketing teams now generate them automatically and then tidy up the result. The quality of that first draft depends almost entirely on the speech-to-text API doing the work. This guide covers how automatic captioning fits into a video workflow and what to look for when choosing an API.

How automatic captioning works

The basic flow is simple. You extract the audio track from your video, send it to a speech-to-text API, and receive a transcript back. That transcript usually arrives as structured data, often JSON, containing the words, timestamps showing when they were spoken and sometimes speaker labels and confidence scores.

From there, a script or editing tool converts the transcript into a caption file. The two most common formats are SRT and WebVTT. Both are plain text files that list numbered caption blocks, each with a start time, an end time and the words to display. Most video platforms and editing tools accept one or both.

Once the caption file exists, you review it, fix errors, and upload it alongside your video or burn the captions into the picture.

What to look for in an API

Accuracy on real speech

Most videos are not studio narration. They include interviews, panel discussions, vlogs shot outdoors, webinars recorded over video calls and customer testimonials with background noise. An API that handles clean dictation well may struggle with all of these.

Accuracy is usually expressed as word error rate, or WER, which counts the words the model gets wrong. A lower WER means fewer fixes for you. When you compare providers, check what kind of audio their numbers come from, then test on clips from your own library.

Speaker labels

If your video has more than one person speaking, speaker labels, also called diarization, make a big difference. They let you show who is talking in the captions, which helps in interviews and podcasts, and they make the full transcript far easier to read when you turn it into a blog post or show notes.

Timestamps for caption sync

Captions only work if they appear at the right moment. Timestamps are what make that possible. Some APIs return timestamps for every word, while others return them for each segment or phrase.

Word-level timestamps give you fine control over where each caption block starts and ends. Segment timestamps are simpler to work with and are often enough for standard captions, since a segment usually maps neatly to one or two caption lines. Check which your API provides and whether your captioning tool can use it.

Batch or streaming

For recorded video, batch transcription is what you need: you upload a finished file and get the full transcript back. If you also run live streams or webinars and want live captions, look for an API with a streaming mode and low latency, so captions keep pace with the speaker.

Output format and ease of use

Check whether the API returns clean, well-documented JSON and whether it offers caption-ready formats directly. If it only returns JSON, you will need a small script or tool to convert it to SRT or VTT. That is not difficult, but it is a step to plan for.

Cost

Most speech-to-text APIs use usage-based pricing, charging by the minute or hour of audio. For a team publishing a few videos a week, the difference between providers may be small. For an agency processing a large back catalog, it adds up quickly. Work out your monthly hours of video, then compare. Remember that a cheaper API with more errors can cost more once you count the editing time needed to fix captions.

Comparing providers

There are many capable APIs, and a structured comparison saves time. Modulate, a voice AI company whose Velma models handle transcription, deepfake detection and voice analysis, has published a detailed speech-to-text API comparison covering twelve providers, including Deepgram, Google Cloud Speech-to-Text, OpenAI Whisper, AssemblyAI, Azure Speech, Rev AI and Amazon Transcribe. It assesses them on real-time speed, accuracy on real-world audio, diarization, language coverage and voice intelligence, using a twenty-feature grid that includes timestamps, confidence scores, custom vocabulary and redaction.

Modulate’s own Velma Transcribe appears in that list. It supports batch and streaming transcription, speaker labels, segment timestamps and JSON output, with sub-second latency for live use and usage-based pricing. For video teams, segment timestamps and speaker labels are the two features that map most directly to captioning. The article is also open about Velma’s gaps: it does not offer custom models or voice ID, and its SDK ecosystem is newer and smaller than some others.

A simple workflow to test

Before choosing an API, run a quick trial using real material.

  1. Pick three to five videos that represent your typical content, such as an interview, a noisy outdoor clip and a webinar.
  2. Run each through two or three APIs.
  3. Convert the output to SRT or VTT and load it into your editor.
  4. Watch the videos with captions on. Note how many corrections you need, whether speakers are labeled correctly and whether captions appear in sync.
  5. Time how long it takes to clean up each file.

That last step is the most telling. The best API for your team is the one that leaves you with the least editing work for the price.

Tips for better automatic captions

  • Record clean audio. A decent microphone close to the speaker improves any API’s accuracy.
  • Add custom vocabulary where supported. Brand names, product names and guest names are common error points.
  • Keep caption blocks short. Two short lines are easier to read than one long one.
  • Always review before publishing. Automatic captions are a strong first draft, not a finished product.

Getting started

Start with a small test on your own videos, pick the API that gives you the cleanest first draft at a price that fits your volume, and build a repeatable workflow around it. Once captioning becomes routine, every video you publish becomes easier to watch, search and reuse.

Weekly Popular