Skip to content

Polyglotty is a powerful, minimalistic web application that allows users to seamlessly translate text between languages and convert both the original and translated text into speech, right in your browser.

License

Notifications You must be signed in to change notification settings

krupal-036/polyglotty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 Polyglotty

Status Python Flask License Deployment

Polyglotty is a powerful, minimalistic web application that allows users to seamlessly translate text between languages and convert both the original and translated text into speech β€” right in your browser. Whether you're learning a new language, practicing pronunciation, or communicating across borders, Polyglotty has you covered.

Built using Flask, JavaScript, and Google APIs, this tool offers seamless translation and natural-sounding text-to-speech functionality, wrapped in a clean and responsive UI.


↗️ Live Demo: polyglotty.vercel.app

Screenshot 1 Screenshot 2 Screenshot 3

✨ Features

  • 🌍 Detects and translates between multiple languages
  • πŸ”Š Text-to-Speech for both input and translated text
  • πŸ” Real-time Text Translation
  • πŸ—£οΈ Text-to-Speech (Input & Output)
  • ⚑ Fast, intuitive, and responsive interface

πŸ“ Folder Structure

polyglotty/
β”œβ”€β”€ app.py                 # Flask backend logic
β”œβ”€β”€ static/
β”‚   β”œβ”€β”€ script.js          # JavaScript for interactivity
β”‚   └── style.css          # Styling for the app
β”œβ”€β”€ templates/
β”‚   └── index.html         # Frontend HTML (rendered by Flask)
β”œβ”€β”€ build.sh               # essential requirements for vercel
β”œβ”€β”€ requrements.txt        # lists required python packages
β”œβ”€β”€ vercel.json            # vercel json file
β”œβ”€β”€ LICENCE                # MIT LICENCE
└── README.md              # Project documentation (this file)



πŸš€ Requirements

  • Python 3.7 or higher
  • pip (Python package manager)

πŸ“¦ Python Packages Used

  • Flask β€” Web framework for building the app
  • googletrans (v4.0.0-rc1) β€” Language detection and translation

πŸ“š Tech Stack

  • Frontend: HTML, CSS, JavaScript
  • Backend: Python, Flask
  • APIs/Libraries:

πŸ“„ requirements.txt

Flask
googletrans==4.0.0-rc1

πŸ”§ Installation & Setup

1. Clone the Repository

git clone https://github.com/krupal-036/polyglotty.git
cd polyglotty

2. Set Up a Virtual Environment (Optional)

python -m venv venv
# Activate the environment:
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate

3. Install Required Packages

pip install Flask googletrans==4.0.0-rc1

Or install from requirements.txt:

pip install -r requirements.txt

4. Run the Flask App

python app.py

πŸš€ Usage

1. After running python app.py, open your web browser and navigate to http://127.0.0.1:5000 (or the address provided in the console).

2. Type or paste text into the "Enter Text" box. The application will attempt to detect the source language automatically.

3. Select the desired target language from the dropdown list (you can search by name or code).

4. Click the "Translate" button.

5. Use the "Speak" buttons to hear the original or translated text aloud.

6. Use "Copy" to copy the translation and "Clear" to reset the input.


πŸ“Œ Future Improvements

  • πŸŽ™οΈ Add voice input (speech-to-text)
  • πŸ’¬ Chat-style history of translations
  • 🌐 Multilingual UI
  • πŸ” Bi-directional language swap button

πŸ›‘οΈ License

This project is licensed under the MIT License β€” feel free to use and modify it.


πŸ‘¨β€πŸ’» Author

Developed by Krupal Fataniya

Feel free to contribute or fork the project!

For any issues, feel free to ask Krupal. 😊

About

Polyglotty is a powerful, minimalistic web application that allows users to seamlessly translate text between languages and convert both the original and translated text into speech, right in your browser.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages