/SrtTranslate

Translate srt subtitles through Google Translation API

Primary LanguagePythonMIT LicenseMIT

SrtTranslate

Introduction

Well, it's just a python script to translate your srt subtitle to another language.

Requirements

requests,srt,tqdm

And your Google API key! (If you didn't own a Google API key, you could use the baidu translate.)

Usage

python3 process.py MODE PATH SOURCE_LAN TARGET_LAN

Like

python3 process.py google PATH SOURCE_LAN TARGET_LAN

or

python3 process.py baidu PATH SOURCE_LAN TARGET_LAN