Metadata-Version: 2.5
Name: stenograf
Version: 0.9.1
Summary: Accuracy-first local meeting transcription for German and English. Audio stays in RAM; only text is written.
Project-URL: Repository, https://github.com/daniel-om-weber/stenograf
Project-URL: Issues, https://github.com/daniel-om-weber/stenograf/issues
Author-email: Daniel Weber <danielusweber@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: diarization,local,meetings,privacy,speech-to-text,transcription
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Environment :: MacOS X
Classifier: Environment :: Win32 (MS Windows)
Classifier: Environment :: X11 Applications :: Qt
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Requires-Python: <3.14,>=3.12
Requires-Dist: click>=8.1
Requires-Dist: imageio-ffmpeg==0.8.1
Requires-Dist: livekit>=1.1
Requires-Dist: mlx-lm<0.30,>=0.29.1; sys_platform == 'darwin' and platform_machine == 'arm64'
Requires-Dist: numba>=0.60; sys_platform == 'darwin' and platform_machine == 'arm64'
Requires-Dist: numpy>=1.26
Requires-Dist: onnx-asr[hub]<0.13,>=0.11
Requires-Dist: onnxruntime-directml>=1.24; sys_platform == 'win32'
Requires-Dist: onnxruntime>=1.28.2; sys_platform != 'win32'
Requires-Dist: parakeet-mlx<0.8,>=0.5.2; sys_platform == 'darwin' and platform_machine == 'arm64'
Requires-Dist: pyside6-essentials<7,>=6.12
Requires-Dist: sentencepiece>=0.2
Requires-Dist: sherpa-onnx-core<1.14,>=1.13.8
Requires-Dist: sherpa-onnx<1.14,>=1.13.8
Requires-Dist: transformers<5,>=4.55.2; sys_platform == 'darwin' and platform_machine == 'arm64'
Provides-Extra: gui
Provides-Extra: ollama
Description-Content-Type: text/markdown

# stenograf

