Fix OpenClaw realtime transcript item identity

This commit is contained in:
Mikei386
2026-09-16 14:26:16 +02:00
parent 4239b217eb
commit b9dcadedd5
3 changed files with 46 additions and 2 deletions
+4 -1
View File
@@ -263,8 +263,11 @@ class RealtimeSession:
if not text:
self.busy = False
return
item_id = f"item_{uuid.uuid4().hex}"
# OpenClaw tracks transcript items before accepting their text.
self.emit({"type": "input_audio_buffer.committed", "item_id": item_id})
self.emit({"type": "conversation.item.input_audio_transcription.completed",
"item_id": f"item_{uuid.uuid4().hex}", "transcript": text})
"item_id": item_id, "transcript": text})
await self.consult(text)
except asyncio.CancelledError:
self.busy = False