Skip to content

Real-Time Language Translation Using Neural Machine Translation is a web-based application that provides real-time text and voice translation between multiple languages (English, Hindi, Russian and other European languages) using Neural Machine Translation (NMT) models from Helsinki-NLP and Hugging Face Transformers.

Notifications You must be signed in to change notification settings

Poojith-L/IBM-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🌐 Real-Time Language Translator Using Neural Machine Translation (NMT)

A web-based application that provides real-time text and voice translation between multiple languages (English, Hindi, Russian and other European languages) using Neural Machine Translation (NMT) models from Helsinki-NLP and Hugging Face Transformers.


πŸš€ Features

  • πŸ” Bidirectional translation: Between languages such as English, Hindi, Russian and European languages
  • 🧠 NMT-based translation using MarianMT (Helsinki-NLP)
  • 🎀 Speech-to-text input using Web Speech API
  • πŸ”Š Text-to-speech output for translated text
  • 🌍 Simple and responsive UI using HTML, CSS, JS
  • 🧩 Backend built with Python & Django

🧠 Model Details

Example models used:

  • Helsinki-NLP/opus-mt-en-hi
  • Helsinki-NLP/opus-mt-en-de
  • Helsinki-NLP/opus-mt-en-ru
  • And reverse models like opus-mt-hi-en, etc.

βš™οΈ Setup Instructions

1. 🐍 Create a Virtual Environment

python -m venv myenv

Activate:

  • Windows: myenv\Scripts\activate
  • macOS/Linux: source myenv/bin/activate

2. πŸ“¦ Install Dependencies

pip install django transformers torch sentencepiece

3. πŸ› οΈ Run Migrations

python manage.py migrate

4. πŸ”₯ Start the Development Server

python manage.py runserver
Now visit http://127.0.0.1:8000 in your browser.


πŸ–₯️ Frontend

  • HTML/CSS for layout and design
  • JavaScript (Web Speech API) for microphone and speaker integration
  • AJAX for async requests to the backend

🧰 Tech Stack

  • 🧠 Hugging Face Transformers (MarianMT models)
  • 🌐 Django (Backend)
  • 🎀 Web Speech API (Speech-to-Text and Text-to-Speech)
  • πŸ—„οΈ SQLite (Lightweight storage)

πŸ™Œ Author

  • πŸ‘€ Poojith L
  • πŸ“« Reach out on LinkedIn or check out more projects on GitHub

About

Real-Time Language Translation Using Neural Machine Translation is a web-based application that provides real-time text and voice translation between multiple languages (English, Hindi, Russian and other European languages) using Neural Machine Translation (NMT) models from Helsinki-NLP and Hugging Face Transformers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published