A voice-enabled universal translator powered by Google Gemini AI. Works perfectly from Nigeria and anywhere in the world!
# 🐟 Babel Fish Translator (Nigeria-Friendly Version)
A voice-enabled universal translator powered by Google Gemini AI. Works perfectly from Nigeria and anywhere in the world! 🌍
## Features
- ✅ **Voice Input**: Speak in any supported language
- ✅ **AI Translation**: Powered by Google Gemini AI (Free!)
- ✅ **Voice Output**: Hear translations spoken back to you
- ✅ **Text Input**: Type messages for translation
- ✅ **Multiple Languages**: English, Spanish, French, German, Italian, Portuguese, Chinese, Japanese, Yoruba, Igbo, Hausa
- ✅ **Dark Mode**: Easy on the eyes
- ✅ **100% Free**: No paid APIs required
- ✅ **Works Worldwide**: Including Nigeria! 🇳🇬
## Technologies
- **Backend**: Python 3.11 + Flask
- **AI Translation**: Google Gemini AI (Free)
- **Speech-to-Text**: Browser's Web Speech API (Free)
- **Text-to-Speech**: Browser's Speech Synthesis API (Free)
- **Frontend**: HTML5, CSS3, JavaScript, Bootstrap 5
## Prerequisites
- Python 3.11 or higher
- Modern web browser (Chrome recommended)
- Google account (for Gemini API key)
- Git and GitHub account
## Quick Start
### 1. Get Google Gemini API Key
1. Go to Google AI Studio
2. Click "Get API Key"
3. Copy your API key (it's free!)
### 2. Clone and Setup
```bash
# Clone repository
git clone
github.com
cd babel-fish-translator
# Create virtual environment
python3.11 -m venv venv
# Activate virtual environment
# Windows:
venv\Scripts\activate
# Mac/Linux:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
```
### 3. Configure Environment
Create `.env` file in root directory:
```env
GOOGLE_API_KEY=your_gemini_api_key_here
```
### 4. Run Application
```bash
python server.py
```
Open browser: `
127.0.0.1`
## 📖 How to Use
### Text Translation
1. Select "From" and "To" languages
2. Type your message
3. Click send button or press Enter
4. See translation instantly
5. Click "Hear Translation" to listen
### Voice Tr …