تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

subtitle-translate-skill

بواسطة thetail001

Image & Video Generation
363التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Translate SRT subtitle files using LLM APIs with OpenAI-compatible format.

الوصف

ما الذي تفعله هذه المهارة

Translates SRT subtitle files from one language to another using any OpenAI-compatible LLM API. Preserves all timestamps exactly. Outputs either a single translated language or bilingual format with the translation displayed above the original text.

Unlike pasting subtitle text into a general translation tool, this processes SRT files directly in batches and reconstructs the file with original timecodes intact, skipping manual reformatting entirely.

متى تستخدمها

  • Translating foreign film subtitles for personal viewing
  • Creating bilingual subtitles for language learning
  • Localizing YouTube video captions for international audiences
  • Adding translated subtitles to conference or lecture recordings
  • Preparing multilingual subtitles for video course distribution

مثال على سير العمل

الإدخال

User asks: translate video.srt from English to Chinese with bilingual output

الوكيل
  1. 1

    Parse the SRT file to extract subtitle indexes, timecodes, and text

  2. 2

    Validate the input file format

  3. 3

    Send text in batches of 50 sentences to the configured OpenAI-compatible API

  4. 4

    Verify that the returned sentence count matches the input

  5. 5

    Reconstruct the SRT file combining original timecodes with translated text

الإخراج

video_bilingual.srt with Chinese translation on the line above each original English subtitle, all timestamps preserved

المتطلبات

  • API key for an OpenAI-compatible LLM service (e.g., SUBTITLE_API_KEY environment variable)
  • OpenAI-compatible API endpoint URL (e.g., SUBTITLE_API_URL environment variable)

التثبيت

clawhub install thetail001/subtitle-translate-skill

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط