Skip to content

abhimanyuthakre/subtitles_translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Subtitles Translator

Built with ❤

works on Windows

made with &hearts in Python

Subtitles Translator is capable of translating around 100 languages. The Translator can be used either with a python library "googletrans" for free or the Google Cloud Platform for a minimal cost.

List of contents

How to use?

(Back to top)

Make sure that subtitles.py file is in the same directory as of the file you want to translate.

  • If you want to make multiple translations, use spaces between different languages. For example, if you want to translate to French and German, then use "fr de" as your input.
  • If you want to make translations for all languages, use "all" keyword.
  • Suggestion: Make a seperate folder for doing this.
  • If you are using the free version, use "pip install googletrans" to add the library to your machine.
  • If you are using the Cloud Platform, you need to set the path in your machine to the JSON file. You can get more information at https://cloud.google.com/translate/docs/reference/libraries.

Contributing

(Back to top)

Any contributions or suggestions will be highly appreciated. 😊

FAQs

(Back to top)

  1. Where can we use this?
  • To create subtitles for youtube videos or for movies. This consists of many possibilities but is limited to videos.
  1. Do Google Cloud Platform offer free services?
  • No. The services charge a minimal cost.
  • You can signup for free and get $300 credit for free for 12 months to try out their services(currently offered).
  1. Where can I find the list of languages which can be translated?
  1. Which media player should I use?
  • VLC media player(open source) is surely the best option available.But you can try out the rest.
  1. Which files can be translated(extension)?
  • SubRip(.srt) files.

License

(Back to top)

MIT License

Copyright (c) 2018 Abhimanyu Thakre.