AR Classroom Assistant build for the Snap Spectacles
A real-time classroom assistance system that provides live captioning, translation, and note-taking through AR glasses.

- Real-time speech-to-text transcription using WebSockets
- AI-powered lecture summarization with Gemini AI
- Auto-generated questions based on lecture content
- Frontend for audio recording and real-time processing
/backend - FastAPI server with speech recognition and AI capabilities
/frontend - React TypeScript application for audio capture and processing
/Spectacles - Lens Studio assets
-
Navigate to the backend directory:
cd backend -
Install dependencies:
pip install -r requirements.txt -
Create a
.envfile with:MONGODB_URL=your_mongodb_connection_string DATABASE_NAME=your_database_name GEMINI_API_KEY=your_gemini_api_key -
Start the server:
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install -
Edit the config.ts file to set your endpoints and user ID:
src/config.ts -
Start the development server:
npm start
/api/startLecture- Start a new lecture session/api/updateInfo- Update lecture with new audio/images/api/requestSummary- Get AI-generated summary of lecture/api/requestQuestions- Get AI-generated questions/ws/{client_id}- WebSocket endpoint for real-time transcription
- FastAPI (Backend)
- React with TypeScript (Frontend)
- Google Gemini AI
- MongoDB
- Snapchat Lens Studio
- WebSockets for real-time communication
- Settings Icon CC-BY 3.0: Game-Icons.net