**Website:** [daniel-om-weber.github.io/stenograf](https://daniel-om-weber.github.io/stenograf/) —
what it does and how to install it, in English and German. This README is the
full reference.

Accuracy-first, fully local meeting transcription for **German** and **English**
(one language per meeting), with speaker labels. Audio is processed entirely
**in memory** — no audio lands on disk unless you explicitly opt into keeping
a recording; what a meeting leaves behind is its transcript (and, with speaker
separation on, each speaker's voiceprint — see
[Where your files land](#where-your-files-land)).

Built for Apple Silicon (M-series) first; Linux and Windows support is designed
in from the start.

> **Status: early release.** On macOS (Apple Silicon), Linux (x86_64) and
> Windows (x64) the pipeline is complete end to end: live system-audio +
> microphone capture, live captions, and the speaker-labelled transcript at
> the stop. Meeting notes need
> [Ollama](https://ollama.com) on Linux and Windows; on Apple Silicon they run
> in-process with no setup.

## Why another transcription tool?

- **No audio on disk.** Live transcription of a meeting has far lighter
  legal requirements than recording it. stenograf keeps the session's audio in
  RAM only and writes no audio; keeping a recording is an opt-in
  (`--record-audio`, or `[output] record_audio` in the settings).
- **Accuracy first.** The live captions are decoded on the same windows, with
  the same model, that a full re-transcription would use — so they are not a
  rough draft: when the meeting ends their words are kept, and the stop adds
  speaker labels, recognised names and vocabulary corrections. (`--no-live`
  or `--full-finalize` decodes everything at the stop instead.) German is a
  first-class citizen, not an afterthought.
- **Channel-aware speakers.** Microphone and system audio are captured as
  separate streams, so local and remote voices never get confused, and
  diarization separates further speakers within a channel (up to 8).
- **Speakers, not headphones.** Remote voices leaving your laptop speakers and
  re-entering the mic are cancelled in the audio domain (WebRTC AEC3, with the
  system channel as the far-end reference), so they are never transcribed as a
  local speaker.

## Install

One command sets up everything — [uv](https://docs.astral.sh/uv/) (installed
for you if missing), stenograf itself, the permission prompts, the model
downloads, and a desktop launcher. **Pick the one for your system:**

**macOS and Linux** — in a terminal:

```sh
curl -fsSL https://raw.githubusercontent.com/daniel-om-weber/stenograf/main/install.sh | sh
```

**Windows** — in PowerShell (*not* in Git Bash, MSYS2 or Cygwin: that route is
untested and the installer above refuses to run there. WSL works, but records
only audio playing inside WSL):

```powershell
powershell -NoProfile -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/daniel-om-weber/stenograf/main/install.ps1 | iex"
```

That's the only command you have to type. Afterwards, open **Stenograf** from
Spotlight or the Dock (macOS), the application menu (Linux) or the Start menu
(Windows) — every workflow below is reachable there with the mouse. Re-running
the command upgrades stenograf.

Works on macOS 14.4+ on Apple Silicon (the wheel ships the signed capture
helper — no toolchain needed), Linux x86_64 with PipeWire or PulseAudio (the
wheel ships a capture helper that speaks the PulseAudio protocol — mic plus the
default output's monitor), and Windows 10/11 on x64 (capture is WASAPI, mic
plus loopback of whatever is playing). Off Apple Silicon, ASR runs ONNX on CPU;
on Windows any DX12 GPU can be opted into with `[asr] provider = "dml"`.

On Linux the desktop app (Qt) sets the install floor: glibc 2.34 on x86_64,
2.39 on arm64, and no musl (Alpine) builds — Qt ships no wheels for those.
Linux on arm64 installs, but no capture helper is built for it, so it can
transcribe files (`steno transcribe`) and cannot capture a live meeting.
Windows on ARM cannot install stenograf at all.

### Updates

Once a day stenograf asks PyPI for the list of its releases — the same public
page a browser gets. The only thing the request says about you is the
installed stenograf version (in its `User-Agent`); nothing about your machine
or your meetings. When there is a newer one:

- **In the app**, a line appears at the foot of the home screen. **Update**
  downloads the new version while you keep working, then restarts the app into
  it — one click, and never while a meeting, a transcription or a notes run is
  going. The new version is tried out before anything installed is touched,
  and if it does not start afterwards the previous one is put back and the app
  says so.
- **In a terminal**, a command ends with one line naming the new version and
  the command below — at most once a day, and only when a person is at the
  terminal (never in a pipe or a script).

To update by hand, re-run the install command above, or:

```sh
uv tool install --upgrade --python 3.13 stenograf   # not while a meeting is running
steno setup                                          # fetches the new release's models
```

To switch all of it off — no request, no line, no notice — put this in
`settings.toml` (`steno settings edit`):

```toml
[updates]
check = false
```

Only an install made the standard way updates itself. One you pinned to a
version, gave extras other than `[gui]` or `[ollama]` or a custom package
index, or installed with pip is yours: it is told about the release and never changed. A checkout is not even
told. Versions up to 0.7.0 have no update check at all — run the install
command once to move on from them.

### Manual install

With [uv](https://docs.astral.sh/uv/) already installed:

```sh
uv tool install --python 3.13 stenograf
steno doctor    # environment checks
steno setup     # one-time: permission prompts, desktop launcher, model downloads
```

macOS scopes the permission grant to the app the prompt came from, so run
`steno setup` once from each terminal app (or IDE) you'll start meetings from.

Pre-release channel: `uv tool install --python 3.13 git+https://github.com/daniel-om-weber/stenograf`
installs the current main branch. On macOS, building from the repository
compiles the capture helper on your machine, which needs the Xcode
command-line tools (`xcode-select --install`). On Linux and Windows a source
install carries no capture helper, so it cannot capture live meetings unless
you build the helper from a checkout (below).

### Windows

The PowerShell command above installs uv if missing, then stenograf, then the
launcher — it is the supported way in. To rebuild an existing install rather
than upgrade it in place, run `uv tool install --force --python 3.13 stenograf`.

Windows never prompts for the microphone, so capture stays silent until you
flip the toggle under Settings > Privacy & security > Microphone — `steno setup`
reads that toggle up front and says so rather than letting you find out from a
transcript of silence.

`steno setup` puts **Stenograf** in the Start menu and on the Desktop. Meeting
notes need [Ollama](https://ollama.com) installed and running; everything else
works without it (`steno doctor` reports it as an optional check).

### From a checkout

```sh
git clone https://github.com/daniel-om-weber/stenograf
cd stenograf
uv sync
sh native/stenocap-macos/build.sh   # macOS: builds + ad-hoc signs the capture helper
uv run steno doctor
uv run steno setup
```

On Linux build the helper with `sh native/stenocap/build.sh` (needs a Rust
toolchain and the libpulse development headers — `libpulse-dev` or
`pulseaudio-libs-devel`); on Windows with
`powershell -File native/stenocap/build.ps1` (needs Rust).

Every command below is then `uv run steno …` from the repo.

## The desktop app

Open **Stenograf** (Spotlight or the Dock on macOS, the application-menu
entry on Linux, the Start-menu entry on Windows) — or run bare `steno` in a
terminal — and a native window (Qt Quick) opens with one screen per workflow:

- **Start meeting** — capture this meeting with live captions; the
  speaker-labelled transcript replaces them the moment you stop.
- **Transcribe a recording** — turn an existing audio file into a transcript.
- **Generate notes** — summarize a finished meeting's transcript.
- **Settings** — show the active configuration.
- **Check setup** — verify models, permissions, and audio devices.

Everything the app does is also a plain CLI command — the rest of this
document — so terminal users and scripts lose nothing. (Bare `steno` opens
the window only from an interactive terminal with a display; in a pipe,
a script, or an SSH session it prints the command overview instead.)

On macOS the app is a real **Stenograf.app** in `~/Applications` — its own
icon, Dock tile and Spotlight entry. It asks for microphone access once,
under its own name rather than your terminal's, and keeps that permission
across every later upgrade.

On Windows `steno setup` writes a pair of real shortcuts — one in the
**Start menu**, one on the Desktop — with the app's icon and no console window
behind them. The Start-menu entry is the one worth pinning: Windows matches a
running window to it, so the app gets its own taskbar button and its
notifications arrive under the name *Stenograf* rather than *pythonw.exe*.

The app also lives in the **menu bar** (system tray on Windows and Linux),
which is where it belongs for most of a meeting: the icon turns red while
you are recording, and its menu can stop and finish a meeting and mute
either source without a window (*Start meeting…* opens the window on the
setup form). Closing the window puts the app there rather than quitting it — a
meeting in progress keeps running — and re-opening the app brings the window
back. Start that way with:

```sh
steno --gui --tray                         # menu bar only, no window
```

Desktops with no tray host (stock GNOME, unless the AppIndicator extension is
installed) simply get a window, as before. On Windows 11 the icon starts in the
notification-area **overflow** — click the `^` next to the clock and drag
Stenograf onto the taskbar to keep it in sight; Windows hides every new
notification icon that way, not just this one.

**Muting.** The meeting screen's header carries one chip per source — *You*
for your microphone, *Remote* for system audio — that shows whether it is live
and mutes or unmutes it with a click; the menu-bar menu has the same two
switches, and its icon turns grey while anything is muted. Muted audio becomes
silence before anything else reads it, so nothing said in that stretch reaches
the transcript, the notes or `audio.opus`; the transcript marks the gap instead,
as `*(microphone muted 10:32–10:41)*`. A source switched off in the start form
is still recorded, only muted from the first second, so the meeting can turn it
on later — which is also why both captures have to work even when one starts
off. Muting is an app feature; `steno start` has no equivalent.

**The finish card.** When a meeting stops and its transcript is written, one
card gathers what is left to decide:

- **Title** — pre-filled from the start form or the meeting type. Done renames
  the meeting folder to carry it after the date
  (`meeting-20261116-091500-weekly-sync`), so folders still sort by date.
- **Speakers** (with "Tell speakers apart" on) — one row per voice, with its
  longest line (click it to see it in the transcript), how long it spoke, and a
  button that plays a few seconds of it. Naming voices is described under
  [Naming speakers across meetings](#naming-speakers-across-meetings).
- **Notes** — whether to write them, which meeting type's notes setup to use
  (often only known once the meeting is over), and an optional line of context
  that the notes prompt receives.
- **Files** — open the folder, open or copy the transcript, or discard the
  meeting (moves its folder to the trash; asks once).

Notes start when you press **Done**. Leaving the screen, or the
`names_panel_timeout_s` countdown below, settles the card with the start form's
choices instead, so notes are never stranded behind a screen nobody returns to;
a meeting stopped from the menu bar with no window open writes its notes the
same way and leaves the card to answer later.

It runs the same library the CLI does — same meeting folders, same
settings.toml, same transcripts — so you can switch between the two freely, or
never use it at all.

## Usage

```sh
steno start                                 # live captions, everything auto-detected
steno start --lang de --local 3 --remote 2  # hybrid meeting, German
steno transcribe recording.mov              # batch-transcribe an existing file
```

`steno start` streams **live captions** while the meeting runs — committed
lines, one per utterance, equally readable on a terminal or piped into a log —
and replaces them with the speaker-labelled transcript the moment you stop
(Ctrl-C). The audio stays in RAM throughout; no audio is written unless you
ask for a recording. (The desktop app's meeting screen shows the same
captions with a live interim tail.)

Useful flags:

```sh
steno start --no-live               # skip live captions; just finalize on stop
steno start --title "Weekly sync"   # name the meeting (notes + export use it)
steno start --flush-interval 60     # crash-checkpoint the captions every 60s
steno start --no-aec                # disable echo cancellation (headphones)
steno start --no-diarization        # one speaker per channel (separating them is the default)
steno start --record-audio          # opt in to keeping the audio (off by default)
steno start --max-seconds 3600      # stop capture automatically after an hour
steno start --replay mic.wav        # dev: drive the live pass from a file
steno start --mic-device "Yeti Stereo Microphone"   # record this microphone
```

### Choosing the microphone

By default the microphone channel follows whatever the system calls its default
input, and it moves with it. To record one specific device instead:

```sh
steno devices                       # the microphones here, with their ids
steno start --mic-device usb-0x0d8c # for this meeting (an id or the exact name)
steno start --mic-device default    # the system default, ignoring the setting
```

The desktop app's setup form has the same picker, under the Microphone switch.
To make a choice standing, put it in `settings.toml` (`[capture] mic_device`).
A chosen device that is **not** connected stops the run with a message naming
it — the tool never quietly records a different microphone, because that is
only discovered when the transcript is read. The system-audio channel is not
selectable: it follows the default output, which is what keeps it with the
meeting when you plug in a headset.

Both `start` and `transcribe` accept `--format md,json,txt,srt,vtt` (default
`md,json,txt` — `txt` is the plain prose without speaker labels or timestamps),
`--lang de|en`, `--diarization/--no-diarization` to run or skip speaker
separation for one run (on by default; skipped, each channel is one speaker
and the diarizer model is never loaded, which saves memory and a few seconds
at the stop — `[speakers] diarization = false` in the settings makes skipping
it the default), and `--print` to echo the transcript to stdout.

If you know how many people spoke in a recording, tell `steno transcribe` with
`--speakers N` — a count above 1 turns diarization on and caps the speakers it
finds, which drops stray voices such as crosstalk from a neighbour's headset
(omitted, the diarizer counts the speakers itself).

`steno transcribe` recognizes 2-channel recordings whose channels are separate
voice feeds — a `--record-audio` tee (mic left, system right) or a
dual-channel call recording — and transcribes them per channel through the
meeting pipeline (`Local-N`/`Remote-N` labels, per-channel diarization with
`--local`/`--remote` counts) instead of downmixing; ordinary stereo still
downmixes to mono. Force either way with `--channels split|mix`.

## Where your files land

Every run writes its own date-named folder into `Meetings` inside your
documents folder — `~/Documents/Meetings`, or your desktop's localised name for
it on Linux (`~/Dokumente/Meetings` on a German one):

```
~/Documents/Meetings/meeting-20260710-091500/
    transcript.md / .json / .txt        # the transcript (--format adds srt/vtt)
    transcript.notes.md                 # if you generated notes
    voiceprints.json                    # each speaker's voiceprint (speaker separation on)
    audio.opus                          # only if you keep the recording
```

That's it — there is no separate library or index to manage. Browse with
Finder or `ls`, read with anything that opens markdown, delete with `rm`.
`steno settings show` prints the folder it resolved. Change the standing
location with `[output] dir` in settings.toml, or give one
run its own folder with `--out DIR` (files land directly in it; if DIR already
holds a transcript, stenograf refuses to replace it unless you add `--force`).
Audio is stored only when you ask for it — `--record-audio` for one run,
`[output] record_audio = true` as the standing choice (then `--no-record-audio`
skips it once), or the app's "Keep the audio recording" switch. It is Ogg Opus
(measured ~34 MB per hour for a stereo mic+system meeting, ~6–14 MB mono); pass
`--record-audio PATH.wav` for raw PCM instead. Without it a meeting folder
holds no audio. If the folder is inside one that a sync client watches
(iCloud Drive, Google Drive, OneDrive, Dropbox), that client uploads
`audio.opus` again and again while it grows. Leave the meeting folder out of
the client, or set `[output] dir` to a folder it does not watch. Should a
client take the file away mid-meeting, stenograf writes it back when the
meeting stops and says so.

`voiceprints.json` holds one voice embedding per speaker — numbers derived from
the voice, not audio. It is what lets you name a voice after the meeting
(`steno profiles assign`, the finish card) and have it recognised in later
meetings. It is written whenever speaker separation ran; turn speaker
separation off (`--no-diarization`, the app's "Tell speakers apart" switch,
or `[speakers] diarization = false`) and no voiceprints are kept.

## Meeting notes (LLM summaries)

Turn any transcript into structured notes — summary, decisions, action items,
open questions — with the LLM of your choice:

```sh
steno notes --last                    # notes for the newest meeting
steno notes ~/Documents/Meetings/meeting-20260710-091500
steno notes path/to/transcript.json   # …or any transcript file
steno start --notes                   # generate notes right after the meeting
```

One meeting can use a different notes setup without touching settings.toml:
`--notes-backend`, `--notes-model` and `--instructions FILE` on `steno start`
(and `steno transcribe`) steer that run's notes step only, and `steno notes`
takes the same per-run choices as `--backend`, `--model` and `--instructions`.

### Meeting presets

A recurring *kind* of meeting gets a preset — one named section in
settings.toml bundling its title, language, extra vocabulary, notes setup,
style instructions and protocol template:

```toml
[meetings.controlling]
title    = "Controlling-Runde"
language = "de"
template = "~/steno/controlling.md"     # protocol layout: your markdown headings

[meetings.controlling.notes]            # sparse: unset keys use [notes] above
backend = "command"
command = ["claude", "-p"]

[meetings.controlling.vocab]            # merges with the standing [vocab]
attendees = ["Anja Müller"]
```

```sh
steno start --preset controlling        # transcribe and notes take it too
steno presets                           # list what's defined
```

Typed flags still beat the preset's values. On a path key, `""` switches the
standing value off for that preset — `[meetings.x.notes.export] dir = ""`
keeps a confidential meeting out of the vault. A `command` notes backend runs
in the meeting's folder with `STENOGRAF_MEETING_DIR`/`STENOGRAF_OUTPUT_HOME`
set, so an agentic CLI can fetch whatever context the preset's instructions
point it at (an issue board, earlier protocols); `steno doctor` checks every
preset's backend, not just the standing one.

Notes land as a sibling `transcript.notes.md` file. On Apple
Silicon the default backend is `mlx` — a fully local in-process model, nothing
to set up. To use a different backend, configure it once in
`~/Library/Application Support/stenograf/settings.toml`:

```toml
[notes]
backend = "ollama"          # fully local via `ollama serve`
model = "qwen3:8b"
```

or drive any CLI you already have (prompt on stdin, markdown on stdout):

```toml
[notes]
backend = "command"
command = ["claude", "-p"]

[notes.export]
dir = "~/Documents/Obsidian/Meetings"   # optional: also write one combined
                                        # "YYYY-MM-DD – Title.md" note here
```

With `[notes.export]` set, every summarized meeting also produces a single
self-contained markdown note (frontmatter, summary, action items, collapsible
transcript) — drop the dir inside an Obsidian vault and meetings file
themselves. Three more levers in `[notes]`: `instructions = "~/style.md"`
appends your house style to the built-in prompt, `thinking = false` skips the
mlx model's reasoning pass (faster, less careful), and `auto = true` makes
notes the default for every meeting — `steno start` summarizes without
`--notes`, and the app's "Generate notes afterwards" switch starts
on. Out of the box notes never run unless you ask (`--notes`, the app's
switch, or `steno notes` afterwards); with `auto = true`, `--no-notes` still
skips them for one run. A notes failure never touches the transcript.

## Naming speakers across meetings

Name a voice once and every later meeting relabels that speaker automatically
(cross-meeting re-identification). In the app, a meeting with "Tell speakers
apart" on lists its voices on the [finish card](#the-desktop-app), each with a
button that plays a few seconds of it — cut at the stop, held in memory only,
and dropped when you leave the screen. An unknown voice shows a "Who is this?"
field; a recognised one shows its name as a button, and clicking it opens the
field to correct a wrong match. As you type, the field suggests the saved
voices and the meeting's attendees that match (a typo still finds the name).
The name you enter joins the voice library and
replaces the label in the transcript. A name that already belongs to a
different-sounding voice is refused with the reason, and **Add anyway** files
it regardless. Two `[speakers]` settings shorten the card:
`names_panel_timeout_s = 60` settles it after a minute untouched (typing keeps
it open), and `names_panel_skip_if_recognised = true` skips it when every voice
was recognised. From a terminal, the same correction for any finished meeting:

```sh
steno profiles assign Remote-1 Anna --last       # or a meeting folder path
```

Like the card, `assign` refuses a voice that does not sound like the one
already saved under that name; `--force` adds it anyway.

Or enroll from a voice sample:

```sh
steno profiles enroll Daniel daniel-sample.wav   # a short clip of one speaker
steno profiles enroll Daniel more.wav --reinforce  # fold in another sample
steno profiles list                              # show enrolled voiceprints
steno profiles rename Daniel "Daniel W."
steno profiles remove Daniel
```

To name one person from a multi-speaker recording (e.g. a meeting saved with
`--record-audio`), diarize it and pick their cluster:

```sh
steno profiles enroll Anna meeting.wav --speakers 4          # lists the clusters
steno profiles enroll Anna meeting.wav --speakers 4 --speaker S2
```

Matching is on by default in `steno start`/`transcribe` and does nothing until
you enroll someone; disable it with `--no-reid`, or adjust the match strictness
with `--reid-threshold` (0–1, default 0.62). The named voices live in the
platform data dir (not the model cache); each meeting's own voiceprints sit in
its folder as `voiceprints.json`. stenograf uploads none of them. A voiceprint belongs to the
model that made it: 0.8.0 changed the voice model and deletes the names saved
before it, so each voice is named once more.

## Vocabulary

Domain terms and attendee names steer the transcript twice: they boost the
decoder toward those spellings *while* it transcribes, and then correct the
near-misses it still got wrong in the finalized text.

```sh
steno transcribe rec.mov --attendee "Anja Müller" --glossary Kubernetes,gRPC
steno transcribe rec.mov --glossary-file terms.txt
```

Write a term the way it appears in a sentence. A capitalized term (`Kubernetes`,
`iOS`) is imposed verbatim; an all-lowercase one asserts the spelling but leaves
the model's capitalization alone. In the correction pass a term and its
transcription must share a word count — `gRPC` fixes `GRPC` or `G-R-P-C`, but
not `G R P C` transcribed as four separate words.

**An acronym you pronounce as a word needs both spellings.** Biasing rewards the
exact token path you write, so `NIRS` only ever rewards `N-I-R-S` — a spelling
the acoustics never take when you say "nirs". List `NIRS` *and* `Nirs`: the
decoder can reach the second, and the correction pass snaps it back to the first,
since the two normalize to the same word. Only case variants of the same letters
work — a respelling (`Ekmo` for `ECMO`) is reachable but never snaps back.

Both layers are on whenever there are terms. `[asr] boost` scales the decoder
biasing (default 1.0; `0` turns it off, and much above ~3 it starts rewriting
words that were never in your list), and `[vocab] glossary_threshold` is the
similarity a word must reach before the correction pass touches it (default
0.95 — deliberately strict, because a loose threshold corrupts words the model
already had right).

Reach for the spellings before the knobs. On an 85-minute German meeting, adding
the pronounceable twins fixed three more terms for four extra changed words in
the rest of the transcript, where raising `boost` to 1.5 bought two and disturbed
forty-six — at 2.0 the correct compound "Medizintechnikgruppe" decayed into
"Medizinischechnikgruppe", pulled apart by a listed term it half-matched.

## Settings

Standing preferences live in `settings.toml` in the platform data dir
(`~/Library/Application Support/stenograf/` on macOS) so you stop re-typing
them. A flag always beats an environment variable (`STENOGRAF_ASR_BACKEND`,
`STENOGRAF_NOTES_BACKEND`, …), which beats the file, which beats the built-in
default — `steno settings show` labels where every value came from.

```sh
steno settings show   # effective configuration + where each value comes from
steno settings edit   # open in $EDITOR (template on first run), validate on save
```

The first `steno settings edit` writes a fully commented template documenting
every key. All keys are optional; the ones you're most likely to want:

```toml
[transcript]
formats = ["md", "json", "txt"]   # default --format list (srt/vtt for subtitles)

[vocab]                           # standing vocabulary — MERGED with per-run
glossary_file = "~/steno/glossary.txt"     # --glossary/--attendee flags
attendees = ["Anja Müller"]
glossary_threshold = 0.95

[capture]
mic_device = "Yeti Stereo Microphone"   # record this microphone instead of the
                                  # system default (`steno devices` prints the
                                  # ids). Machine-specific: do not copy this key
                                  # to a machine without that device

[output]
dir = "~/Documents/Meetings"      # where meeting folders are created (default:
                                  # Meetings/ in your documents folder)

[speakers]
diarization = true                # separate speakers within a channel (the
                                  # default; false = one speaker per channel)
reid_threshold = 0.62             # cross-meeting voice match strictness (0–1)
profile_store = "~/steno/profiles.json"

[asr]
backend = "parakeet"              # Apple Silicon; elsewhere "parakeet-onnx"
provider = "cpu"                  # ONNX execution provider for parakeet-onnx:
                                  # cpu | dml (DX12 GPUs, Windows) | cuda | auto

[notes]                           # see "Meeting notes" above
backend = "mlx"                   # Apple Silicon; elsewhere "ollama"

[updates]
check = false                     # no daily look for a new release (see "Updates")
```

Typos fail loudly: an unknown table or key is an error, and `steno doctor`
validates the whole file.

## Development

Requires [uv](https://docs.astral.sh/uv/) and Python 3.12 or 3.13 (3.14 is not
yet supported by the ASR stack).

```sh
uv sync
uv run pytest
uv run steno doctor
```

The test suite is label-free and runs without a meeting: model-gated and
real-audio tests self-skip when their assets are absent. The desktop app's
tests run headless (`QT_QPA_PLATFORM=offscreen`, no window is ever shown).

Two front-ends share one library: the CLI (`stenograf/cli/`) and the desktop
app (`stenograf/gui/`). Neither holds pipeline logic — the workflows they
drive live in `stenograf/flow.py`, so a behaviour change lands in both at
once.

See [DECISIONS.md](DECISIONS.md) for ideas decided against and features
never verified on real hardware;
`native/README.md` for the capture helper and its wire protocol; `eval/README.md`
for the model-evaluation and AEC-scoring harnesses.

## License

[MIT](LICENSE). The models are not part of the package: `steno setup`
downloads them on first run, each under its own licence. The speech
recognizer is [Parakeet Ultra](https://huggingface.co/moondream/parakeet-ultra)
by Moondream, a post-trained version of NVIDIA's
[Parakeet TDT 0.6B v3](https://huggingface.co/nvidia/parakeet-tdt-0.6b-v3),
both under CC BY 4.0; stenograf loads VoiceVibe's conversions of it
([MLX](https://huggingface.co/VoiceVibe/parakeet-ultra-nounk-mlx),
[ONNX](https://huggingface.co/VoiceVibe/parakeet-ultra-nounk-onnx)), which
change one number so the model never writes its unknown-character token. The diarizer,
[NVIDIA Nemotron 3 Diarization](https://huggingface.co/onnx-community/Nemotron-3-Diarization-ONNX),
is under OpenMDW-1.1. The voice model that names speakers is
[ReDimNet2-B6](https://github.com/PalabraAI/redimnet2) by PalabraAI, converted
to ONNX unchanged; its weights are under CC BY-NC-SA 4.0, as its maintainers
state.
