A Chrome Extension for real-time browser tab audio translation using AI.
- Bala Shukla
- Aaryan Devgun
- Bhinu Puvvala
- Sumedh Kulkarni
WhismurAI captures live audio from a browser tab, translates it in real-time, and plays it back using Fish Audio for Text-to-Speech (TTS).
Tech Stack:
- Frontend: React 18, Vite, Tailwind CSS, Chrome Extension Manifest V3
- Backend: Python 3.10 - 3.13 (Python 3.14+ not yet supported), FastAPI, Pipecat AI
- AI Services: Deepgram (STT), OpenAI (Translation), Fish Audio (TTS)
WhismurAI/
├── backend/ # Python FastAPI Server
│ ├── bot.py # Pipecat Pipeline Logic
│ ├── server.py # FastAPI Endpoints
│ ├── requirements.txt # Python Dependencies
│ └── README.md # Backend Setup Instructions
└── extension/ # React Chrome Extension
├── src/
│ ├── App.jsx # Main UI Component
│ ├── main.jsx # React Entry Point
│ └── index.css # Tailwind Styles
├── public/
│ ├── manifest.json # Extension Manifest
│ └── background.js # Service Worker (Audio Logic)
├── dist/ # Build Output (load this in Chrome)
└── package.json
cd backend
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Create .env file with your API keys
cat > .env << EOF
FISH_AUDIO_API_KEY=your_fish_audio_api_key_here
DEEPGRAM_API_KEY=your_deepgram_api_key_here
OPENAI_API_KEY=your_openai_api_key_here
EOF
# Start the server
uvicorn server:app --reloadThe backend server will start at http://localhost:8000
cd extension
# Install dependencies
npm install
# Build the extension
npm run build- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
extension/distfolder - The WhismurAI extension should now appear in your extensions
- Start the Backend: Make sure the FastAPI server is running (
uvicorn server:app --reload) - Open a Tab: Navigate to any page with audio (e.g., YouTube video)
- Open Extension: Click the WhismurAI icon in your Chrome toolbar
- Select Language: Choose your target translation language
- Start Translation: Click "Start Translation" to begin real-time translation
- Voice Cloning (Automatic): The extension automatically captures the first 10 seconds to clone the speaker's voice
- Enable Cloned Voice: Once cloning completes, toggle the switch to use the cloned voice for translations
- Stop Translation: Click "Stop Translation" when done
See the Voice Cloning Setup Guide for detailed information about voice cloning features.
You'll need to obtain API keys from:
- Fish Audio: https://fish.audio/
- Deepgram: https://deepgram.com/
- OpenAI: https://platform.openai.com/
- Voice Cloning Setup Guide - Complete guide to setting up and using automatic voice cloning
- Translation Implementation Guide - Detailed explanation of the translation pipeline, optimizations, and performance tuning
- Backend Setup - Backend configuration and architecture details
- Extension Setup - Chrome extension development guide
cd backend
source venv/bin/activate
uvicorn server:app --reloadcd extension
npm run dev # Development mode
npm run build # Production buildAfter making changes, rebuild the extension and click the refresh icon in chrome://extensions/
- ✅ Real-time audio capture from browser tabs
- ✅ Speech-to-Text using Deepgram (optimized for low latency)
- ✅ Ultra-fast translation using OpenAI gpt-5-nano (< 1s latency, 5/5 speed rating)
- ✅ Natural Text-to-Speech using Fish Audio with voice cloning
- ✅ 🆕 Automatic Voice Cloning - Clone speaker voices from tab audio and use them for translations
- ✅ Support for 20+ languages (Spanish, French, German, Japanese, Chinese, Korean, Italian, Portuguese, Arabic, Hindi, and more)
- ✅ Clean, modern UI with Tailwind CSS
- ✅ Optimized pipeline for near-instant translation
- ✅ Per-URL voice model persistence
- Multiple voice profiles per URL
- Voice model management UI
- Translation history export
- Offline mode support
- Additional language support
- Custom voice training with longer samples
See LICENSE file for details.
- Import errors: Make sure you've activated the virtual environment and installed all dependencies
- API key errors: Verify your
.envfile has valid API keys - Port conflicts: If port 8000 is in use, specify a different port:
uvicorn server:app --port 8001
- Extension not loading: Make sure you've built the extension (
npm run build) and are loading thedistfolder - WebSocket connection failed: Ensure the backend server is running on
http://localhost:8000 - No audio capture: Grant the extension permission to capture audio when prompted
- Manifest errors: Check that
manifest.jsonandbackground.jsare in thedistfolder
For issues or questions, please open an issue on the GitHub repository.