Sore Throat
AI Interview Prep Partner
About The Project
# PersonaPrep
A real-time voice AI platform for practicing job interviews with distinct interviewer personas and receiving scored feedback.
## The Problem
Interview prep is hard to rehearse out loud. Mock interviews with friends are awkward, coaches are expensive, and written practice doesn't train the parts that matter under pressure — pacing, clarity under follow-up, confidence, and thinking on your feet. Existing tools are text-based, lack interviewer variety, and give generic feedback.
PersonaPrep lets you rehearse **real voice conversations** with four distinct interviewer archetypes and gives you **rubric-scored feedback** after every session that quotes your actual answers.
## What It Does
- **Pick an interviewer persona**: Skeptical Technical, Friendly Recruiter, Startup Founder, or Senior Hiring Manager — each with its own tone and line of attack - **Configure the session**: role (AI Engineer, SWE, PM, Founder), interview type (behavioral / technical / recruiter screen), difficulty (easy / medium / hard) - **Talk out loud**: the agent speaks the opening question via TTS, listens via ASR, and responds per-turn with persona-conditioned behavior - **Receive scored feedback**: an LLM analyzes the full transcript and returns a rubric (clarity, specificity, technical depth, confidence), strengths, weaknesses with quoted lines, and improved-answer suggestions
## How It's Built
### Architecture
``` Frontend (React + Vite) │ REST + Agora RTC/RTM ▼ Backend (FastAPI) ◀──── /chat/completions ──── Agora ConvoAI Engine │ │ ▼ ▼ Google Gemini Agora SD-RTN (per-turn LLM + feedback) (ASR + TTS + voice loop) ```
### Stack
| Layer | Tech | |-------|------| | Frontend | React 19, Vite, TypeScript, React Router v7, Geist UI | | Realtime (browser) | `agora-rtc-react`, `agora-rtm`, `agora-agent-client-toolkit-react` | | Backend | Python 3.13, FastAPI, Pydantic v2, httpx | | Voice infra | Agora ConvoAI (Deepgram Nova-3 ASR + MiniMax TTS, both Agora-managed) | | Realtime LLM | Google Gemini 2.5 Flash Lite via OpenAI-compatible endpoint, proxied through a custom `/chat/completions` for per-turn persona injection | | Feedback LLM | Google Gemini 2.5 Flash with `response_format: json_object` | | Tokens | AccessToken2 (007 format) vendored from AgoraIO/Tools | | Tunnel | `cloudflared` (so Agora cloud can reach our custom LLM proxy) | | Tests | 127 pytest tests (unit + integration) |
### Per-Turn Flow
1. User clicks **Start Interview** → `POST /start-interview` 2. Backend builds RTC+RTM tokens, calls Agora `POST /join` with custom LLM URL pointing at our tunnel 3. Agora agent joins the RTC channel, greets the user via TTS 4. User speaks → Agora ASR → calls **our** `/chat/completions` 5. Backend injects persona system prompt + dynamic context (question count, recent questions, opening/wrap-up instruction), forwards to Gemini with streaming 6. Response streams back to Agora → TTS → user hears the next question 7. Backend captures both sides of the turn into the session transcript 8. User clicks **End** → `/feedback?channel=X` → one-shot Gemini call over the full transcript returns a Pydantic-validated `FeedbackResponse`
Reviews
- No written reviews yet.