Skip to content
lebe-devPublic

About

Toolkit for subtitles translation with LLM assistance

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Submarine

Submarine is a toolkit for subtitles translation with LLM assistance.

Submarine Toolkit Logo

Language: EN | RU | DE | ES

Motivation

I prefer watching movies, cartoons, and anime with the original audio. However, subtitles are often unavailable in my language. While we can now use LLMs to translate subtitles, they aren't perfect. They sometimes make mistakes, such as messing up subtitle numbering or timestamps. Even the best models fail often.

Beyond missing subtitles, they can be incomplete or have compatibility issues with different releases. Submarine is designed to assist the translation process by providing various editing and validation tools. It helps ensure that translated subtitles are accurate and consistent with the original content.

Features

  • Supported format: SubRip (srt)
  • Supported flows:
  • Toolset:
    • Get subtitle by index or range
    • Add a new subtitle
    • Set/update subtitle properties
    • Import subtitles from file (CSV, anchored format)
    • Adjust timestamps by offset
    • Mass-rename subtitle files
    • Export subtitles in anchored format
    • Diagnose and fix file issues (doctor)
  • Verification:
    • Verify translated subtitles against the original content
    • Track translation progress
  • Agent-friendly:
    • Structured JSON output (--output json) on all commands
    • Dry-run preview (--dry-run) on all mutating commands
    • Schema introspection (sm describe)
    • Machine-readable error codes and hints
  • Auto-backups: automatically create backups of your subtitle files before making changes.

Installation

macOS (Homebrew), Linux, Docker — see docs/install/.

Use cases

Task-oriented recipes for real subtitle problems — syncing, merging, comparing, and cleaning up — with copy-paste commands and expected output. Full index — docs/usecases/, including:

Articles

Guides:

How to use as library

In addition to its command-line interface, Submarine can be used as a library in your own Rust projects. For detailed information on how to integrate it, please see the library documentation.

About

Toolkit for subtitles translation with LLM assistance

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages