For a recorded video, choose the output your editor needs. A subtitle cue needs a start time, an end time and text. Highlighting the current word also needs word timing. An interview caption that identifies who spoke needs speaker labels.
Two local recognizers on the same clip
We ran a 10.17-second synthetic conversation through whisper.cpp 1.8.4 with Whisper tiny.en and Vosk 0.3.44 with its small US English model (0.15). Across 24 scripted words, Whisper needed 2 word edits (8.33% word error rate) and Vosk needed 12 (50.00%). Both heard “booked” as “worked.” Vosk also heard “noon” as “new.” These figures describe this clip. Listen to the recording · Read the reference · Get the scoring script
Whisper produced four timed segments, one per turn. Vosk produced one block with 27 timed words. For “microphone,” Vosk reported 7.050 to 7.830 seconds, close to the reference interval of 7.041 to 7.828 seconds. To caption this clip with Vosk, use the word times to split the block at speaker changes. Vosk word output · Whisper segment output · Vosk model details
What each transcription route returns
| Route | Timing and speakers | Getting a subtitle file |
|---|---|---|
| OpenRouter transcription API | On a compatible model, request verbose_json for segments. Add timestamp_granularities: ["word"] for word timings. |
Build SRT or VTT from the timestamps. The endpoint returns HTTP 400 for either subtitle format requested directly. OpenRouter’s transcription guide |
| Deepgram prerecorded API | Words have start and end times in seconds. Request utterances=true for grouped speech. For numbered speakers in batch audio, add diarize_model=v2. Deepgram’s API reference |
Create a DeepgramConverter from the full JSON response, then save the string returned by srt(converter) or webvtt(converter). Deepgram’s caption formatter |
| Local whisper.cpp CLI | Ordinary output has segment times. The project describes word timing as experimental. Its stereo diarization option assumes separate audio channels. whisper.cpp timing examples | With a local model, run whisper-cli -m model.bin -f clip.wav -osrt -ovtt to write both files. Replace the filenames with your own. CLI flags for v1.8.4 |
| Local Vosk Python API | Set recognizer.SetWords(True) to get each recognized word with start and end in seconds. The basic recognizer returns text and timing for a mono recording. Vosk’s recognition example |
Group the word times into readable cues, or use vosk-transcriber -i clip.wav -t srt -o clip.srt for SRT. Vosk’s command-line examples |
Check the response before converting
For OpenRouter, look for timed segments or words. A response containing only text has no cue boundaries. OpenRouter documents that openai/gpt-4o-transcribe returns HTTP 400 for verbose_json when none of its endpoints can supply timing. For Deepgram, results.utterances[] contains utterance times and the words that belong to each utterance. A numeric speaker identifies a voice within that recording. OpenRouter timing limits · Deepgram response example
The hosted API entries describe published behavior. The two local runs above used this site’s recording. Play a cue against the original audio before using its boundaries for an edit.