Skip to content

SpandanBhoiIITM/LinguaBridge

Repository files navigation

🌐 LinguaBridge

LinguaBridge is a real-time speech-to-speech translator that listens to English speech, translates it into Hindi, and speaks it back using TTS.
It also comes with a Google Meet Chrome extension that automatically captures live captions, sends them to the backend, and plays the translated speech.


🚀 Features

  • 🎤 ASR (Speech Recognition) → Vosk model (English → text)
  • 🌍 Translation → MarianMT (English → Hindi)
  • 🗣 TTS (Speech Synthesis) → Edge-TTS + Pygame for playback
  • FastAPI Backend → REST endpoints (/translate, /speak)
  • 🎥 Google Meet Extension → Captures captions, translates, and speaks Hindi

📂 Project Structure

LinguaBridge/
├── app.py                     # FastAPI backend server
├── step1_asr.py               # ASR pipeline (Vosk speech-to-text)
├── step2_asr_mt.py            # Translation (MarianMT)
├── step3_asr_mt_tts.py        # TTS (Edge-TTS + pygame)
├── requirements.txt           # Python dependencies
├── README.md                  # Project documentation
└── meet_translator_extension/ # Chrome extension
    ├── manifest.json
    └── content.js

⚙️ Installation

1️⃣ Clone the repo

bash git clone https://github.com/SpandanBhoiIITM/LinguaBridge.git cd LinguaBridge

2️⃣ Install Python dependencies

bash Copy code pip install -r requirements.txt

3️⃣ Run the backend

bash Copy code uvicorn app:app --reload --host 127.0.0.1 --port 8000 ✅ Backend endpoints:

POST /translate → { "text": "Hello" } → { "translated": "नमस्ते" }

POST /speak → { "text": "Hello" } → speaks Hindi audio

🔎 Quick test

bash Copy code curl -X POST http://127.0.0.1:8000/speak
-H "Content-Type: application/json"
-d "{"text":"Hello, how are you?"}" 🖥 Chrome Extension Setup Open Chrome and go to:

arduino Copy code chrome://extensions/ Enable Developer Mode (top-right).

Click Load unpacked.

Select the meet_translator_extension/ folder.

Open Google Meet and turn on captions (CC).

The extension will capture English captions → send to backend → speak in Hindi 🎙.

🔮 Future Work

🔁 Two-way translation (English ↔ Hindi)

🌍 Support for more languages (multilingual speech-to-speech)

🎛 Extension UI → change target language & backend settings

☁️ Deployment → Host backend on cloud for universal access

🧑‍🤝‍🧑 Collaboration features for multi-user meetings

🤝 Contributing

Pull requests are welcome! If you’d like to improve the project, feel free to fork and submit a PR.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors