Skip to content

Translate a subtitle file from original language to desired language. This gives you a machine translated subtitle.

Notifications You must be signed in to change notification settings

ollan/subtitle_translator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subtitle_translator

Translate a subtitle file from original language to desired language. This gives you a machine translated subtitle.

Make sure you have Python 2.7 or above installed Check Python:

python --version

Clone the project:

git clone https://github.com/gunesmes/subtitle_translator.git

To run the translater

  • you must have a valid subtitle in .srt format

  • You can use Google translator or yandex

  • For yandex you must have Yandex Translater API key. You can get it from here: http://api.yandex.com/key/keyslist.xml

  • run python file

python run.py <path/to/files> <max-length-of-lines> <translator:google or yandex> <source language> <target language>
python run.py "/Users/mesutgunes/Projects/subtitle_translator" 40 yandex pl tr

About

Translate a subtitle file from original language to desired language. This gives you a machine translated subtitle.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%