Git Product home page Git Product logo

lingualuxe's Introduction

LinguaLuxe

LinguaLuxe is my CS50P final project. This is a application built using tkinter. This works as a dictionary and a translator(with pronunciations).

Getting Started

This project uses external modules. At first install the modules using the following command:

pip install pytest pygame gtts pillow langid PyMultiDictionary deep_translator

Now go ahead and run the following command:

python project.py

About

In this project, I used two separate classes DictionaryProcessor and Translator for the calls to the external modules. For the text-to-speech part, I used the Google Text to Speech module gtts.

The project has three pages which have been implemented as subclasses of tkinter.Frame. These classes are HomePage, DictionaryPage and TranslatorPage. All these classes were added to the App class which extends the tkinter.Tk class.

The DictionaryProcessor class provides the following functionalities:

  • getting the part of speech
  • getting the meaning
  • getting the synonyms
  • getting the antonyms

All these use the PyMultiDictionary module.

The Translator class serves the following purposes:

  • detecting language (using langid)
  • translating to different languages (using deep_translator)

The App class uses the other three subclasses and adds them as frames. Using the show_frame function, it raises the corresponding frame according to commands.

The HomePage has buttons to redirect to the DictionaryPage and TranslatorPage.

The DicionaryPage provides an input box. Upon clicking the search button, it calls the DictionaryProcessor and shows the results in a scrollable frame beside.

The TranslatorPage also provides and input box. It gives option-menus to choose from which language and to which language you want to translate. If the input language is set to Auto, it detects the source language using langid and displays it below. The Translate button shows the translated text in the output box. The input and output text can also be heard by using the audio icons beside them. These use the gtts module to generate the speech.

lingualuxe's People

Contributors

nazmul-islam00 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.