Delivered remotely for a business based in Dublin, Ireland. Names withheld by agreement.
Project Overview
Preparing for high-stakes job interviews by reading sample answers silently leaves a glaring gap: real interviews test spontaneous verbal framing, concise storytelling under time pressure, and the poise to defend trade-offs when an interviewer probes deeper. Yet coordinating live mock sessions with human mentors is expensive and hard to schedule consistently across cohorts.
Working with an EdTech engineering group in Dublin, Ireland, we built a voice-first AI interview preparation platform using Python, React, WebRTC audio pipelines, and streaming Speech-to-Text services. Candidates practice realistic behavioral, product, and technical system interviews inside a clean browser studio while an adaptive Python orchestrator asks relevant follow-up questions and delivers actionable, rubric-backed coaching breakdowns.
Audio Latency & Coaching Gaps
Translating conversational voice coaching to the browser presented technical obstacles far beyond standard text chatbots:
- Turn-taking awkwardness: Naive voice activity detectors frequently cut candidates off mid-thought when they pause for two seconds to structure a technical explanation.
- Turnaround lag after speaking: Waiting to upload, transcribe, and process an entire three-minute recording post-hoc introduces multi-second dead air that breaks immersion.
- Technical vocabulary errors: Standard Speech-to-Text models frequently mangle framework names, acronyms, and domain terminology unless guided dynamically by role context.
- Vague feedback: Generic encouragement ("good communication") fails to teach candidates where their STAR narrative wandered or which architectural constraint they skipped.
Architectural Strategy
We separated the platform into a low-latency real-time dialogue loop and an asynchronous analytical evaluation pipeline. In the browser, React manages microphone calibration, WebAudio level visualizations, and continuous chunked streaming over WebSocket/WebRTC transport directly to a Python FastAPI gateway.
FastAPI pipes raw audio frames immediately into streaming Speech-to-Text (ASR) sessions pre-seeded with role-specific vocabulary hints. Because partial transcripts accumulate continuously while the candidate speaks, the interviewer state machine only waits milliseconds upon turn completion to decide whether to probe an unaddressed gap or advance to the next competency stage. Heavy rubric scoring—analyzing pacing, filler density, STAR structure, and technical completeness—executes out-of-band via queued Python workers and persists cleanly to PostgreSQL.
Core Capabilities
- Pre-Flight Audio & Mic Diagnostics: React verifies microphone gain, background noise floor, and network round-trip latency before launching timed drills.
- Adaptive Follow-Up Probing: Python inspects live answer transcripts against role rubrics, asking targeted follow-ups when a candidate skips trade-offs, ownership scope, or measurable results.
- Word-Timed Transcripts & Pacing Telemetry: Word-level ASR timestamps highlight speaking rate, long hesitation clusters, and verbal filler patterns synced directly to audio playback.
- Structured Competency Scorecards: Asynchronous evaluation jobs grade responses against explicit behavioral and technical criteria with timestamped transcript citations.
- Cohort & Coach Review Console: Career advisors review shared session recordings, append human timestamps, and assign custom question banks per target discipline.
Technical Architecture
Real-time audio flows continuously from the React interview studio through FastAPI into Speech-to-Text streams, while Redis coordinates live turn state and PostgreSQL anchors durable transcripts and rubric assessments.
Flow: React WebAudio / WebRTC Client → FastAPI Streaming Audio Gateway → Streaming Speech-to-Text (Custom Role Vocabulary) → Python Adaptive Interviewer State Machine (Redis Turn State) → Voice / Text Prompt Stream → Async Rubric Evaluator → PostgreSQL Coaching Ledger
Crucially, candidates retain explicit floor control. Alongside smart silence detection, a clean keyboard push-to-finish toggle lets speakers take thoughtful pauses while signaling instantly when their answer is complete, eliminating premature interruptions.
Technology Stack
| Category | Technology detail |
|---|---|
| Frontend Studio | React with TypeScript, WebAudio metering, and real-time transcript view |
| Audio Transport | WebRTC / WebSocket bidirectional PCM streaming with adaptive chunk buffering |
| Transcription Layer | Streaming Speech-to-Text (ASR) with word-level timestamps and pause telemetry |
| Interview Orchestrator | Python FastAPI state machine managing persona prompts and follow-up branching |
| Session & Turn State | Redis storing live partial transcripts, turn timers, and audio buffer locks |
| Assessment Ledger | PostgreSQL persisting interview recordings metadata, transcripts, and rubric scores |
| Async Evaluation Workers | Python background tasks scoring STAR structure, clarity, and domain depth |
| Media Storage | Encrypted S3-compatible storage with user-controlled retention lifecycle |
Engineering Trade-offs & Solutions
| Engineering Challenge | Solution & Trade-off |
|---|---|
| Avoiding premature bot interruptions during thoughtful candidate pauses | Paired streaming ASR silence telemetry with semantic completeness heuristics and an optional spacebar finish trigger; slightly more UI state in React in exchange for natural speaking cadence. |
| Running deep rubric evaluation without stalling live conversation flow | Offloaded multi-criterion scoring to asynchronous Python workers after turn boundaries, trading instant per-sentence scores for snappy spoken turns and thorough post-session diagnostics. |
| Handling dropped packets or Wi-Fi hiccups mid-answer | Buffered recent PCM audio segments locally in React with idempotent chunk sequence numbers in Redis, adding minor client memory usage while preventing lost answers on brief reconnects. |
| Reducing ASR errors on specialized engineering and finance acronyms | Injected dynamic role-scoped phrase hints when opening each Speech-to-Text session, adding brief session-setup logic while sharply improving transcript fidelity. |
Security & Media Governance
Spoken interview sessions capture candid personal narratives and identifiable voice biometrics. All audio streams travel over encrypted TLS/DTLS channels, and media objects land in private storage buckets under strict per-user prefix isolation accessed exclusively via short-lived signed URLs.
Candidates control whether practice sessions remain strictly private or become visible to assigned career coaches. Automated lifecycle policies honor deletion requests across both audio object storage and relational transcript records, while prompt templates strip control characters from transcribed speech before running downstream coaching evaluations.
Performance & Scale
Streaming audio processing avoids burst CPU spikes at the end of answers by spreading transcription work evenly across the duration of each spoken turn. FastAPI's async worker model sustains high counts of concurrent open WebSocket streams efficiently, while Redis tracks active session state in memory so stateless Python containers scale horizontally behind standard load balancers.
On the client side, React offloads waveform visualization onto WebAudio AnalyserNode loops outside the main component render tree, keeping CPU and battery drain modest on student laptops during 45-minute full-length mock panels.
Operational Outcomes
Combining real-time Speech-to-Text streaming with decoupled rubric analysis transformed spoken practice from passive recording into interactive skill building:
- Realistic conversational cadence: Streaming ASR and smart turn-taking eliminate awkward multi-second delays between a candidate finishing a thought and the interviewer responding.
- Concrete, repeatable coaching signals: Word-aligned transcripts and structured STAR rubrics show candidates precisely where explanations drifted rather than offering vague summaries.
- Resilient browser experience: Local ring buffering and turn checkpointing protect multi-minute answers from transient campus or home Wi-Fi drops.
- Scalable coach oversight: Career advisors focus human review time on high-value nuance and delivery strategy while automated drills handle foundational repetition.