界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

auto-subtitle

auto-subtitle

【效率与协作】Auto Subtitle. Automatically add animated karaoke-style subtitles to videos. Triggers: subtitles, captions, transcription, video editing, karaoke, TikTok

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: auto-subtitle description: "Auto Subtitle. Automatically add animated karaoke-style subtitles to videos. Triggers: subtitles, captions, transcription, video editing, karaoke, TikTok" allowed-tools: Bash(curl *), WebFetch

Auto Subtitle

Automatically transcribe and add animated karaoke-style subtitles to videos. Supports multiple languages, customizable fonts from Google Fonts, and TikTok-style word highlighting.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "auto-subtitle",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/talking-head.mp4",
      "language": "en",
      "font_name": "Montserrat",
      "font_size": 100,
      "highlight_color": "purple"
    }
  }'

Parameters

ParameterTypeDefaultDescription
background_colorstringnoneBackground color behind text. enum: black, white, red, green, blue, yellow, orange, purple, pink, brown, gray, cyan, magenta, none, transparent
background_opacitynumber0Background opacity (0.0 = fully transparent, 1.0 = fully opaque).
enable_animationbooleantrueEnable animation effects for subtitles (bounce style entrance).
font_colorstringwhiteSubtitle text color for non-active words. enum: white, black, red, green, blue, yellow, orange, purple, pink, brown, gray, cyan, magenta
font_namestringMontserratAny Google Font name from fonts.google.com.
font_sizeinteger100Font size for subtitles.
font_weightstringboldFont weight. enum: normal, bold, black
highlight_colorstringpurpleColor for the currently speaking word (karaoke-style). enum: white, black, red, green, blue, yellow, orange, purple, pink, brown, gray, cyan, magenta
languagestringenLanguage code for transcription (e.g., en, es, fr, de).
positionstringbottomVertical position of subtitles. enum: top, center, bottom
stroke_colorstringblackText stroke/outline color. enum: black, white, red, green, blue, yellow, orange, purple, pink, brown, gray, cyan, magenta
stroke_widthinteger3Text stroke/outline width in pixels (0 for no stroke).
video_urlstringURL of the video file to add subtitles to.
words_per_subtitleinteger3Maximum number of words per subtitle segment. Use 1 for single-word display.
y_offsetinteger75Vertical offset in pixels (positive = move down, negative = move up).

Examples

TikTok-style centered subtitles:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "auto-subtitle",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/tiktok-clip.mp4",
      "language": "en",
      "font_name": "Poppins",
      "font_size": 120,
      "font_weight": "black",
      "font_color": "white",
      "highlight_color": "yellow",
      "position": "center",
      "words_per_subtitle": 2,
      "enable_animation": true,
      "stroke_width": 4
    }
  }'

Minimal subtitles with background:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "auto-subtitle",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/interview.mp4",
      "language": "en",
      "font_name": "Montserrat",
      "font_size": 80,
      "font_weight": "normal",
      "background_color": "black",
      "background_opacity": 0.7,
      "position": "bottom",
      "words_per_subtitle": 5,
      "enable_animation": false
    }
  }'

Spanish subtitles:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "auto-subtitle",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/spanish-video.mp4",
      "language": "es",
      "font_name": "Roboto",
      "highlight_color": "red",
      "words_per_subtitle": 3
    }
  }'

Related Models

Documentation

我的收藏