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.
- 🎤 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
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
bash git clone https://github.com/SpandanBhoiIITM/LinguaBridge.git cd LinguaBridge
bash Copy code pip install -r requirements.txt
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
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 🎙.
🔁 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
Pull requests are welcome! If you’d like to improve the project, feel free to fork and submit a PR.