Giter Club home page Giter Club logo

subtitle_translator's Introduction

Back To Home

Google Translate api doesn't support free translations now. So, this subtitle translator uses mygengo and able to translate subtitles using terminal and a mygengo free account to translate subtitles in various supported Langauges. Supported file format is srt in UTF-8 Format. This application is written in Python and script translate_subs is installed in your main shell.

  1. mygengo No need to installed as it is installed automatically as dependencies. However, incase of troubles install mygengo manually
  2. Python 2.6.* or above
  3. mygengo api registration
git clone git://[email protected]/kevincobain2000/subtitle_translator.git

Download Python Package

python setup.py install

  1. Register at mygengo and installing mygengo python api.
  2. Generate public_key and private_key.
  3. Make a dir in your home directory like this mkdir ~/mygengo_keys
  4. Copy and Paste and save in the files ~/mygengo_keys/public_key.txt and ~/mygengo_keys/private_key.txt, respectively.
  5. Save the above text files in home directory. Note# Do echo $HOME to find out location of your home directory.

Script translate_subs is installed and is called directly.

1. translate_subs -i input.srt -f english -t japanese
2. translate_subs -i input.srt -f en -t ja
3. translate_subs -i input.srt -f Eng -t Jap
>>> Output --> Translated file saved to ja-input.srt
sv        Swedish
id        Indonesian
pt        Portuguese (Europe)
es-la     Spanish (Latin America)
ko        Korean
ar        Arabic
fr-ca     French (Canada)
nl        Dutch
en        English
ja        Japanese
es        Spanish (Spain)
zh        Chinese (Simplified)
de        German
fr        French
ru        Russian
it        Italian
pt-br     Portuguese (Brazil)

Note# Supported Languages are from English to Target language and vice versa

input.srt file must be utf-8 encoded. To convert to utf-8 see man iconv

translate_subs -h

  1. Home
  2. github
  3. pulkit[at]jaist.ac.jp

subtitle_translator's People

Contributors

kevincobain2000 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.