Skip to content

About

Real-time interview & demo Q&A teleprompter — captures questions via tab audio, mic, or text and streams suggested answers in your own voice (Gemini + Groq Whisper).

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Live Interview Assistant

A real-time Q&A teleprompter for live interviews and demos. It captures the interviewer's question — from a call's tab audio, a microphone, or plain typing — transcribes it, and streams a suggested answer in your own voice onto your screen while you speak.

You give it your context once (who you are, the project you're presenting) in a single Markdown file, and it answers as you, grounded in those facts.

Two interchangeable tools are included:

Tool File Best for
Browser tool interview_chatbot.py The main app — a clean web panel with three capture modes. Lightweight deps.
Desktop overlay demo_helper.py A floating always-on-top window with local Whisper + optional text-to-speech.

Features

  • 🎙️ Three ways to capture a question
    • PC / Tab audio — share a browser tab or screen (e.g. a video call) and it hears the other person directly. No drivers, works on headphones.
    • Microphone / loopback — pick any input device, including a loopback like Stereo Mix.
    • Type it — a always-reliable manual fallback.
  • ⚡ Fast transcription via Groq Whisper (whisper-large-v3-turbo), with simple voice-activity detection so it submits a question after each pause.
  • 🧠 Streaming answers from Google Gemini (primary), automatically falling back to Groq Llama 3.3 70B on quota/rate-limit errors.
  • 📝 Answers in your voice, driven entirely by interview_prompt.md — no code changes to customize.
  • 🪶 Light footprint — the browser tool is a single Python file serving one HTML page. No build step, no Node, no database.

How it works

Interviewer's question
   │
   ├─ PC / tab audio (getDisplayMedia)  ┐
   ├─ microphone / loopback (getUserMedia) ├─▶ VAD ─▶ Groq Whisper ─▶ text
   └─ typed text ────────────────────────┘                              │
                                                                        ▼
                                              system prompt (interview_prompt.md)
                                                                        │
                                                                        ▼
                                            Gemini  ──(quota error)──▶  Groq
                                                                        │
                                                                        ▼
                                              streamed answer on screen

The browser captures audio locally, slices it on silence, and posts each utterance to a tiny FastAPI backend that calls Groq Whisper. The transcript is sent to the chat model, and the answer streams back token-by-token over server-sent events.


Quick start — browser tool

1. Install dependencies (Python 3.10+)

pip install -r requirements.txt

2. Add your API keys

cp .env.example .env          # Windows: Copy-Item .env.example .env

Then edit .env and set GEMINI_API_KEY and/or GROQ_API_KEY. At least one is required for answers; GROQ_API_KEY is needed for voice capture (Whisper).

3. Personalize the assistant — edit interview_prompt.md with your name, role, project, and talking points.

4. Run it

python interview_chatbot.py
# open http://localhost:8888 in Chrome

Using it during a call

  • Click ▶ PC / Tab Audio, choose your call's tab in the share dialog, and enable "Also share tab audio" — this is what lets it hear the other person.
  • Or click ▶ Mic and pick an input device (including a loopback like Stereo Mix, if enabled).
  • Watch the level meter move when they speak; it transcribes after each pause and streams an answer. The SENS slider tunes how easily it triggers.
  • You can always just type a question instead.

Tip: when sharing tab audio, share the call tab (not your whole screen) to keep capture clean and avoid showing the "sharing" banner to others.


Quick start — desktop overlay

A floating window that uses local Whisper (no audio leaves your machine for transcription) and can optionally speak the answer aloud.

pip install -r requirements.txt -r requirements-desktop.txt
python demo_helper.py

Pick an INPUT device (a loopback like Stereo Mix captures the other side of a call cleanly) and an OUTPUT device for text-to-speech. Edit the SYSTEM_PROMPT at the top of demo_helper.py to add your context.

Hotkeys: Space ask about the last lines · S speak answer · R reset · P pause · Esc quit.


Configuration

All settings live in .env (see .env.example):

Variable Purpose Default
GEMINI_API_KEY Primary answer model —
GEMINI_MODEL Gemini model id gemini-2.0-flash
GROQ_API_KEY Answer fallback + voice transcription —
GROQ_MODEL Groq chat model llama-3.3-70b-versatile
GROQ_WHISPER_MODEL Groq transcription model whisper-large-v3-turbo
WHISPER_MODEL Local Whisper size (desktop overlay) base.en

Tech stack

  • Backend: Python, FastAPI, server-sent events
  • Models: Google Gemini, Groq (Llama 3.3 70B + Whisper)
  • Browser capture: Web Audio API, getUserMedia, getDisplayMedia, MediaRecorder
  • Desktop overlay: Tkinter, OpenAI Whisper (local), sounddevice, pyttsx3

Notes

  • This is a personal preparation and accessibility aid. Use it responsibly and in line with the rules of any interview or event you take part in.
  • Your .env is git-ignored — keep your API keys out of version control.

License

MIT © 2026 Saud Satopay

About

Real-time interview & demo Q&A teleprompter — captures questions via tab audio, mic, or text and streams suggested answers in your own voice (Gemini + Groq Whisper).

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages