From 13903bd10b39e9b593c55cfddcf88d37ddddb966 Mon Sep 17 00:00:00 2001 From: Dumitru Gutu Date: Thu, 2 Oct 2025 10:24:12 +0100 Subject: [PATCH] Fix multi-chan diarization example --- examples/rt/async/multi_chan/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rt/async/multi_chan/main.py b/examples/rt/async/multi_chan/main.py index ed6d443..ef04243 100644 --- a/examples/rt/async/multi_chan/main.py +++ b/examples/rt/async/multi_chan/main.py @@ -15,7 +15,7 @@ async def main(): async with AsyncMultiChannelClient() as client: @client.on(ServerMessageType.ADD_TRANSCRIPT) def handle_transcript(msg): - channel = msg['results'][0]['channel'] + channel = msg.get('channel') transcript = msg['metadata']['transcript'] print(f"[{channel}]: {transcript}")