跳到正文
FunCoding

transcribe

Transcribe video and audio files via Gemini API. Use when the user asks to transcribe a recording, generate a meeting summary, extract speech from video or audio, or convert speech to text. Supports mp4, mkv, webm, avi, mov, mp3, wav, ogg, m4a, flac.

Star
565
最近提交
2026年12月1日

content/skills/transcribe/SKILL.md

在 GitHub 上查看

transcribe — video and audio transcription

Transcribes audio and video files via the Gemini API (gemini-3.6-flash by default).

Modes

Generic (default)

Verbatim speech transcription with timecodes [MM:SS] and speaker identification.

Output files:

  • <name> - transcript.md — verbatim speech with timecodes
  • <name> - summary.md — short summary (with the --with-summary flag)

UI analysis (--analyze-ui, video only)

Detailed video analysis with breakdown of on-screen interface, navigation, and actions, plus screenshots.

Output files:

  • <name> - summary.md — short overview (topic, participants, decisions)
  • <name> - detailed.md — step-by-step chronological analysis with screen content and screenshots
  • <name> - transcript.md — verbatim speech with timecodes
  • screenshots/ — PNG frames of key moments

Usage

/transcribe <FilePath> [--output-dir DIR] [--analyze-ui] [--with-summary] [--format md|txt]
ParameterRequiredDefaultDescription
FilePathyes—Path to audio / video file
--output-dirno<file_folder>/Transcript/<name>/Result directory
--analyze-uinooffUI-analysis mode (video only)
--with-summarynooffAdd a summary (for generic mode)
--formatnomdOutput format: md or txt

Supported formats

  • Video: mp4, mkv, webm, avi, mov
  • Audio: mp3, wav, ogg, m4a, flac, aac, wma

Dependencies

  • Python packages: google-genai, python-dotenv
  • System: ffmpeg, ffprobe in PATH
  • API key: environment variable GEMINI_API_KEY, or <skill-dir>/.env with GEMINI_API_KEY=... (the script also checks supported user-skill locations and then cwd/.env). Use a named assignment GEMINI_API_KEY=<value>; a bare key without the variable name is ignored.
  • Model (optional): GEMINI_MODEL in the environment or the same .env files overrides gemini-3.6-flash. Existing environment variables take precedence. Empty or whitespace-only values use the default. Choose a model supporting audio/video input and text output through generate_content; see the Gemini model catalog.

Procedure

  1. Determine FilePath and optional flags from the user's arguments.

  2. Run the script:

$env:PYTHONUNBUFFERED = "1"
python <skill-dir>/scripts/transcribe.py "<FilePath>" [--output-dir "<OutputDir>"] [--analyze-ui] [--with-summary] [--format md|txt]

IMPORTANT: PYTHONUNBUFFERED=1 is mandatory; otherwise stdout is buffered and progress is not displayed.

On macOS / Linux use PYTHONUNBUFFERED=1 python ... instead.

  1. The script runs long (5–15 minutes depending on length). Files > 1 hour are split automatically.

  2. After completion, report the result paths to the user.

  3. Read the summary (if any) or the start of the transcript and show it to the user.

Cost

Cost depends on the selected model, media token count and generated output. Check the current Gemini API pricing for GEMINI_MODEL or the default model before processing long recordings.

Limitations

  • Maximum ~1 hour per Gemini request (the script splits automatically)
  • Cyrillic file names: the script automatically copies the file to a temp location with an ASCII name
  • Screenshot quality depends on source video quality
  • Timecode accuracy +/- a few seconds
  • --analyze-ui with an audio file automatically falls back to generic + summary

相似的 Skill

blender-motion-state-inspection

AFaffaan-m/ECC314k近 7 天新增 4,125 个 star

官方

slack-gif-creator

ANanthropics/skills203k近 7 天新增 3,333 个 star

精选

algorithmic-art

用 p5.js 生成流场和粒子系统,通过种子随机性创作原创算法艺术。

ANanthropics/skills203k近 7 天新增 3,333 个 star

moneyprinterturbo-video

HAharry0703/MoneyPrinterTurbo147k近 7 天新增 1,663 个 star

thinking-out-loud

SHShubhamsaboo/awesome-llm-apps146k近 7 天新增 895 个 star

design-motion

GAgarrytan/gstack143k近 7 天新增 636 个 star