GithubHelp home page GithubHelp logo

language_translator.py's Introduction

LANGUAGE TRANSLATOR


CONTENTS OF THE FILE

  • Introduction
  • Requirements (Recommended modules)
  • Installation
  • Configuration

Introduction

It is an simple language translation application that you can use to translate any language from one to another. You can both give inputs for your word or sentence that is to be translated by voice or by typing. Or you can also read the text written in source.txt and convert it into desired language which can found in the target.txt. It can as well as translate the word or sentence given by the user and speaks the the translated word verbally the translated text. It has 3 important functions written in main.py among the 7 those are:

  • listen()

  • speak()

  • translate()

    Here, listen() is used to take input from the user when the user chooses to speak his/her words or sentence. speak() is is used to make the computer speak the translated word if the user wants to hear how it's pronounced. translate() is used to do the main task that is to translate the text in given language entered by the user

    The supported languages are:

    armenian azerbaijani basque belarusian bengali bosnian bulgarian catalan cebuano chichewa chinese (simplified) chinese (traditional) corsican croatian czech danish dutch english esperanto estonian filipino finnish french frisian galician georgian german greek gujarati haitian creole hausa hawaiian hebrew hebrew hindi hmong hungarian icelandic igbo indonesian irish italian japanese javanese kannada kazakh khmer korean kurdish (kurmanji) kyrgyz lao latin latvian lithuanian luxembourgish macedonian malagasy malay malayalam maltese maori marathi mongolian myanmar (burmese) nepali norwegian odia pashto persian polish portuguese punjabi romanian russian samoan scots gaelic serbian sesotho shona sindhi sinhala slovak slovenian somali spanish sundanese swahili swedish tajik tamil telugu thai turkish ukrainian urdu uyghur uzbek vietnamese welsh xhosa yiddish yoruba zulu


Requirements (Recommended modules)

For running this app atleast you need to have Python 3 and its default modules (libraries) Other requirements (required modules) are as follows:

  • pyaudio
  • pywin32
  • speechrecognition
  • googletrans

But don't worry if you donot have these modules installed, this application would automatically try to install the required modules for you at the beginning Then also if the app doesn't work please try to install the modules externally.


Installation

The main.py is the main application that deals with the translation as it is a CommandLineApp(CLI App) so you donot have to install it separately you just have to run it in your terminal or cmd. And have fun!


Configuration

This Language Translation App is purely made with Python (Python 3). The Language_Translation_App.zip zipped file contains four files:

  • main.py
  • source.txt
  • target.txt
  • README.md

main.py is the main application that is to be runned as discussed above. source.txt is a text file that reads the text given by the user to translate. target.txt is a text file contains the the translated text of the text in source.txt. README.md is a readme file that contains the specifications of the app..that you're must be reading now!.


language_translator.py's People

Contributors

imsaptarshi avatar

Stargazers

 avatar

Watchers

 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.