Teamsbot: emit caption/speakerHint to UI for speaker display

Made-with: Cursor
This commit is contained in:
patrick-motsch 2026-02-27 12:27:02 +01:00
parent 1c00ab6024
commit 21f77d1924

View file

@ -549,6 +549,18 @@ class TeamsbotService:
if source in ("caption", "speakerHint"):
self._registerSpeakerHint(speaker, text)
# Emit caption/speakerHint to UI so user sees who spoke (audioCapture alone shows "Meeting Audio")
await _emitSessionEvent(sessionId, "transcript", {
"id": None,
"speaker": speaker or "Unknown",
"text": text,
"confidence": 1.0,
"timestamp": getIsoTimestamp(),
"isContinuation": False,
"source": source,
"speakerResolvedFromHint": False,
})
if (
source == "speakerHint"
and isFinal