alexfazio

Srt GPT Translator — AI skill for Claude Code

AI community

Translate .srt subtitle files between languages using Anthropic (Claude) APIs in a Google Colab notebook.

How to install Srt GPT Translator

This entry records only its repository, not the path inside it, so there is no exact command to give. Open alexfazio/srt-GPT-translator and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Srt GPT Translator does

Translate `.srt` subtitle files between languages using Anthropic (Claude) APIs in a Google Colab notebook.

Alternatives in AI

  • WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
  • Anthropic SDK TypeScript — Access to Anthropic's safety-first language model APIs in TypeScript 2.1k ★
  • Room — Open-source earning-focused swarm intelligence engine 838 ★

README

[![Twitter Follow](https://img.shields.io/twitter/follow/alxfazio?style=social)](https://twitter.com/alxfazio) [![Open Main Version In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/alexfazio/srt-GPT-translator/blob/main/srt_gpt_translator_claude.ipynb)

`.srt` GPT Translator (Google Colab)

This tool is designed to help users translate srt file into a different language using the Antrhopic (Claude 3) API . Does not support bilingual subtitles output.

Description

Translate `.srt` files from any language to any language using Anthropic (Claude). This Google Colab notebook provides a seamless way to translate `.srt` subtitle files between any supported languages using state-of-the-art language models from Anthropic (Claude). With just a few simple steps, you can quickly and accurately translate your subtitles, making your content accessible to a wider audience.

Feel free to contribute to the project by submitting pull requests or reporting issues on the GitHub repository. Your feedback and contributions are greatly appreciated!

Features

  • Translate .srt files between any supported languages using Anthropic (Claude) or OpenAI APIs.
  • Easy-to-use Google Colab notebook interface.

Instructions

To translate an `.srt` file:

  1. Open the Google Colab notebook.
  2. Insert your API key in the designated cell.
  3. Upload your .srt file to the notebook.
  4. Run the notebook cells to execute the translation process.
  5. Download the translated .srt file(s) from the notebook.

Upcoming Enhancements

  • Implement an API selector to choose between OpenAI and Anthropic APIs.
  • (Optional and Low Priority) Implement a string cleaner for improved output (Reference: https://x.com/mattshumer_/status/1777541303288340613).
  • Make the API key either an environment variable or provide a custom form space for the end user to input their key.
  • Implement context length selector, a toggle or slider that decides how many