Teamsbot: emit caption/speakerHint to UI for speaker display
Made-with: Cursor
This commit is contained in:
parent
1c00ab6024
commit
21f77d1924
1 changed files with 12 additions and 0 deletions
|
|
@ -549,6 +549,18 @@ class TeamsbotService:
|
||||||
if source in ("caption", "speakerHint"):
|
if source in ("caption", "speakerHint"):
|
||||||
self._registerSpeakerHint(speaker, text)
|
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 (
|
if (
|
||||||
source == "speakerHint"
|
source == "speakerHint"
|
||||||
and isFinal
|
and isFinal
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue