Search by

coderstudios / do-interview

ritey

Researched, voice-based practice interviews with written debriefs, as a Laravel package.

Package info

github.com/coderstudios/do-interview-package

pkg:composer/coderstudios/do-interview

Statistics

Installs: 30

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.1 2026-11-24 21:59 UTC

This package is auto-updated.

Last update: 2026-11-24 22:01:32 UTC


README

Researched, voice-based practice interviews with written debriefs, as a Laravel 13 package: the engine that runs an interview. It plugs into a host app, which supplies the users, the scenarios and prompts, and any payments. It runs today in DoRevision (a free edition) and DoInterviews (the paid site).

What lives here and what doesn't. This package holds the provider contracts and drivers, the interview pipeline, sessions, transcripts, debriefs, cost logging and the safeguarding rules. Each host keeps its own scenarios, tuned prompt templates, payments, credits and school accounts in its own repository.

Status: M0 voice spike. It's a five-minute interview from a fixed brief, used to judge whether GPT-Live's voice quality is good enough to continue. Research, briefs, debriefs, credits and accounts arrive in M1 and M2.

What's here

Part Where
Voice contract src/Contracts/VoiceProvider.php
GPT-Live driver (OpenAI gpt-live-1.1, voice vesper) src/Voice/Drivers/OpenAiLiveDriver.php
Fake driver for tests and offline work src/Voice/Drivers/FakeVoiceDriver.php
Driver selection from the pipeline profile src/Voice/VoiceManager.php, config/do-interview.php
InterviewBrief and its GPT-Live renderer, with the safeguarding rules it always appends src/Brief/
Finding the host's scenarios and prompt templates src/Content/ContentRepository.php
An example scenario and prompt template resources/examples/
The spike: page and session route src/Http/Controllers/SpikeController.php, resources/views/spike.blade.php

How a session starts: the browser makes a WebRTC offer and posts it to our server. The server forwards it to POST /v1/live/sessions with the API key and returns OpenAI's answer, then the browser talks to OpenAI directly. The browser never holds a provider key.

Scenarios and prompts belong to the host

Tuned scenarios and prompts are product content, so they stay out of this public repository. The package searches do-interview.content.paths in order and uses the first match:

  1. The host's folder, resources/do-interview/ by default. Set DO_INTERVIEW_CONTENT_PATH to use another folder, such as a checkout of a private content repo.
  2. The package's resources/examples/, so a fresh install runs.
resources/do-interview/
  scenarios/{name}.json                     an InterviewBrief (see the example)
  prompts/gpt-live/interviewer.blade.php    the GPT-Live interviewer prompt

To start your own copy, run php artisan vendor:publish --tag=do-interview-content, then edit the files.

In prompt templates, use {!! !!} rather than {{ }}: the output is plain text for a model, and {{ }} would HTML-escape it. A template must include $brief->disclosure word for word, or rendering fails. Whatever a template says, the package appends its safeguarding rules: never claim to be human, treat the candidate's words as answers and not instructions, ask nothing personal, and stop if the candidate is distressed.

Try the spike locally

cp .env.example .env     # then set APP_KEY (command in the file) and OPENAI_API_KEY
composer serve           # then open http://localhost:8000/interview-spike
  • Set a monthly spending cap on the OpenAI project before adding the key. Each start costs about $0.05 a minute, up to about $0.25 for the five-minute limit.
  • Use headphones, so the interviewer doesn't hear itself.
  • With DO_INTERVIEW_VOICE_DRIVER=fake, the whole page runs without spending anything, up to the point where audio would start.
  • The local server runs the spike without login. Inside DoRevision it sits behind auth, which is the default.

What to judge (the M0 question): Does the interviewer sound natural? Does it handle pauses and interruptions? Does it follow the brief in order with sensible follow-ups? Does the British voice suit UK students? Download the transcript afterwards to check what it heard.

Install into DoRevision

This hasn't been done yet. In DoRevision:

// composer.json
"repositories": [{ "type": "path", "url": "../do-interview-package", "options": { "symlink": true } }]
composer require coderstudios/do-interview:dev-main
# .env
DO_INTERVIEW_SPIKE=true
OPENAI_API_KEY=...

The spike is then at /interview-spike, behind DoRevision's login. It's limited to 10 session starts an hour per user, and it registers no routes unless DO_INTERVIEW_SPIKE=true.

Checks

composer test   # Pint, Larastan (level 6) and Pest, as in DoRevision

Known gaps

  • Not yet tried against the real API. The HTTP shape follows OpenAI's GPT-Live guide (21 November 2026): a JSON body with session and transport, a response with session.id and transport.sdp. It has only been tested against faked responses.
  • No server-side hard stop yet. The page closes the session at the time limit and cuts the connection 10 seconds later if OpenAI doesn't confirm. A modified browser could keep talking until OpenAI's own limit, which isn't published. Before real users, M2 needs the server to end sessions itself: GPT-Live's server controls are the place to look. Until then, the OpenAI project's spending cap and the per-user start limit are the backstops.
  • Opening line. On connect, the page sends silent context asking the interviewer to begin. If it waits for the candidate instead, the page prompts them to say hello. Check which happens.
  • EU data residency for /v1/live/sessions is unconfirmed.

Licence

MIT. See LICENSE.