Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Call Recording -> Transcript -> GTM Analysis Pipeline

No meeting bot. You record locally with OBS; this pipeline picks up the file the moment you stop recording, transcribes it (Gemini, free tier), analyzes it (Claude or Gemini, your choice, see below), and drops everything in a dated folder on your machine.

Not a developer, or new to PowerShell/Python? Use BEGINNER_SETUP.md instead, it spells out every single click and command from a blank computer. This README assumes you're comfortable in a terminal already.

What you need

  • Windows 11
  • OBS Studio (see step 0 below -- not installed by setup.py)
  • Python 3.10+ (python --version to check; install from python.org if missing)
  • ffmpeg on your PATH (winget install ffmpeg, or download from ffmpeg.org and add its bin folder to PATH)
  • A free Gemini API key: https://aistudio.google.com/app/apikey. No credit card needed, this is always required (transcription runs on Gemini no matter what you choose below for analysis).
  • Optionally, a Claude Pro/Max subscription, if you want the analysis step to use Claude instead of the free Gemini API (see "Analysis backend" below). Not required.

0. Install OBS Studio

This pipeline doesn't record anything itself, OBS does the recording and this just picks up the file afterward. If you don't already have OBS:

winget install OBSProject.OBSStudio

Or download the installer yourself from https://obsproject.com and run it with the defaults. Either way, launch OBS once after installing so it finishes its own first-run setup (it will offer an "Auto-Configuration Wizard" -- either option is fine, you'll override the relevant settings in step 3 below regardless). Then continue to step 1.

1. Install

cd C:\Apps\CallApp
python setup.py

This walks you through everything: checks Python/ffmpeg, installs dependencies, asks whether you want to use a Claude subscription or the free Gemini API for analysis, asks for your Gemini key, writes .env and config.yaml, creates the calls/ folder structure, and runs a no-cost dry-run to confirm it's all wired up correctly. Re-run it any time, it won't overwrite an existing .env or config.yaml without asking first.

If you'd rather do it by hand instead:

cd C:\Apps\CallApp
pip install -r requirements.txt
copy .env.example .env
notepad .env                    # paste in your GEMINI_API_KEY
copy config.yaml.example config.yaml
notepad config.yaml             # set rep_name, analysis_backend, paths, etc.

python setup.py asks for rep_name interactively; if you edit config.yaml by hand instead, set it yourself. It's the name that shows up as "Rep" (you, the person recording) in every transcript and analysis this pipeline generates -- there's no sane default, so leaving it unset produces oddly generic-sounding output ("the person recording this call" instead of your actual name).

2. Analysis backend: Claude or Gemini

