gemini-caption-translate
Translate subtitles to target language using Gemini API with context-aware translation
npx skills add majiayu000/claude-skill-registry --skill gemini-caption-translate --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Gemini Subtitle Translation Skill Use this skill to translate subtitle files while preserving timestamps and formatting. ## Installation ```bash # Using uv (recommended) uv pip install gemini-caption-skills # Or using pip pip install gemini-caption-skills ``` ## Prerequisites ### Get Your API Key 1. Visit: https://aistudio.google.com/apikey 2. Sign in with your Google account 3. Click **"Create API Key"** 4. Copy the key ### Configure API Key (choose one) **Option 1: Save to config (recommended)** ```python from gemini_caption import set_api_key set_api_key("your-api-key-here") ``` Config location: `~/.config/gemini-caption/config.json` **Option 2: Environment variable** ```bash export GEMINI_API_KEY="your-api-key-here" ``` ## Usage ### Translate Subtitle File ```python from gemini_caption.translation import GeminiTranslator translator = GeminiTranslator(verbose=True) # Translate SRT to Chinese translator.translate( input_file="video.srt", output_file="video.zh.srt", target_language="zh", ) # Translate VTT to Japanese translator.translate( input_file="video.vtt", output_file="video.ja.vtt", target_language="ja", ) ``` ### Generate Bilingual Subtitles ```python from gemini_caption
- Installation
- Prerequisites
- Get Your API Key
- Configure API Key (choose one)
- Usage
- Translate Subtitle File
- Generate Bilingual Subtitles
- Transcribe and Translate in One Step
- Configuration
- Supported Languages
- Input/Output Formats
- Translation Quality Tips
- Error Handling
- CLI Usage (Coming Soon)
Using uv (recommended) uv pip install gemini-caption-skills Or using pip pip install gemini-caption-skills export GEMINI_API_KEY="your-api-key-here" Translate subtitle gemini-translate input.srt output.zh.srt --lang zh Generate bilingual gemini-translate input.srt output.srt --lang zh --bilingual Transcribe and translate
What does the gemini-caption-translate skill do?
Translate subtitles to target language using Gemini API with context-aware translation
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill gemini-caption-translate --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
