Add Pinokio launcher for Teams meeting report pipeline

Pipeline code copied into app/; llama.py now uses launcher-local
llama.cpp (app/bin) and Qwen GGUF (app/models) instead of LM Studio.
install.js fetches ffmpeg, 7zip, llama.cpp CUDA 13, sherpa-onnx
diarization models, bge-m3 and Qwen3.6-35B-A3B, then pre-builds the
uv script environments. start.js serves the GUI on fixed port 18765
(hardcoded in the browser extension). reset.js keeps app/out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pinokio
2026-10-30 21:29:33 +01:00
co-authored by Claude Opus 5.5
commit 4ff3e6fe14
31 changed files with 2366 additions and 0 deletions
+79
View File
@@ -0,0 +1,79 @@
# Teams Whisper
Local pipeline that records a Microsoft Teams call and turns it into a meeting report:
audio cleanup (ffmpeg) → transcription (faster-whisper CUDA, or OpenVINO NPU) → speaker diarization (sherpa-onnx) → speaker names from Teams events → screen content extraction (Qwen3.6-35B-A3B VLM via llama.cpp) → related Confluence/Jira docs (`twg`, optional) → topic report (HTML/PDF) → cross-meeting memory (bge-m3 embeddings).
Orchestrated by Prefect; everything runs locally. Windows + NVIDIA GPU (fits 4 GB VRAM: MoE experts run on CPU).
## Install
Click **Install**. It downloads ffmpeg, llama.cpp (CUDA 13), the diarization models, bge-m3 and the Qwen GGUF (~23 GB) into `app/bin` and `app/models`, and pre-builds the `uv` script environments.
## Use
1. Click **Start**: GUI on http://127.0.0.1:18765/, Prefect dashboard on http://127.0.0.1:4200.
2. Click **Extension** to open `app/ext`, then in Chrome/Edge: `chrome://extensions` → Developer mode → **Load unpacked** → select that folder (once).
3. In a Teams web call, click the extension icon → record. On stop, the pipeline runs and the report appears in the GUI.
Alternative without the extension (desktop Teams, system loopback + mic): `cd app && uv run meet.py [--screen]`, Ctrl+C to stop.
Data lives in `app/out` (recordings, reports, `meetings.db`). **Reset** deletes models/binaries only, never `app/out`.
Other CLI tools (from `app/`):
- `uv run --script flow.py <name> --from report` — rerun a meeting from a step (`audio transcribe diarize speakers shots docs report memory render`)
- `uv run --script flow.py <name> --bench-npu` — benchmark NPU vs CUDA and remember the faster one
- `uv run --script memory.py --reindex` — rebuild cross-meeting memory
- `uv run --script review.py <name>` — report quality gate
## API
Base URL `http://127.0.0.1:18765`.
| Method | Path | Params |
|---|---|---|
| GET | `/status` | all recordings + pipeline status |
| GET | `/report` | `name` → report HTML |
| GET | `/pdf` | `name` → report PDF |
| GET | `/search` | `q` → full-text search over transcripts/topics |
| GET | `/ask` | `q` → answer from cross-meeting memory, with sources |
| POST | `/chunk` | `name`, body = webm chunk (append) |
| POST | `/events` | `name`, body = JSON array of Teams call events |
| POST | `/stop` | `name` → finalize recording, start pipeline |
| POST | `/run` | `name`, `from`, `speakers` → rerun pipeline |
| POST | `/speaker_map` | `name`, body = `{"Speaker 1": "Mario Rossi"}` → re-render |
### curl
```bash
curl http://127.0.0.1:18765/status
curl "http://127.0.0.1:18765/ask?q=cosa%20abbiamo%20deciso%20sul%20rilascio"
curl -X POST "http://127.0.0.1:18765/run?name=teams_2026-10-28T13-04-04&from=report"
curl -X POST "http://127.0.0.1:18765/speaker_map?name=teams_2026-10-28T13-04-04" -d '{"Speaker 1":"Mario Rossi"}'
```
### Python
```python
import json, urllib.request, urllib.parse
B = "http://127.0.0.1:18765"
status = json.load(urllib.request.urlopen(f"{B}/status"))
ans = json.load(urllib.request.urlopen(f"{B}/ask?q=" + urllib.parse.quote("decisioni sul rilascio")))
urllib.request.urlopen(urllib.request.Request(f"{B}/run?name=teams_2026-10-28T13-04-04&from=report", method="POST"))
```
### JavaScript
```javascript
const B = "http://127.0.0.1:18765"
const status = await (await fetch(`${B}/status`)).json()
const ans = await (await fetch(`${B}/ask?q=${encodeURIComponent("decisioni sul rilascio")}`)).json()
await fetch(`${B}/run?name=teams_2026-10-28T13-04-04&from=report`, { method: "POST" })
```
## Notes
- Ports 18765 (GUI) and 4200 (Prefect) are fixed: the extension's `host_permissions` hardcode 18765.
- `docs.py` uses `twg` and the company proxy; without `twg` the step is skipped.
- PDF export uses Microsoft Edge headless.