- Rust 63.9%
- Svelte 14.8%
- TypeScript 5.8%
- CSS 4.5%
- Shell 3.4%
- Other 7.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
- worklet: compute RMS/peak per 2048-sample chunk, emit level message alongside the PCM buffer (verified headless: exact rms/peak, message order PCM -> level) - recorder: onLevel event; worklet messages dispatched by shape, level stays local (never sent over the WS) - VoiceWave component: scrolling bar strip (80 bars ~ 10 s history), newest appended right, oldest clipped left, messenger voice-memo look - Live: recording row now red dot (scales with live peak), elapsed timer, voice wave strip; silence watchdog shows a warning if no signal above threshold within the first 5 s (muted/wrong device) |
||
| backend | ||
| data | ||
| deploy | ||
| diarize | ||
| frontend | ||
| .gitignore | ||
| docker-compose.yml | ||
| flake.lock | ||
| flake.nix | ||
| justfile | ||
| README.md | ||
meetmon
Fully local meeting transcription with speaker diarization, live microphone capture or file upload, LLM-generated meeting minutes, and export to Markdown / SRT / TXT / JSON.
┌──────────── Laptop ─────────────────┐ ┌──── Inference server (AMD APU) ────┐
│ Browser: Svelte SPA (localhost) │ │ whisper-server :9000 (Vulkan) │
│ mic → AudioWorklet → 16 kHz PCM │ HTTP │ llama-server :9001 (Vulkan) │
│ │ WS / REST │ ───────▶│ diarize-server :9002 (CPU) │
│ Rust API (axum + SQLite) │ │ sherpa-onnx diarization │
└─────────────────────────────────────┘ └────────────────────────────────────┘
- ASR: whisper.cpp
whisper-serverwith Silero VAD, modellarge-v3-turbo(German-first, multilingual). - Diarization: sherpa-onnx offline
speaker diarization (pyannote segmentation ONNX + 3D-Speaker embeddings +
clustering) — no PyTorch, no Hugging Face account. Served by a small Rust
daemon (
diarize/), Python sidecar fallback included. - Summaries: llama.cpp
llama-serverwithQwen3-4B-Instruct-2507(Q4_K_M), JSON-schema-constrained map-reduce summarization → summary, topics, decisions, action items. - Live mode: rolling ASR windows (6 s window / 1 s step) stream the transcript while you talk; every 10 s the last 90 s are re-diarized so speaker labels appear in near-real-time. On Stop, the full recording is re-diarized and the tail is transcribed for the final result.
- Retention: audio files are auto-deleted 7 days after creation
(
RETENTION_DAYS); transcripts and summaries persist.
Repository layout
backend/ Rust API server (axum, SQLite, sessions, live WS, pipeline)
diarize/ Rust diarization server (sherpa-onnx)
frontend/ Svelte 5 + Vite SPA
deploy/ Dockerfiles, diarize sidecar, bare-metal build script
docker-compose.yml full stack (profiles: cpu | gpu)
flake.nix NixOS devshell
justfile common tasks
NixOS devshell
nix develop # rust, node, ffmpeg, python, cmake, docker compose, just
Quick start — docker compose (single machine)
docker compose --profile gpu up -d --build # AMD/Intel GPU via Vulkan (/dev/dri)
# or
docker compose --profile cpu up -d --build # CPU only
# first start downloads models (whisper small ~0.5 GB on cpu / large-v3-turbo
# ~1.6 GB on gpu, LLM ~2.5 GB, diarization ~40 MB)
# create your user (password read from stdin with '-')
echo s3cret | docker compose exec -T backend meetmon add-user alice -
# open http://localhost:8787
The cpu profile uses ggml-small for whisper — large-v3-turbo is only
usable for live mode on fast hardware (GPUs). On very slow boxes even small
runs at ~1x realtime; uploads tolerate this, live windows lag behind. The LLM
GGUF is pulled from the unsloth HF mirror (the official Qwen/ repo
rate-limits anonymous downloads with a misleading HTTP 401); if a download is
blocked, fetch the file manually into data/inference/llama/ — the compose
command skips the download when the file already exists.
The whisper/llama/diarize ports are bound to 127.0.0.1 by default (they are
unauthenticated). When the compose stack runs on a dedicated inference host
that a remote backend talks to, set MEETMON_INFERENCE_BIND=0.0.0.0 so the
backend can reach them over the network.
Setup — split topology (backend local, inference remote)
On the inference server:
./deploy/build-inference.sh # builds whisper.cpp + llama.cpp (Vulkan), diarize-server, downloads models
# (pins upstream tags; override with MEETMON_WHISPER_REF / MEETMON_LLAMA_REF)
# start the three services as printed by the script
# (or use docker compose on that host with --profile gpu)
On your local machine:
nix develop
cd frontend && npm install && npm run build && cd ..
cat > .env <<EOF
BIND=127.0.0.1:8787
DATA_DIR=./data
WHISPER_URL=http://<inference-host>:9000
LLAMA_URL=http://<inference-host>:9001
DIARIZE_URL=http://<inference-host>:9002
DEFAULT_LANG=de
RETENTION_DAYS=7
ALLOW_REGISTRATION=false
EOF
cargo run --manifest-path backend/Cargo.toml -- serve
echo s3cret | cargo run --manifest-path backend/Cargo.toml -- add-user alice -
cd frontend && npm run dev # dev server with proxy on :5173
# or serve the built SPA from the backend (works from repo root or backend/; PUBLIC_DIR=frontend/dist)
Configuration (env)
| Variable | Default | Description |
|---|---|---|
BIND |
127.0.0.1:8787 |
backend listen address |
DATA_DIR |
./data |
SQLite DB + audio files |
WHISPER_URL |
http://127.0.0.1:9000 |
whisper-server base URL |
LLAMA_URL |
http://127.0.0.1:9001 |
llama-server base URL |
DIARIZE_URL |
http://127.0.0.1:9002 |
diarize-server base URL |
RETENTION_DAYS |
7 |
audio auto-delete age in days (0 disables) |
ALLOW_REGISTRATION |
false |
allow self-service signup |
SESSION_TTL_DAYS |
30 |
session cookie lifetime |
PUBLIC_DIR |
frontend/dist |
SPA build served by backend |
Diarization tuning (on the diarize service): THRESHOLD (default 0.9,
higher = fewer speakers), NUM_CLUSTERS (set -1 for auto, or a fixed count),
plus per-request overrides via form fields. For uploaded files you can also
re-run transcription from the meeting page.
API (all cookie-authenticated)
POST /api/auth/login | register | logout GET /api/auth/me GET /api/auth/config
POST /api/meetings GET /api/meetings
GET /api/meetings/{id} DELETE /api/meetings/{id}
POST /api/meetings/{id}/audio (multipart file → transcribe+diarize)
POST /api/meetings/{id}/transcribe (re-run)
POST /api/meetings/{id}/summarize (map-reduce via llama-server)
GET /api/meetings/{id}/export?format=md|txt|srt|json
WS /ws/live/{id} (binary: 16 kHz mono PCM16;
text: {"type":"stop"} / {"type":"ping"})
Live WS server events: status (recording / finalizing / ready / failed),
finals, partial, speakers, error.
Notes on quality
- German:
large-v3-turbois strong for German; if the APU is too slow for live windows, switch whisper-server to-m ggml-small.binfor live and keep turbo for final passes. - Speaker count:
THRESHOLD=0.9works well for typical 2–6 person meetings; for known speaker counts passnum_clusters. - The diarization pipeline assigns each transcript segment the speaker with
the maximum temporal overlap;
Sprecher ?means no overlapping speech region was found.
License note
whisper.cpp (MIT), llama.cpp (MIT), sherpa-onnx (Apache-2.0), pyannote segmentation model weights (MIT); 3D-Speaker eres2net model — check its license for commercial use (Apache-2.0 as shipped by 3D-Speaker).
Operational notes
- The compose backend and diarize containers run as non-root user
app(uid 1000). Host bind-mounts (./data/backend,./data/inference/diarize) must therefore be writable by uid 1000 — pre-download models orchown -R 1000the directory otherwise. - Session tokens are stored only as SHA-256 hashes in the database; the raw token lives exclusively in the HttpOnly session cookie.
- Diarization re-clusters independently per 90 s window during live mode, so speaker numbers can shift between ticks and old segments keep their last labels. The final pass after Stop re-diarizes the whole recording, which yields one consistent labeling.