Vetrivel07/Multilingual-Translator
If you are the rightful owner of Multilingual-Translator and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Multilingual Translator is a real-time translation app that leverages OpenAI's LLMs and follows an MCP server architecture for efficient and scalable multilingual communication.
Text Handling
Manages user input and context storage.
Translation
Uses OpenAI's LLMs for high-quality translations.
Speech Generation
Converts translated text to natural-sounding audio.
๐ 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