Review recorded explanations of a solution on the site
The admin can upload a recording of themselves explaining a problem's solution out loud (mp3, m4a, wav, webm, ogg or flac, up to 25 MB) and get interview-style feedback, committed as reviews/<id>.md so every attempt is kept. Claude can't take audio, so the recording is transcribed first by an OpenAI-compatible endpoint (whisper-1 by default; TRANSCRIBE_API_KEY, with TRANSCRIBE_URL for a self-hosted server). Pace, pauses, filler words and when complexity first comes up are measured from the word timestamps and given to Claude with the timestamped transcript, the statement and optionally the code. The reply covers the verdict, scores in five areas, the approach and its complexity, missed edge cases, delivery and what to work on. Recordings are kept for playback in an S3 bucket (Garage) when the S3_* settings are given, and are thrown away otherwise. Reviews are admin-only. The job runs in the background like Explain, and the statement fetch and save-error handling are now shared between the two. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -47,3 +47,22 @@ AUTH_VALIDATE_URL=
|
||||
CLAUDE_API_KEY=
|
||||
# Model for explanations (default claude-opus-5-5).
|
||||
CLAUDE_MODEL=
|
||||
|
||||
# --- Recording reviews ------------------------------------------------------
|
||||
# A review needs CLAUDE_API_KEY and a transcriber: anything that speaks
|
||||
# OpenAI's /v1/audio/transcriptions. Blank key turns reviews off.
|
||||
# OPENAI_API_KEY is read when TRANSCRIBE_API_KEY is blank.
|
||||
TRANSCRIBE_API_KEY=
|
||||
# Default https://api.openai.com; a self-hosted faster-whisper server's URL
|
||||
# works too (with any non-blank key).
|
||||
TRANSCRIBE_URL=
|
||||
# Default whisper-1, which gives the word timestamps the pace and pause
|
||||
# metrics come from.
|
||||
TRANSCRIBE_MODEL=
|
||||
# Optional: where recordings are kept for playback. All five or none; with
|
||||
# none, a recording is thrown away once transcribed. Use a private bucket.
|
||||
S3_ENDPOINT=
|
||||
S3_REGION=
|
||||
S3_BUCKET=
|
||||
S3_ACCESS_KEY_ID=
|
||||
S3_SECRET_ACCESS_KEY=
|
||||
|
||||
Reference in New Issue
Block a user