Communitygithub.com

sayyed73/ai-moderator-demo-video

轉錄、顯示和動畫化字幕

ai-moderator-demo-video 是什麼?

此技能專注於在 Remotion 影片中處理字幕,特別是轉錄、顯示與動畫化字幕。支援的流程包括從音訊/影片檔案轉錄字幕、從 .srt 檔案匯入現有字幕,以及使用標準化的 `Caption` 類型顯示字幕。所有字幕數據必須以 JSON 格式處理,並遵循 Remotion 的 `Caption` 介面定義,包含文字、時間戳記、信心度等欄位。此技能適用於 Remotion Studio 開發環境,協助開發者快速整合字幕功能,最終建議載入「Remotion Best Practices」技能以完成最佳化設定。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/sayyed73/ai-moderator-demo-video/tree/HEAD/.claude/skills/remotion-captions

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

所有字幕必須以 JSON 格式處理。字幕必須使用 Caption 類型,定義如下:

import type { Caption } from "@remotion/captions";

這是定義:

type Caption = {
  text: string;
  startMs: number;
  endMs: number;
  timestampMs: number | null;
  confidence: number | null;
  pageBreakAfter?: boolean;
};

產生字幕

若要從影片或音訊檔案轉錄以產生字幕,請載入 transcribe-captions.md 檔案以取得更多指示。

顯示字幕

若要在影片中顯示字幕,請載入 display-captions.md 檔案以取得更多指示。

匯入字幕

若要從 .srt 檔案匯入字幕,請載入 import-srt-captions.md 檔案以取得更多指示。

完成後

完成後,請載入此技能:Remotion Best Practices

如果尚未完成,請開啟 Remotion Studio,除非另有指示。

Individual skills in this repo

This repo contains 5 individual skills — each has its own dedicated page.

相關技能