Meeting transcription pipeline (diarization, AI summaries, PDF output) under the vezir ecosystem. Builds on millet-record for capture. Named after the Ottoman millet system. Successor to meetscribe-offline.
pip install millet-pipeline==0.21.8 Copy PIP instructions
Millet is a meeting transcription, summarization, and PDF output tool. It's named after the Ottoman millet system — the legal framework of communal autonomy that, in 1493, made it possible for two Sephardic Jewish brothers to establish Istanbul's first printing press, just one year after their expulsion from Spain. Like the millets it's named after, this tool operates under its own rules, on your own machine, within the broader vezir ecosystem.
Formerly known as meetscribe. PyPI distribution name: millet-pipeline (the bare millet slot on PyPI is held by an unrelated dormant 2021 package). See CHANGELOG.md for the rename details and full release history.
Meeting transcription with speaker diarization, AI-generated summaries, and professional PDF output.
Records dual-channel audio (your mic + system audio) from any meeting app and produces diarized transcripts using WhisperX + pyannote-audio. Works fully offline with local models, or summarizes inside a hardware-attested Tinfoil TEE where the prompts never leave the secure enclave. Every supported summary backend is private — as of 0.19.0 the cloud backends that could read your meetings (Claude Max, OpenRouter, generic OpenAI endpoints) are gone, because a TEE model measurably out-summarized Sonnet 4.6 on grounded precision and recall across EN/DE/TR (see the evaluation). There is no longer a privacy/quality tradeoff to configure.
Alpha (0.21.6). Full history in CHANGELOG.md.
Two write-ups, deliberately labelled by how much they actually support:
The first is worth quoting; the second is worth reading before believing. Note what the evaluation found about method: all four models scored 10/10 on format and language compliance, so structural metrics were a four-way tie and every real difference was in content.
Because millet captures system audio at the OS level, it works with every voice/video call application:
Any app that plays audio through your system speakers will work -- including browser-based meetings and standalone desktop clients.
# Install from PyPI pip install millet-pipeline # Set your HuggingFace token (required for speaker diarization) export HF_TOKEN=hf_your_token_here # Record a meeting, then auto-transcribe + summarize when you stop millet run # Press Ctrl+C when the meeting ends Requirements millet runs in two configurations:
Linux desktop (full pipeline: record + transcribe + label + sync)
macOS Apple Silicon (post-capture pipeline: transcribe + label + sync)
See REQUIREMENTS.md for full hardware/software details.
# Ubuntu / Pop!_OS / Debian sudo apt install ffmpeg pulseaudio-utils # Fedora sudo dnf install ffmpeg pulseaudio-utils 2. Install millet # From PyPI (recommended) pip install millet-pipeline # From source git clone https://github.com/pretyflaco/millet cd millet pip install -e . This creates the millet command in your PATH (the older meet command is kept as a deprecated alias).
The tinfoil SDK behind the default TEE backend is a base dependency since 0.20.1 — no extra to remember. Set TINFOIL_API_KEY to summarize in the enclave, or run fully locally with --summary-backend ollama and no key at all. (millet-pipeline[tee] still resolves, as an empty no-op extra, so older install commands don't break.)
export HF_TOKEN=hf_your_token_here # Add to ~/.bashrc for persistence: echo 'export HF_TOKEN=hf_your_token_here' >> ~/.bashrc 4. Ollama (optional, for AI summaries) Install from https://ollama.com, then pull the default summary model:
ollama pull qwen3.5:9b 5. Verify setup millet check Usage Check audio devices millet devices Record a meeting Start recording before or during your meeting:
millet record Press Ctrl+C when the meeting ends. A 10-second drain buffer ensures all audio is captured. Recordings are saved to ~/meet-recordings/.
millet transcribe ~/meet-recordings/meeting-20260312-140000/meeting-20260312-140000.wav Options:
Stereo recordings carry your mic on the left channel and system audio on the right. transcribe defaults to --mixdown dual-diarize, which transcribes each channel independently for best accuracy and then diarizes the remote (system) channel to separate multiple remote participants. It labels the local speaker as YOU (mic) and diarized remotes as REMOTE_1, REMOTE_2, … The three modes:
millet transcribe --mixdown dual-diarize ~/meet-recordings/meeting-20260312-140000/ Note: millet run still defaults to --mixdown mono and accepts mono or dual; pass --mixdown dual there for headphone recordings.
millet run Records until Ctrl+C, then automatically transcribes, generates a summary, and produces a PDF. Takes options from both record and transcribe. Note run's --mixdown defaults to mono and accepts only mono or dual (unlike transcribe, which defaults to dual-diarize); use millet transcribe on the saved recording if you need dual-diarize.
millet gui A small always-on-top window with:
When 2 or more speakers are detected, a speaker labeling dialog appears before the results are saved. Each speaker is shown with their channel and a sample line of text. If voice profiles exist, confident matches are shown automatically. Enter a real name or leave blank to keep the auto-assigned label (YOU, REMOTE_1, etc.).
If meeting sync is configured and the recording matches a scheduled meeting, a sync confirmation prompt appears with Push / Skip buttons.
millet label ~/meet-recordings/meeting-20260313-214133 For each speaker in the recording, millet label:
With --auto, voice profiles are used to automatically identify known speakers. Confident matches are applied without prompting; only unrecognized speakers get the interactive prompt:
millet label --auto ~/meet-recordings/meeting-20260313-214133 Options:
When run without a TTY (e.g. from a worker), --auto applies confident matches and skips the interactive prompt automatically, writing an .autoid.json sidecar with per-speaker match confidence.
Each recording gets its own session directory:
~/meet-recordings/meeting-20260312-140000/ meeting-20260312-140000.wav # Stereo audio (16kHz) meeting-20260312-140000.session.json # Recording metadata meeting-20260312-140000.ffmpeg.log # ffmpeg capture log meeting-20260312-140000.txt # Plain text transcript meeting-20260312-140000.srt # Subtitle format meeting-20260312-140000.json # Full detail (word-level timestamps) meeting-20260312-140000.summary.md # AI meeting summary with YAML frontmatter meeting-20260312-140000.summary.meta.json # Summary backend/model + timing metadata meeting-20260312-140000.frontmatter.json # Structured frontmatter (schema_version 1) meeting-20260312-140000.pdf # Professional PDF (summary + transcript) Example .txt output:
[00:00:12 --> 00:00:18] YOU: So the main issue we're seeing is with the API rate limiting. [00:00:19 --> 00:00:25] REMOTE_1: Right, I think we should implement exponential backoff. [00:00:26 --> 00:00:31] YOU: Agreed. Can you also look at caching the responses? Structured frontmatter Every .summary.md ships with a typed YAML frontmatter block plus a matching .frontmatter.json sidecar. The schema is intentionally small in v1 so downstream consumers can rely on it:
--- schema_version: 1 type: meeting title: Q2 Pricing Discussion date: "2026-03-17T14:00:00+00:00" duration: PT42M17S language: en participants: - name: YOU role: null channel: mic - name: Alice role: null channel: system topics: - pricing - onboarding action_items: - assignee: Alice task: Send pricing doc due: Friday status: open decisions: - text: Run pricing experiment at $99/mo topic: pricing source: session_id: meeting-20260312-140000 audio_sha256: null --- ## Meeting Overview ... ## Key Topics Discussed ... schema_version: 1 is what every consumer should pin against. The JSON sidecar contains the exact same dict for tools that don't want to parse YAML. [vezir](https://github.com/pretyflaco/vezir) 0.2.0+ reads these files directly to build a queryable index over your meetings.
Sessions recorded before meetscribe 0.7.0 / millet-pipeline 0.9.0 don't carry frontmatter. Re-extract it for one or more sessions with:
# Re-run the LLM to produce frontmatter; idempotent (skips sessions # whose .summary.meta.json already records data_extracted=true). millet ingest ~/meet-recordings/meeting-2026* # Force re-extraction even when frontmatter is already present: millet ingest --force ~/meet-recordings/meeting-20260312-140000 # Preview without invoking the LLM: millet ingest --dry-run ~/meet-recordings/meeting-2026* millet ingest accepts the same --summary-backend / --summary-model / --ollama-singlepass flags as millet transcribe and regenerates the PDF by default (--no-pdf to skip).
millet generates a structured meeting summary with:
millet run --summary-model gemma3:12b Disable summaries:
millet run --no-summarize Summary backends millet supports two backends, both private, with automatic fallback:
claudemax, openrouter and the generic openai backend were removed in 0.19.0. They were the only way meeting content reached a party that could read it, and they no longer bought any quality: in a blind, judged evaluation the TEE model beat Sonnet 4.6 on both precision and recall in every language tested. A stale MILLET_SUMMARY_BACKEND naming one of them degrades to the default with a warning rather than failing your jobs.
The tinfoil backend runs inference inside a hardware-attested TEE (AMD SEV-SNP or Intel TDX, depending on the model). The model provider can't see the prompts, the cloud operator can't see the prompts, and the integrity is checked against an attestation report on every request. ~$0.03 per meeting; median latency ~90 s (max ~115 s in the evaluation) on DeepSeek V4.1 Flash. Cost scales with the model's reasoning tokens, not just transcript length — the non-Flash GLM-5.3 (now only the sibling fallback) spends ~9× more for no measurable gain in summary coverage (see CHANGELOG v0.18.1).
# Default: TEE. Nothing to configure beyond the API key. export TINFOIL_API_KEY=tk_... # Fully local instead (no API key, no network) export MILLET_SUMMARY_BACKEND=ollama export MILLET_SUMMARY_MODEL=qwen3.8:27b Environment variables use the MILLET_ prefix. The older MEETSCRIBE_ (and MEET_) spellings still work for one more release but emit a DeprecationWarning.
If the configured backend is unavailable, millet automatically tries the next one in the fallback chain: tinfoil → ollama. Both destinations are private, so unlike the pre-0.19.0 chain this cannot silently downgrade confidentiality — only quality.
Two further TEE providers, venice and near, are registered but opt-in only (MILLET_SUMMARY_FALLBACK_ORDER=tinfoil,venice,near,ollama or --summary-backend venice). millet verifies their NVIDIA NRAS GPU evidence and a freshness nonce before sending a prompt, but — unlike the Tinfoil SDK — nothing binds that attestation to the HTTPS peer that receives the transcript, and the NRAS signature itself is not verified. They were in the default chain from 0.21.0 to 0.21.7; since 0.21.8 you have to choose them, and their provenance is recorded as (TEE, transport unbound) so no downstream badge mistakes them for a Tinfoil-grade attestation.
Presets used to select between backends with different privacy and quality. With only private backends left there is nothing to trade off, so the three historical names are now aliases for the default and will be removed in 0.21.0. They keep working meanwhile so existing scripts and stored jobs don't break.
# Quick check of which preset is in effect millet transcribe ~/meet-recordings/today/today.wav --summary-preset confidential # Or set per-session via env export MILLET_SUMMARY_PRESET=high-quality millet run When a preset is set, --summary-backend and --summary-model overrides are honored within that preset (e.g. --summary-preset confidential --summary-model gpt-oss-120b swaps the model but keeps the TEE backend).
When the ollama backend is selected, millet runs two LLM calls instead of one:
This dramatically improves format compliance and reduces hallucinations on 20B-class local models (gpt-oss:20b, qwen3.6:27b) compared to a single-pass call, at the cost of one additional LLM call (~30–90s extra). The Tinfoil backend remains single-pass — it already produce well-structured output in one shot.
To opt out and use the previous single-pass behavior:
millet run --ollama-singlepass # Or via environment: export MILLET_OLLAMA_SINGLEPASS=1 The .summary.meta.json sidecar records per-pass timings (pass1_seconds, pass2_seconds, pass1_chars) when two-pass was used.
See docs/local-model-evaluation.md for the full evaluation that motivated this design, including known failure modes of local 20B-class models.
The summarization prompts live in millet/prompts/ (e.g. summarize_system.md, plus the summarize_extract_* / summarize_format_* pairs used by the two-pass Ollama flow). Edit them to change the summary format, add domain-specific instructions, or tune for your preferred model. No Python changes needed.
millet can automatically identify speakers across meetings using voice embeddings. After you label speakers in one meeting, their voice profiles are stored and matched against future recordings.
# Build profiles from already-labeled sessions millet enroll ~/meet-recordings/meeting-20260330-* # Auto-label speakers in future meetings using voice profiles millet label --auto ~/meet-recordings/meeting-20260401-093000 Profiles are stored in ~/.config/meet/speaker_profiles.json and improve with each labeled session (running average of embeddings).
Use millet enroll --list to list enrolled speakers. Team-scoped profiles are supported via --team on enroll and label, stored under ~/.config/meet/ /speaker_profiles.json, so each team keeps its own voiceprint database.
Push meeting artifacts to a Git repository on a configurable schedule.
# Create an example config millet sync --init-config # Edit ~/.config/meet/sync_config.json with your repo URL and schedule # Push a session manually millet sync ~/meet-recordings/meeting-20260331-110038_STANDUP # View configured schedule millet sync --list-schedule When the GUI detects a matching scheduled meeting, it prompts for confirmation before syncing. Sessions that don't match the schedule are skipped. The CLI uses --force to sync unmatched sessions.
You can also configure a team_members list and min_team_members threshold in sync_config.json to require that a minimum number of recognized speakers are present before offering to sync.
millet sync supports --team (per-team config + clone) and --meeting-type for routing. Push failures exit non-zero so scheduled sync jobs can detect and retry them.
millet auto-detects the spoken language by default (Whisper large-v3-turbo supports 99 languages). You can also set it explicitly:
millet run --language de # German millet run --language tr # Turkish millet run --language fr # French millet run --language es # Spanish millet run --language fa # Farsi (Persian) millet run --language auto # Auto-detect (default) How it works Transcription: The same Whisper model handles all languages -- no extra download or VRAM cost. When set to auto, the detected language is used for alignment and all downstream steps. Speaker diarization: Completely language-agnostic (based on voice characteristics, not speech content). AI summary: When a non-English language is detected, the summary prompt instructs the LLM to write the summary in the same language as the transcript. PDF output: Uses DejaVu Sans for full Unicode coverage (Latin, Cyrillic, Greek, Turkish special characters, etc.). Farsi uses Noto Naskh Arabic with RTL text reshaping. Tested languages Language Code Alignment model PDF font Notes English en wav2vec2 (torchaudio) DejaVu Sans German de VoxPopuli (torchaudio) DejaVu Sans French fr VoxPopuli (torchaudio) DejaVu Sans Spanish es VoxPopuli (torchaudio) DejaVu Sans Turkish tr wav2vec2 (HuggingFace) DejaVu Sans ~1.2 GB alignment model download Farsi fa wav2vec2 (HuggingFace) Noto Naskh Arabic ~1.2 GB alignment model download, RTL Downloading alignment models Alignment models download automatically on first use, but you can pre-fetch them (e.g. before an offline session) with millet download:
millet download # show cache status for all supported languages millet download de tr fa # download German, Turkish, Farsi alignment models millet download --all # download every supported alignment model millet download parakeet # download the Parakeet ASR model (English) It exits non-zero if any requested download fails, so it's safe to script.
millet translate renders an existing session transcript into another language via Ollama, preserving timestamps and speaker labels. The result is saved as .translation. .txt in the session directory.
millet translate ~/meet-recordings/meeting-20260313-231509 # to English millet translate ~/meet-recordings/meeting-20260313-231509 --to de # to German Farsi RTL requirements Farsi uses right-to-left text. For proper PDF rendering, install the optional RTL dependencies:
pip install arabic-reshaper python-bidi # Or with the optional extra: pip install "millet-pipeline[rtl]" Without these libraries, Farsi text will appear in the PDF but glyphs may not be joined correctly and reading order may be wrong.
By default, millet record captures all system audio (including notification sounds, music, etc.). For cleaner recordings, use --virtual-sink:
millet record --virtual-sink This creates an isolated audio sink. Route your meeting app's audio to it:
You'll still hear the meeting through your normal speakers via automatic loopback.
Environment variables use the MILLET_ prefix (legacy MEETSCRIBE_ / MEET_ spellings are honored for one more release with a DeprecationWarning):
Set HF_HUB_OFFLINE=1 and TRANSFORMERS_OFFLINE=1 to run without any network access. millet honors these and, on a cache miss, prints actionable guidance naming the exact model to pre-fetch (via millet download) rather than failing with an opaque network error.
[Meeting App] --> [PipeWire/PulseAudio] --> [ffmpeg dual-channel capture] --> meeting.wav | [WhisperX: faster-whisper + wav2vec2 alignment + pyannote diarization] | [ LLM summary ] [Diarized transcript] | | .summary.md .txt / .srt / .json | | +--------> .pdf <---------+ Capture: Records your mic (left channel) and system audio (right channel) simultaneously into a single stereo WAV file at 16 kHz.
Transcribe: Runs the WhisperX pipeline -- batched Whisper transcription, wav2vec2 forced alignment for word-level timestamps, and pyannote speaker diarization. Dual-channel energy analysis maps speakers to YOU or REMOTE.
Summarize: Sends the transcript to the summary backend (TEE by default, or a local Ollama model) which extracts a structured summary.
The pyannote diarization model requires CUDA NVRTC for JIT compilation. If your CUDA driver version doesn't match the installed libnvrtc-builtins version, millet automatically creates a compatibility symlink. This happens transparently on first use.
export LD_LIBRARY_PATH=$HOME/.local/lib/cuda:$LD_LIBRARY_PATH Limitations Overlapping speech is not handled well (Whisper limitation) Speaker labels default to role-based (YOU, REMOTE_1, REMOTE_2) — use millet label or the GUI dialog to assign real names Diarization accuracy varies with audio quality and number of speakers Audio capture (millet record, millet run) requires Linux with PulseAudio or PipeWire. Transcription, labeling, summarization, and sync work on both Linux (CUDA) and macOS Apple Silicon (MLX Whisper + MPS) as of v0.6.0. Windows is not supported. Local 20B-class summary models (e.g. gpt-oss:20b) can hallucinate on transcripts dominated by very short low-information utterances ("yes", "okay") and may exceed the default 600s timeout on very large (>100 KB) non-English transcripts. For these cases configure a cloud backend (tinfoil) — the fallback chain takes over automatically. See docs/local-model-evaluation.md. FAQ Is there a GUI? Yes — run millet gui for a small always-on-top GTK3 widget with Record/Stop, live timer, status indicator, and one-click access to the resulting PDF and session folder. See Launch the GUI widget for details.
Does it work on Windows / macOS? System-audio recording requires Linux (PulseAudio / PipeWire). The post-capture pipeline (millet transcribe, millet label, millet sync, etc.) works on macOS Apple Silicon as of v0.6.0 — install with pip install 'millet-pipeline[mlx]'. Windows is not supported.
Can I run a Mac as a transcription server? Yes — see vezir, the team-scale wrapper around millet. A Mac can act as the GPU server with Linux laptops or the Android client providing the audio.
Can I use it without a GPU? Yes, with --device cpu, but transcription will be 5–20× slower depending on the Whisper model. See VRAM usage.
git clone https://github.com/pretyflaco/millet cd millet pip install -e .[dev] /usr/bin/python3 -m pytest tests/ Pull requests welcome. Please run the test suite before submitting.
All 2 files in this release have provenance metadata.
GNU General Public License v3 or later (GPLv3+) (GPL-3.0-or-later)
meeting transcription whisper whisperx diarization speaker-diarization pyannote ollama local-ai audio recording
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




