- Python 93.9%
- Nix 3.8%
- Shell 2.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
ci/crow/push/build Pipeline was successful
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 |
||
| .crow | ||
| app | ||
| dev-scripts | ||
| .gitignore | ||
| .style.yapf | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| convert-to-wav.sh | ||
| download-pyannote-model.sh | ||
| flake.lock | ||
| flake.nix | ||
| python-wheels.nix | ||
| README.md | ||
| ruff.toml | ||
Transcribe meetings
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.
-
Accept the terms for pyannote Community-1 and create a Hugging Face access token with read access to the model.
-
Download the pyannote model:
HF_TOKEN="$(cat /path/to/huggingface-token)" && export HF_TOKEN && nix run .#download-pyannote-model -- ./data/models -
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