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}")