Multilingual-Translator

Vetrivel07/Multilingual-Translator

3.2

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.

Tools
  1. Text Handling

    Manages user input and context storage.

  2. Translation

    Uses OpenAI's LLMs for high-quality translations.

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

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