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. π


