mirror of
https://github.com/R0m1k3/LiveFlow.git
synced 2026-10-14 18:59:06 +02:00
feat: diarisation des locuteurs en temps réel (ECAPA-TDNN + clustering incrémental)
- Nouveau module diarizer.py : EmbeddingModel (SpeechBrain ECAPA-TDNN) + SpeakerDiarizer par session - Backend : chargement modèle au lifespan, migration DB (colonne speaker), worker enrichi, exports avec locuteur - Frontend : badges locuteurs colorés (8 couleurs), toggle activation, copie avec [Locuteur X] - Config : DIARIZATION=on/off, DIARIZATION_THRESHOLD=0.70, PyTorch CPU-only dans Dockerfile - Rétrocompatible : désactivé par défaut (DIARIZATION=off)
This commit is contained in:
1 parent
ca936255e8
commit
284011428a
10 files changed
+325
-20
No files matched your search
@@ -133,6 +133,46 @@ button.record.recording { background: var(--rec); }
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* --- Diarisation : badges locuteurs --- */
|
||||
.speaker {
|
||||
font-size: 0.78rem;
|
||||
font-weight: 600;
|
||||
padding: 2px 8px;
|
||||
border-radius: 6px;
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.speaker-0 { background: #1a2440; color: #4f7cff; }
|
||||
.speaker-1 { background: #3a181a; color: #e5484d; }
|
||||
.speaker-2 { background: #132a1e; color: #30a46c; }
|
||||
.speaker-3 { background: #2a2410; color: #f5a623; }
|
||||
.speaker-4 { background: #2a1a3a; color: #8e4ec6; }
|
||||
.speaker-5 { background: #0f2a28; color: #12a594; }
|
||||
.speaker-6 { background: #3a1a2a; color: #e54666; }
|
||||
.speaker-7 { background: #1e2024; color: #889096; }
|
||||
|
||||
/* Toggle diarisation */
|
||||
.toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
color: var(--muted);
|
||||
user-select: none;
|
||||
padding: 6px 12px;
|
||||
border-radius: 10px;
|
||||
background: var(--panel-2);
|
||||
border: 1px solid #2c3245;
|
||||
transition: border-color 0.2s, color 0.2s;
|
||||
}
|
||||
.toggle:hover { border-color: var(--accent); }
|
||||
.toggle input { display: none; }
|
||||
.toggle:has(input:checked) {
|
||||
border-color: var(--accent);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.layout { flex-direction: column; }
|
||||
aside { width: 100%; max-height: 30vh; border-right: none; border-bottom: 1px solid #262b3a; }
|
||||
|
||||
Reference in new issue
Block a user