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

README
๐ŸŒ 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.

Index

๐ŸŽฏ 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

Index

๐Ÿ”ฎ 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 ๐ŸŒ

LinkedIn

PortFolio

ยฉ Created by Vetrivel Maheswaran

Author Information
Vetrivel Maheswaran

Intelligence may be coded, but innovation is lived-and earned-by humans.

Rochester Institute of TechnologyNew York

14

Followers

18

Repositories

0

Gists

3

Total Contributions

Top Contributors

Threads