A voice agent on a Fly.io Sprite that rehearses a job interview with you. Paste a job posting, answer out loud, get a report on every answer.
Built for Fly.io Hacksgiving 2026.
Demo video, 100 s. Synthetic voice and invented answers.
- Paste a job posting.
- The coach writes three questions for it and speaks each one.
- You answer out loud. It asks one follow-up about what you said.
- The report shows each answer with four marks from 1 to 5 (relevance, structure, concrete example, length) and a one-line reason.
Each answer also gets an experimental local assessment from a small reward model on the Sprite. It is shown as a raw, uncalibrated number, never as a mark.
If the free hosted LLM is out of quota, the coach switches to three labelled general practice questions and keeps the transcript and local assessment.
flowchart LR
B[Browser<br/>mic + speaker] -->|answer audio| S
S -->|question audio| B
subgraph Sprite [Fly.io Sprite]
S[Coach service<br/>FastAPI]
R[Local scorer<br/>reward model<br/>loopback only]
end
S --> R
S --> G[Sprites gateway]
G --> D[Deepgram<br/>speech to text<br/>text to speech]
G --> O[OpenRouter<br/>free LLM]
- The coach is a Sprite service that wakes on the first request.
- A second service runs Skywork-Reward-V2-Qwen3-0.6B on CPU, about one second per answer, on
127.0.0.1only. Weights are pinned by revision and checked by SHA-256.
- Fails closed, names the failed part. Timeouts, HTTP errors or unreadable replies stop the session with "Speech to text failed", "Text to speech failed" or "LLM failed". It never invents a question or a mark. A malformed LLM reply is retried once, then marked failed.
- Second opinion, not a grade. The reward model ranked every good answer above every weak, off-topic, keyword-stuffed or prompt-injection answer (36 of 36 pairs). That is a ranking, so it is never turned into a mark.
- Strict parsing. Pydantic checks every model reply: three questions, one mark per criterion, values 1 to 5.
- Untrusted input. The posting is checked (not empty, long enough, English) and passed to the model as data.
- Public material only. Free endpoints may keep prompts, so demos use public postings and invented answers.
- Reproducible. Lint, format,
mypy --strictand about 195 tests run offline in a pinned StageX container. The shipped image isFROM scratchwith only Python and the app.
Needs a Fly.io account and a Sprite. Set DEEPGRAM_GATEWAY and OPENROUTER_GATEWAY to your Sprite gateway URLs. Inside the Sprite:
git clone <this repo> ~/app && cd ~/app
uv sync --locked --no-dev --python 3.15
sprite-env services create coach --http-port 8080 --dir ~/app \
--cmd ~/app/.venv/bin/python \
--args -m,uvicorn,interview_coach.sprite_app:app,--host,127.0.0.1,--port,8080 \
--env DEEPGRAM_GATEWAY=<deepgram url>,OPENROUTER_GATEWAY=<openrouter url>Free OpenRouter models allow about 50 requests a day. One session uses about 13.
Rootless Podman and make only.
make toolchain # pinned Python + uv image, once
make fetch # only online step: fill the dependency volume
make check # offline: lint, format, mypy --strict, tests| Path | What |
|---|---|
interview_coach/session.py |
Questions, follow-ups, scoring, retries |
interview_coach/cloud.py |
Deepgram and OpenRouter adapters |
interview_coach/web.py, voice_web.py, static/voice.js |
Page, voice loop, report |
interview_coach/assessment.py, local_reward.py |
Local assessment and its loopback client |
interview_coach/practice.py |
General practice questions when the LLM is unavailable |
interview_coach/sprite_app.py |
The app the Sprite runs |
deploy/local_scorer.py |
The reward-model service |
GLOSSARY.md |
Domain words |
The demo answers use a synthetic voice, not a real person: a blend of three CC0 voices from the Kyutai Unmute Voice Donation Project and Kokoro af_heart (Apache 2.0), cloned with VelvetVoice. The answers are invented.
