Multilingual-Translator
The Multilingual Translator is a real-time multilingual translation app that allows users to input text in one language and receive instant translations in another. It supports over 20 languages and enables smooth conversational interaction through a clean Streamlit interface. The backend is built with Flask and utilizes OpenAI's LLMs for high-quality translation and text-to-speech synthesis.
GitHub Stars
0
User Rating
Not Rated
Forks
0
Issues
0
Views
1
Favorites
0
๐ Multilingual Translator
Multilingual Translator a real-time multilingual translation app that allows users to type in one language and receive an instant translation in another, optionally with audio output. It supports 20+ languages and enables smooth, conversational interaction through a clean Streamlit interface. The backend is built with Flask and uses OpenAI's LLMs for high-quality translation and text-to-speech synthesis. The architecture follows an MCP server concept, where each taskโtext handling, translation, and speech generationโis treated as a modular tool. This design enables clean separation of logic, easier maintenance, and scalability for adding more tools (like summarization or Q&A) in the future.
๐ฏ Features
- ๐ค Text-to-Text Translation: Translate any input between major global languages using OpenAI.
- ๐ฃ๏ธ Text-to-Speech Generation: Speak out translations in a natural voice.
- ๐ฒ Real-time Interface: Built with Streamlit for an interactive front-end experience.
- ๐ Supports 20+ Languages: Easily switch source and target languages from dropdowns.
Architecture Overview
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Streamlit UI โ
โ - Text Input โ
โ - Language Dropdown โ
โ - Button: Translate & Speak โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโ
โ
โผ
User Input Triggered
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Flask MCP Server โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ - Receives input text & user_id โ
โ - Adds to context_store[user_id] โ
โ - GPT translates based on history โ
โ - Audio (mp3) is generated using OpenAI โ
โ - Returns translated text + audio URL โ
โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Streamlit Displays Output โ
โ - Text area for translationโ
โ - Audio player for speech โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ธ Screenshot
๐ฎ Future Enhancements
๐ฃ๏ธ Improve Voice Accuracy Enhance speech-to-text reliability and support real-time voice streaming.
๐งต Conversational Thread Memory Store previous translations per user for smarter context switching.
๐ Multilingual Chat Mode Enable live chat interface between two people speaking different languages.
๐ฑ Mobile-Friendly Interface Optimize Streamlit UI for small screens with mic and TTS controls.
Author
๐ค Vetrivel Maheswaran
Connect With Me ๐
ยฉ Created by Vetrivel Maheswaran
Intelligence may be coded, but innovation is lived-and earned-by humans.
14
Followers
18
Repositories
0
Gists
3
Total Contributions