安装方式
命令行安装
在项目根目录执行以下命令,完成 Skill 安装。
npx bzskills add remotion-dev/skills --skill remotion-captions
命令行安装
在项目根目录执行以下命令,完成 Skill 安装。
npx bzskills add remotion-dev/skills --skill remotion-captions name: remotion-captions
description: Transcribing, displaying and animating captions
version: 4.0.509All captions must be processed in JSON. The captions must use the Caption type which is the following:
import type { Caption } from "@remotion/captions";
This is the definition:
type Caption = {
text: string;
startMs: number;
endMs: number;
timestampMs: number | null;
confidence: number | null;
};
To transcribe video and audio files to generate captions, load the [transcribe-captions.md](transcribe-captions.md) file for more instructions.
To display captions in your video, load the [display-captions.md](display-captions.md) file for more instructions.
To import captions from a .srt file, load the [import-srt-captions.md](import-srt-captions.md) file for more instructions.