The transcription step always runs on Gemini. The analysis step (call classification, the GTM write-up, the filename label, interview continuity-tracking) can run on either:

  • gemini (default): the same Gemini API key you're already using for transcription, no separate account, genuinely free at normal call volume. This is what most people should use.
  • claude_code: runs through the Claude Code CLI (claude -p), billed against your Claude Pro/Max subscription rather than a metered key. Slightly stronger on judgment-heavy sections of an analysis (see the note below), at the cost of needing Claude Code installed (https://code.claude.com) and claude /login done once with your Pro/Max account.

Set this with python setup.py, or by hand: analysis_backend in config.yaml. It's a one-line edit to switch later, nothing else about the pipeline changes.

Quality note: a side-by-side test on a real job-interview transcript (2026-09-11) found Gemini's analysis solid on extraction and structure, every section populated, a usable follow-up email, but it missed a genuinely high-stakes item (a direct objection that went unaddressed) that the Claude/Opus version caught. Gemini is a good default for a free tool used by a small group; if you're leaning on this for something with real stakes (your own job search, a big deal), the Claude backend on sales and job_interview calls is worth the subscription. claude_model_overrides and gemini_text_model_overrides in config.yaml let you escalate to a stronger model (Opus, or a billing-enabled Gemini Pro model) on just those two call types either way, see the comments there.

3. OBS setup (one-time)

  1. Settings -> Output -> Output Mode: Simple.
  2. Recording Format: MKV (safest against crashes; we convert it automatically later).
  3. Add two audio sources to your scene (or use the global ones): Desktop Audio (set to whatever output device Zoom/Meet plays through) and Mic/Aux (your microphone/headset). Simple mode mixes these into one track automatically, that's what we want.
  4. Settings -> Hotkeys: confirm Start/Stop Recording hotkeys are set, so you can start/stop without alt-tabbing out of the call.
  5. Settings -> Output -> Recording Path: point this at the watch_folder you set in config.yaml (python setup.py prints the exact path to use).

Do one test recording (even 10 seconds of you talking) before relying on this for a real call.

4. Test on one file before trusting it with a real call

python pipeline.py path\to\some_recording.mkv --dry-run

This runs the full pipeline (audio conversion, folder creation, file moves) but skips the actual Gemini/analysis API calls, so you can confirm the wiring works without burning quota. Check output_folder for a new dated folder with recording.mp3, transcript.txt, and analysis.md (placeholder content in dry-run mode). setup.py already runs an equivalent check for you at the end of installation.

Once that looks right, run it for real on a short test recording:

python pipeline.py path\to\some_recording.mkv

Open analysis.md and sanity-check the output. Or use the wrapper below, which does this same real run and opens the result automatically:

.\run_test.ps1 "path\to\some_recording.mkv"

5. Run it live

Start the watcher before your calls (or leave it running all day):

python watcher.py

It polls the watch folder, waits for OBS to finish writing a file (checks that the file size has stopped changing), then automatically converts, transcribes, and analyzes it. Leave the terminal window open, or run it via a Startup shortcut so it starts automatically at login:

  1. Win+R -> shell:startup -> Enter
  2. Create a shortcut to a .bat file containing:
    cd /d C:\Apps\CallApp
    python watcher.py
    

Only one watcher.py can run at a time (it holds a lock file), so a duplicated shortcut or a manual run on top of an existing one exits safely instead of double-processing every call.

Now the whole flow is: join call in Zoom/Meet, start OBS recording, talk, stop OBS recording. Everything else happens on its own.

Output structure

calls/processed/2026-07-09_1430\
  recording.mp3          <- converted from OBS's raw file
  transcript.txt         <- speaker-labeled transcript (Rep / Prospect)
  analysis.md             <- summary, pains/goals, buying signals, objections,
                              missed questions, next steps, follow-up email draft,
                              CRM notes, call quality score
                              (+ a "Vocal Delivery & Speech Patterns" section if
                              this call type is in delivery_analysis_call_types,
                              see below)
  vocal_ratings.json      <- (job_interview only) this call's raw delivery
                              scores, feeding the trend report below
  content_tags.json       <- (job_interview only) this call's tagged weak
                              spots/missed questions, feeding the trend report
  AUDIO_WARNING.txt       <- only appears if one side of the call looks like
                              it wasn't actually captured, see "Notes" below

Folder names get an auto-extracted context label appended when the transcript makes one obvious (e.g. ..._sales_Todor, ..._job_interview_Bev): a participant's name, then a company name, then a short topic guess, in that order of preference. You can override this per-call with --label, or just ignore it, it's a convenience for browsing folders, nothing depends on it.

Fixing a wrong auto-classification

The pipeline auto-detects call type (sales, webinar, networking, job_interview, recovery, internal_call, other). If it guesses wrong, fix it without re-transcribing the audio (that part wasn't wrong, and re-running it costs real time/money):

.\reclassify.ps1 "calls\processed\2026-07-14_0931_sales" job_interview

or directly:

python pipeline.py --reclassify "calls\processed\2026-07-14_0931_sales" job_interview

This overwrites analysis.md in place (it's a correction, not a second opinion) and renames the folder to match. If you instead want a second, differently-angled analysis of a call without touching the original (e.g. you want to see a sales call also written up as an internal debrief), that's not something this pipeline generates automatically, ask an AI assistant with access to this folder to write one as analysis_<type>.md alongside the original, see PROJECT_INSTRUCTIONS.md.

Interview continuity tracking (job_interview calls only)

Every job_interview call automatically gets two things beyond its own analysis.md:

  • Vocal trend tracking: each call's delivery ratings (vocal_ratings.json) get appended to calls/vocal_trends.json, and the next job_interview call's vocal-delivery pass is given your last 5 calls' ratings as context, so it can say things like "fry persists, same as the last two calls" instead of scoring each call in isolation.
  • Content continuity tracking: each call's weak answers and missed questions (content_tags.json) get tagged against every prior job_interview on record and folded into calls/content_trends.json, so a recurring gap (e.g. "quantifying-impact") gets flagged as a repeat rather than treated as new feedback every time.

Both regenerate calls/trend_report.md automatically after each tracked call, a running summary of your interview performance over time. This is driven by TREND_TRACKED_CALL_TYPES in pipeline.py (currently just job_interview) and by trends.py / trend_report.py; trend_backfill.py is a one-off script for backfilling this tracking onto calls that were processed before it existed. None of this is required to use the pipeline, it's additive and non-fatal, a failure here never breaks a call's core analysis.md.

Vocal delivery analysis

For call types listed in delivery_analysis_call_types (empty by default, see config.yaml), a second Gemini pass listens to the recording for uptalk, filler words, pace, pauses, and tone, scoped to "Rep" (you) only, the other speaker is ignored entirely. That gets folded into the same analysis.md as one more section, not a separate file.

This requires a billing-enabled (paid tier) API key on GEMINI_API_KEY's project, Pro models aren't available on Gemini's free tier. If billing isn't enabled and you add call types to this list anyway, this step logs a warning and the rest of the analysis still completes normally, it degrades gracefully rather than failing the whole call. If you don't want to enable billing, just leave delivery_analysis_call_types empty, everything else works fine on the free tier.

Optional: Google Drive sync for mobile access

If you set drive_sync_folder in config.yaml to a folder inside your Google-Drive-synced folder, every call's analysis.md gets copied there (as <call_folder_name>.md) right after it's generated, so it shows up on your phone via the Drive app without anything else running. Leave it unset if you don't use Google Drive, this is entirely optional and skipped silently (with a log warning, never a failed call) if the path doesn't exist.

Notes / things to know

  • Free Gemini tier: transcription and (if analysis_backend is gemini) analysis both work fine on it for personal/small-group call volume, but Google logs free-tier traffic for product improvement. The vocal-delivery pass needs billing enabled regardless of the free tier. If a call has real confidentiality weight, enable billing on the API key, it's a cheap switch, not a rebuild.
  • Claude Code auth (only relevant if analysis_backend is claude_code): the analysis step shells out to claude -p, which uses whatever claude is logged into. If you ever authenticate a different way (API key, another account) on this machine, this pipeline silently starts billing that instead. It prints a warning at startup if it detects an ANTHROPIC_API_KEY environment variable, but it can't detect every case, worth a periodic check with claude /login if something about your Claude usage looks off.
  • Dead-mic detection: if one side of a call comes back almost entirely as [inaudible] while the other transcribed fine, the pipeline writes AUDIO_WARNING.txt into that call's folder and prepends a warning to analysis.md. This almost always means an OBS audio source wasn't actually capturing, not a transcription-quality issue, check OBS's Audio Mixer and device dropdowns before your next call.
  • If a file fails to process (e.g. a Gemini "high demand" 503, an analysis-call hiccup), it self-heals in two layers: each API call retries a few times with backoff on its own (seconds), and if it still fails outright the watcher automatically re-attempts the whole file on a backoff schedule (1 min, 2 min, 4 min, 8 min) up to 5 tries. No manual step needed for a normal transient outage. Only if it fails all 5 times does it get left alone, at that point something's actually wrong (bad key, missing CLI, corrupt file); check the log, fix it, and re-run python pipeline.py <file> on it directly.
  • A stuck/interrupted call resumes, not restarts. If conversion or transcription already produced recording.mp3/transcript.txt before a later step failed, a retry reuses them instead of re-paying for conversion and (real-money) Gemini transcription.
  • Model names drift. If any Gemini model in config.yaml ever returns a "model not found" error, check the current model list at ai.google.dev and update the config. For Claude, stick to CLI aliases (sonnet, opus, fable) since those stay valid across model updates.
  • This intentionally does not touch Zoom or Meet at all. No bot, no API integration with either platform, it only watches a folder.

Files

  • setup.py - interactive first-time installer, see "1. Install" above
  • config.yaml.example / config.yaml - all paths, model settings, and the analysis backend choice (config.yaml is your personal copy, gitignored, created from the .example template by setup.py or by hand)
  • .env.example / .env (you create this) - your Gemini key only, never commit it
  • pipeline.py - conversion + transcription (Gemini) + analysis (Claude or Gemini, see analysis_backend) + file output; also runnable directly on a single file for testing, or with --reclassify to fix a call's type after the fact
  • watcher.py - background loop that watches the folder and calls pipeline.py; holds a lock so only one instance runs at a time
  • prompts.py - the fixed Gemini transcription prompt, the vocal-delivery prompt/schema, and the analysis prompts per call type
  • trends.py / trend_backfill.py / trend_report.py - the job_interview continuity-tracking system, see "Interview continuity tracking" above
  • reclassify.ps1 / run_test.ps1 - convenience wrappers around pipeline.py's --reclassify and normal single-file modes
  • retranscribe_full.py - fixes very long (4+ hour) recordings where Gemini's transcription degrades near the end, by re-transcribing on a trimmed segment
  • requirements.txt - Python dependencies (Claude Code, if you use that backend, is a separate install, not a Python package)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages