Thanks for helping. Open an issue first for anything bigger than a small fix, so we can agree on the shape before you write it.
| You want to | Start here |
|---|---|
| Fix a bug | an issue with the --json record, then a pull request |
| Make transcripts better (a model, a revision, a setting) | an issue with the numbers: word error rates and speaker accuracy before and after, on public test speech |
| Support another platform | docs/add-a-platform.md |
| Anything else | an issue |
If you work with Claude, the repo's CLAUDE.md points it to the right guide.
You need a Mac with Apple silicon, macOS 14 or newer, uv and ffmpeg.
git clone https://github.com/<you>/audiointake && cd audiointake
uv venv --python 3.14 ~/.audiointake-dev/venv
VIRTUAL_ENV=~/.audiointake-dev/venv scripts/dev-install.sh
PYTHONDONTWRITEBYTECODE=1 ~/.audiointake-dev/venv/bin/python -m pytest -p no:cacheprovider -q
Keep the environment outside the source folder (scripts/dev-install.sh refuses one inside it): it holds about 1.2 GB, and a source folder in iCloud Drive or Dropbox would upload it. The suite replaces every model with a small fake program (tests/fakes/), so it takes a few minutes and needs no models and no GPU. One network test reads uv's published checksum from GitHub and skips itself without a network; -m "not network" leaves it out.
The real models are tested with scripts/models-local.sh on a Mac that has run audiointake setup with every pack. It runs pytest -m models, which transcribes public test speech end to end and checks the word error rates, the speakers, and that nothing reaches the network.
These keep the repo publishable and everyone's recordings safe. CI enforces most of them.
- No audio in the repo, ever, under any name or extension: not a test clip, not a few seconds, not your own voice. Tests generate audio in code (a sine, noise, silence) or fetch pinned public clips at test time, from the AMI Meeting Corpus and FLEURS (
tools/fetch_test_audio.py).tests/test_hygiene.pylooks for audio by its first bytes. - No real transcripts, speaker files or voiceprints. Test transcripts are synthetic, made of made-up words, and names in tests and examples come from the reserved placeholders (Jane Doe, Alice Example,
example.com). - Transcribing never goes online. Nothing in
transcribemay open a network connection; the models are passed as local folders and every helper program getsHF_HUB_OFFLINE=1. - One module starts processes. Only
src/audiointake/proc.pyimportssubprocess, from an allowlist of absolute paths, and every command line the transcripts depend on comes fromargv.py.tests/test_hygiene.pychecks this statically. - No transcript text in records, logs or error messages. Records hold codes, numbers, paths and speaker names.
- Core writes every word. Every warning, note, offer and error is a code in
errors.pywith its message there; nothing a model writes ever becomes a message. - A run never stops for anyone. No prompt, no reading standard input for an answer, no waiting on a person: every choice comes from a flag or a default, and what someone might want later is an offer on the record.
- Pinned everything. Models by revision and per-file SHA-256, Python packages by exact version, the speaker program by tag and commit, test audio by URL and SHA-256. A pin bump is its own pull request, with the measurements that justify it.
- Imports that need the GPU (
mlx,mlx_whisper,parakeet_mlx) go inside the function that needs them, so every module imports anywhere. - Open text files with
encoding="utf-8".
- Use the code template (.github/PULL_REQUEST_TEMPLATE/code.md).
- CI runs the suite on macOS with the oldest and newest supported Python, and the end-to-end tests with the network denied.
ci-okis the check that sums them up. - Every pull request is reviewed by the maintainer before it merges.
By contributing you agree that your contribution is licensed under the MIT licence, like the rest of the code.
The maintainer cuts each release. A release attaches one file to its GitHub release, the wheel audiointake-X.Y.Z-py3-none-any.whl, and the plugin's skill installs that wheel only after checking it against a SHA-256 written into the skill. So the hash is in the skill before the release exists. That works because the build backend is pinned exactly (hatchling==1.33.0 in pyproject.toml): one commit always builds the same wheel, byte for byte.
- Bump the version in one commit:
src/audiointake/__init__.py,claude-plugin/.claude-plugin/plugin.json, and the version in the skill and in every install line (tests/test_release.pylists them). - Run
python3 tools/pin_wheel.py --write. It builds the wheel withuv build --wheelfrom a clean export of HEAD, so an uncommitted edit never reaches it, and writes the wheel's SHA-256, file name and URL into the skill and the plugin README. Commit that on its own, as "Pin the X.Y.Z wheel's SHA-256". The pin is inclaude-plugin/, which the wheel doesn't hold, so the pin commit builds the same wheel. The root README goes into the wheel's metadata, so it gives the wheel's URL but never its hash. python3 tools/pin_wheel.py --checkbuilds the wheel again and exits 1 when the skill or the plugin README pins anything else. Anything the wheel holds (the code,pyproject.toml, the root README) that changes after the pin needs a new pin.- Cut the release with
RELEASE_SCAN='<command> [args...]' scripts/release.sh X.Y.Z.RELEASE_SCANis the maintainer's release scan, which gets the built wheel as its last argument; without it the script runs nothing. Before anything is tagged, the script runs the repo-level tests in strict mode and the real models (scripts/models-local.sh), checks that immutable releases are on, builds the wheel withtools/pin_wheel.py --check, hashes it again against both pins, and scans it. Then it tags and pushes, and follows GitHub's order for immutable releases: it creates the release as a draft, uploads the wheel, checks that the draft holds only that file at the pinned digest, publishes it, and checks that the published release is immutable with the same digest. A run that stops part way picks up from the draft when you run it again. A published release never changes: a mistake is fixed by the next patch version.
Ask in Discussions. Security problems go through SECURITY.md, not an issue.