No description
  • Python 93.9%
  • Nix 3.8%
  • Shell 2.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
mike-bot f77a1999d7
All checks were successful
ci/crow/push/build Pipeline was successful
Automatically correct “kayam” to “Kiam” in transcripts (#72)
The transcript autofix now changes the standalone word `kayam` to `Kiam` regardless of input capitalization and preserves surrounding punctuation.

Co-authored-by: mike <git@openeasthampton.com>
Reviewed-on: #72
2026-11-25 16:19:01 -05:00
.crow Run transcribe checks in Crow and publish builds to nixbuild 2026-11-24 14:29:36 +00:00
app Automatically correct “kayam” to “Kiam” in transcripts (#72) 2026-11-25 16:19:01 -05:00
dev-scripts Run all six meeting stages through one resumable command (#59) 2026-11-25 13:13:11 -05:00
.gitignore Ignore local development files and scratch worktrees (#12) 2026-11-24 12:41:18 -05:00
.style.yapf Check Python formatting with YAPF in CI (#40) 2026-11-25 11:03:43 -05:00
AGENTS.md Share assistant guidelines and the build workflow with oe-transcripts 2026-11-24 15:46:12 +00:00
CLAUDE.md Share assistant guidelines and the build workflow with oe-transcripts 2026-11-24 15:46:12 +00:00
convert-to-wav.sh Assign recording-wide speaker IDs with Whisper and pyannote (#18) 2026-11-24 21:30:07 -05:00
download-pyannote-model.sh Record model and tool provenance in pyannote output (#61) 2026-11-25 13:29:43 -05:00
flake.lock Assign recording-wide speaker IDs with Whisper and pyannote (#18) 2026-11-24 21:30:07 -05:00
flake.nix Record model and tool provenance in pyannote output (#61) 2026-11-25 13:29:43 -05:00
python-wheels.nix Assign recording-wide speaker IDs with Whisper and pyannote (#18) 2026-11-24 21:30:07 -05:00
README.md Keep local meeting inference to one model at a time (#60) 2026-11-25 13:40:19 -05:00
ruff.toml Enforce a consistent Python import order (#38) 2026-11-25 10:39:03 -05:00

Transcribe meetings

CI status

Turn a meeting recording into a speaker-labeled transcript and timestamped highlights. Requires Nix with flakes on x86_64-linux; an NVIDIA GPU is recommended.

Set up the model and API keys

Replace the example credential paths with your own.

  1. Accept the terms for pyannote Community-1 and create a Hugging Face access token with read access to the model.

  2. Download the pyannote model:

    HF_TOKEN="$(cat /path/to/huggingface-token)" &&
      export HF_TOKEN &&
      nix run .#download-pyannote-model -- ./data/models
    
  3. Create an OpenCode Zen API key and load it for AI correction and summarization:

    OPENCODE_API_KEY="$(cat /path/to/opencode-api-key)" &&
      export OPENCODE_API_KEY
    

Whisper downloads its public model weights automatically on the first transcription.

Start or resume meeting transcription

SOURCE_MEDIA_FILE='data/raw/Easthampton School Committee 11⧸10⧸2026 [xFQKOZcqo4U].webm'
nix run .#full-pipeline -- "${SOURCE_MEDIA_FILE}"

The pipeline prints the path to transcript-finalized.json under data/processed/. Rerun the same command to reuse completed stages and replay any complete saved AI response. Interrupted Whisper or pyannote passes start over. Use --outdir DIR or --pyannote-model DIR to change the default locations.

Whisper and pyannote run one at a time. Local runs under the same Linux account share an inference lock at ~/.local/state/transcribe-meetings/inference-lock, so a run for another meeting waits rather than loading a second model, even on CPU.

You can also run the stages individually. Each app shares the full pipeline's checkpoints.

Transcribe with Whisper

nix run .#transcribe -- "${SOURCE_MEDIA_FILE}"

Diarize with pyannote

nix run .#diarize -- "${SOURCE_MEDIA_FILE}"

Assign speakers and apply rules

Set MEETING_DATA_DIR to the output directory for your recording. The remaining steps use this directory.

MEETING_DATA_DIR='data/processed/2026-11-10-Easthampton School Committee-xFQKOZcqo4U'
nix run .#auto-fix-transcript -- "${MEETING_DATA_DIR}"

Correct the transcript with AI

nix run .#correct-transcript -- "${MEETING_DATA_DIR}"

Summarize with AI

nix run .#summarize -- "${MEETING_DATA_DIR}"

Package the final JSON

nix run .#finalize -- "${MEETING_DATA_DIR}"

Run audio models on Vast.ai

Register a dedicated, unencrypted SSH key with Vast.ai, then point the app at your private credential files:

export VAST_API_KEY_FILE=/run/secrets/vast/api-key
export VAST_SSH_KEY_FILE=/run/secrets/vast/ssh-key
nix run .#full-pipeline -- "${SOURCE_MEDIA_FILE}" --cloud

transcribe and diarize also accept --cloud. The default rental cap is $1/hour (--max-hourly-usd). If cleanup fails, destroy the rental; stopping it is not enough.

Keep recordings, models, outputs, and credentials out of Git and the Nix store.

Development

Run tests, lint, and runtime checks without model weights or a GPU:

nix flake check --print-build-logs