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
- 🌍 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
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)
- Python 3.7 or higher
- pip (Python package manager)
- Flask — Web framework for building the app
- googletrans (v4.0.0-rc1) — Language detection and translation
- Frontend: HTML, CSS, JavaScript
- Backend: Python, Flask
- APIs/Libraries:
googletransfor translation
Flask
googletrans==4.0.0-rc1
git clone https://github.com/krupal-036/polyglotty.git
cd polyglottypython -m venv venv
# Activate the environment:
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activatepip install Flask googletrans==4.0.0-rc1Or install from requirements.txt:
pip install -r requirements.txtpython app.py1. 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.
- 🎙️ Add voice input (speech-to-text)
- 💬 Chat-style history of translations
- 🌐 Multilingual UI
- 🔁 Bi-directional language swap button
This project is licensed under the MIT License — feel free to use and modify it.
Developed by Krupal Fataniya
Feel free to contribute or fork the project!
For any issues, feel free to ask Krupal. 😊


