From bf644ea0be80e60ad27fb5cab371bf92c9d51fd2 Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Sat, 11 Jul 2026 00:23:17 -0500 Subject: [PATCH] feat(ui): expose diarization models over the typed api (FR-MODEL-1) --- src/lib/api.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/api.ts b/src/lib/api.ts index 5111a52..85312dc 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -413,10 +413,15 @@ export const api = { downloadNpuPackage: () => invoke("download_npu_package"), downloadDirectmlPackage: () => invoke("download_directml_package"), listModels: () => invoke("list_models"), + // The fixed segmentation+embedding pair that speaker diarization needs + // installed before it can separate speakers (T4.7, FR-MODEL-1). Same + // ModelInfo shape as whisper models; download via `downloadModel` with the + // `diar-seg`/`diar-emb` kind, remove via the shared `removeModel`. + listDiarizationModels: () => invoke("list_diarization_models"), // T8.7/FR-TRX-4: static catalog of whisper.cpp-recognized language codes // for the Settings dropdown; "Auto-detect" is a frontend-only addition. listWhisperLanguages: () => invoke("list_whisper_languages"), - downloadModel: (id: string, kind: "whisper" = "whisper") => + downloadModel: (id: string, kind: "whisper" | "diar-seg" | "diar-emb" = "whisper") => invoke("download_model", { args: { kind, id } }), removeModel: (id: string) => invoke("remove_model", { id }), // `language` (T8.7): omit/undefined reuses whatever language the meeting