Transcribing audio
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
Caption- The caption data structure@remotion/captions- Caption manipulation utilities