Transcribing audio
You can transcribe video or audio in the Studio, with the CLI, or in the browser on remotion.dev/transcribe.
In the Studio
1 Select a video or audio layer.
2 Click Generate captions in the inspector.
From v4.0.535, you can select a style from caption Elements in the Styles tab. See Styling captions.
With the CLI
npx remotion whisper transcribe transcribes a local audio or video file.
Transcribe a filenpx remotion whisper transcribe public/interview.mp4
On remotion.dev/transcribe
remotion.dev/transcribe transcribes audio and video locally in the browser.
Packages
Remotion maintains several options for transcribing audio to generate captions:
@remotion/whisper-webgpu- Transcribe in the browser, Node.js or Bun using WebGPU@remotion/install-whisper-cpp- Transcribe audio locally on a server using Whisper.cpp@remotion/openai-whisper- Use the OpenAI Whisper API for cloud-based transcription@remotion/elevenlabs- Use the ElevenLabs Speech to Text API for cloud-based transcription
Comparison
@remotion/whisper-webgpu | @remotion/install-whisper-cpp | @remotion/openai-whisper | @remotion/elevenlabs | |
|---|---|---|---|---|
| Environment | Browser, Node.js, Bun | Node.js, Bun | Cloud (API) | Cloud (API) |
| Speed | Fast (depends on GPU) | Fast (depends on hardware) | Fast | Fast |
| Cost | Free | Free | Paid (OpenAI API pricing) | Paid (ElevenLabs API pricing) |
| Offline support | ✅ | ✅ | ❌ | ❌ |
| No server needed | ✅ | ❌ | ✅ | ✅ |
| Convert function | toCaptions() | toCaptions() | openAiWhisperApiToCaptions() | elevenLabsTranscriptToCaptions() |
| Our recommendation | ✅ |
All of these options can output captions in the Caption type format, which is recommended for use with Remotion.
See also
- Styling captions - Choose a caption style in the Studio
- Caption Elements - Preset caption styles
npx remotion whisper transcribe- Transcribe a local file- remotion.dev/transcribe - Transcribe audio and video in the browser
Caption- The caption data structure@remotion/captions- Caption manipulation utilities