# Ibi-Voice - English to Ibibio Translation Platform
A professional English to Ibibio translation platform with local dictionary search and AI-powered online search capabilities using Hugging Face Spaces.
## Features
- **Local Dictionary Search**: Fast, offline English to Ibibio translation using a comprehensive dictionary
- **AI-Enhanced Online Search**: Powered by Hugging Face Spaces for words not found in the local dictionary
- **Smart Caching**: Intelligent caching system for faster repeated searches
- **Multi-Source Search**: Combines local dictionary and online AI search
- **Voice Input**: Speech recognition for hands-free searching
- **Performance Monitoring**: Real-time performance metrics and optimization
- **Mobile Responsive**: Optimized for all device sizes
## Technology Stack
- **Frontend**: React, TypeScript, Tailwind CSS, shadcn/ui
- **Build Tool**: Vite
- **AI Integration**: Hugging Face Spaces API
- **Search Engine**: Custom fuzzy search with indexing
- **Caching**: Intelligent multi-layer caching system
## Environment Variables
This application uses environment variables for secure API configuration.
### Production Deployment
For production deployments, set the following environment variables:
- **Name**: `VITE_HUGGINGFACE_SPACE_URL`
- **Value**: Your Hugging Face Space URL (e.g., `
your-space-name.hf.space`)
- **Environment**: Production, Preview, Development
Optional for advanced features:
- **Name**: `VITE_GROQ_API_KEY`
- **Value**: Your Groq API key from console.groq.com
#### Vercel Deployment
1. Go to your Vercel project dashboard
2. Navigate to Settings → Environment Variables
3. Add `VITE_HUGGINGFACE_SPACE_URL` with your Hugging Face Space URL
4. Optionally add `VITE_GROQ_API_KEY` for advanced features
5. Set for Production, Preview, and Development environments
6. Redeploy your application
#### Other Platforms
Set the environment variable `VITE_HUGGINGFACE_SPACE_URL` in your hosting platform's environment configuration …