Skip to main content

转录音频

🌐 Transcribing audio

Remotion 提供了几种内置选项用于将音频转录成字幕:

🌐 Remotion provides several built-in options for transcribing audio to generate captions:

比较

🌐 Comparison

@remotion/install-whisper-cpp@remotion/whisper-web@remotion/openai-whisper
EnvironmentServer (Node.js)Client (Browser)Cloud (API)
SpeedFast (depends on hardware)Slow (WASM overhead)Fast
CostFreeFreePaid (OpenAI API pricing)
Offline support
No server needed
Convert functiontoCaptions()toCaptions()openaiWhisperApiToCaptions()

Caption 类型

🌐 The Caption type

所有这些选项都可以以Caption类型格式输出字幕,推荐与Remotion一起使用。此格式:

🌐 All of these options can output captions in the Caption type format, which is recommended for use with Remotion. This format:

替代方案

🌐 Alternatives

你可以使用其他音频转录方法,例如 ElevenLabs。 你也可以定义自己的字幕格式,而不依赖 Caption 类型——本页仅关于内置选项。

🌐 You can use other ways of transcribing audio, such as ElevenLabs.
You can also define your own caption format and not rely on the Caption type - this page is solely about the built-in options.

另请参阅

🌐 See also