A gamified group study application that encourages focused study sessions by detecting distractions using AI.
- 🎯 Group Study Sessions: Create study parties with 2-6 players
- 🎤 Real-time Audio Analysis: Records and transcribes conversations every 15 seconds
- 🤖 AI Distraction Detection: Uses Gemini AI to determine if conversations are on-topic
⚠️ Focus Warnings: Alerts the group when conversations drift off-topic- 🎮 Point System: Tracks focus scores and distractions for each player
- ⏰ Break Mode: Track break time with automatic reminders after 10 minutes
- 🏆 Leaderboard: View session results with focus percentages and distraction counts
- Frontend: Next.js 14 (App Router), React, TailwindCSS
- Backend: Next.js API Routes (serverless)
- AI Services:
- ElevenLabs Scribe (Speech-to-Text)
- Google Gemini (Conversation Analysis)
npm installCreate a .env.local file in the root directory:
ELEVENLABS_API_KEY=your_elevenlabs_api_key_here
GEMINI_API_KEY=your_gemini_api_key_here
ELEVENLABS_VOICE_ID=your_elevenlabs_voice_id_herenpm run devOpen http://localhost:3000 in your browser.
- Enter session name, course/topic, and player names (2-6 players)
- No login required - frictionless setup
- Click "Start Listening" to begin audio recording
- The app records audio in 15-second chunks
- Focus meter shows group focus level (green → yellow → red)
- Every 15 seconds, audio is transcribed using ElevenLabs
- Transcript is analyzed by Gemini AI with the study topic
- AI classifies conversation as RELEVANT or DISTRACTION
- When distraction is detected:
- Session pauses
- Warning modal appears
- Group manually attributes the distraction to a player
- Points are deducted from the responsible player
- Click "Start Break" to pause study tracking
- Break timer runs automatically
- Reminder appears after 10 minutes
- View leaderboard with:
- Focus percentages
- Distraction counts
- Total scores