[Bugfix][MiniCPM-o] Isolate duplex handoff failures and barge-in (#6170)
Signed-off-by: Sy03 <1370724210@qq.com>
This commit is contained in:
23 files changed
+817
-98
No files matched your search
@@ -58,6 +58,7 @@ class NativeRealtimeSessionProtocol(
|
||||
while True:
|
||||
if not self._pending_outbound.empty():
|
||||
return json.dumps(await self._pending_outbound.get())
|
||||
await self.wait_for_realtime_turn_detection_update()
|
||||
raw = await websocket.receive_text()
|
||||
try:
|
||||
event = json.loads(raw)
|
||||
|
||||
Reference in new issue
Block a user