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 β¦