Skip to content

A multi-thread Python script to translate SubRip (.srt) subtitles using AI (g4f) in seconds

License

Notifications You must be signed in to change notification settings

buczi11/srt-ai-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI Subtitle Translator

A multi-thread Python script to translate SubRip (.srt) subtitles using AI (g4f) in seconds.

Description

The script takes an input .srt file, translates the subtitle text from a specified input language to a specified output language using an AI model (at the moment deepseek-v3 by Blackbox) from gpt4free, and saves the translated subtitles to a new .srt file. No api/token needed.

Dependencies

  1. Generate a virtual environment
python -m venv .venv
source .venv/bin/activate
  1. Install dependences
pip install g4f\[all\] argparse pycountry tqdm colorama

Usage

Help:

python srt-ai-translator.py -h

Translation (Available languages: ISO 639-2 Codes):

python srt-ai-translator.py input.srt eng ita

image

About

A multi-thread Python script to translate SubRip (.srt) subtitles using AI (g4f) in seconds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages