An AI-powered interview preparation platform with real-time voice and facial analysis.
- Node.js (v18 or higher)
- Python 3.8+
- npm or pnpm
- Install Node.js dependencies:
npm install- Install Python dependencies:
cd python-voice-analysis-service
pip install -r requirements.txt
cd ..Simply start the Node.js server:
npm run dev- Frontend: http://localhost:3000
The application consists of:
-
Node.js Server (
server.js)- Handles WebSocket connections for facial analysis
- Serves the Next.js frontend
-
Client-side Voice Analysis (
components/voice-analysis.tsx)- Real-time audio analysis using Web Audio API
- Provides voice metrics (WPM, volume, confidence, etc.)
- No external dependencies required
If you see "Voice Analysis Error: Failed to analyze audio", ensure:
- The Node.js server is running (port 3000)
- Your browser supports Web Audio API
- Microphone permissions are granted
If ports are already in use:
# Check what's using the ports
lsof -ti:3000
lsof -ti:8001
# Kill processes if needed
kill -9 <PID>