A beautiful, accessible web application for hearing-impaired users that converts audio to text in real-time, now with secure user authentication.
- 🎤 Real-time Audio Transcription - Convert speech to text instantly
- 🔐 Secure Authentication - Email/password authentication via Supabase
- 👤 User Management - Sign up, login, and logout functionality
- 🛡️ Protected Routes - Dashboard accessible only to authenticated users
- ♿ Accessible Design - Built with accessibility in mind
- 🎨 Beautiful UI - Modern, gradient-rich interface with smooth animations
- Frontend: React 19 + TypeScript + Vite
- Authentication: Supabase Auth
- Routing: React Router v6
- Styling: Tailwind CSS (via inline classes)
- AI: Google Gemini API for audio transcription
Before you begin, make sure you have:
- Node.js (v18 or higher)
- A Supabase Account - Sign up here
- A Google Gemini API Key - Get one here
cd univoice
npm install- Go to Supabase and create a new project
- Wait for your project to finish setting up
- Go to Project Settings → API
- Copy your Project URL and anon/public key
Open .env.local and replace the placeholder values:
GEMINI_API_KEY=your_actual_gemini_api_key
# Supabase Configuration
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key- In your Supabase dashboard, go to Authentication → Providers
- Make sure Email is enabled
- Configure email templates if desired (optional)
npm run devThe app will be available at http://localhost:5173
- Navigate to the app in your browser
- Click "Create an Account" on the login page
- Enter your email and password (minimum 6 characters)
- Confirm your password
- Click "Create Account"
- You'll be automatically logged in and redirected to the dashboard
- Navigate to the app
- Enter your email and password
- Click "Sign In"
- You'll be redirected to the dashboard
- Click the microphone button to start recording
- Speak clearly into your microphone
- Watch as your speech is transcribed in real-time
- Use the font size controls (T1-T4) to adjust text size
- Click the trash icon to clear the transcript
- Click "Logout" in the top-right corner when done
univoice/
├── components/
│ ├── ProtectedRoute.tsx # Route guard for authenticated users
│ └── TranscriptDisplay.tsx # Displays transcribed text
├── contexts/
│ └── AuthContext.tsx # Authentication state management
├── lib/
│ └── supabase.ts # Supabase client configuration
├── pages/
│ ├── Dashboard.tsx # Main app dashboard (protected)
│ ├── Login.tsx # Login page
│ └── SignUp.tsx # Sign up page
├── utils/
│ └── audio.ts # Audio processing utilities
├── App.tsx # Main audio-to-text component
├── index.tsx # App entry point with routing
├── types.ts # TypeScript type definitions
└── .env.local # Environment variables
- Never commit your
.env.localfile to version control - The Supabase anon key is safe to use in the browser
- User passwords are securely hashed by Supabase
- Sessions are stored securely using Supabase Auth
- Make sure you've filled in the correct values in
.env.local - Restart the dev server after updating environment variables
- Check that Email authentication is enabled in Supabase dashboard
- Verify your Supabase URL and anon key are correct
- Check browser console for detailed error messages
- Verify your Gemini API key is correct
- Make sure you've granted microphone permissions
- Check that you're using a supported browser (Chrome, Edge, etc.)
Feel free to submit issues and enhancement requests!
MIT License - feel free to use this project for your own purposes.