Skip to content

Commit 630470e

Browse files
authored
Fix multi-chan diarization example (#41)
1 parent 252abce commit 630470e

File tree

1 file changed

+1
-1
lines changed
  • examples/rt/async/multi_chan

1 file changed

+1
-1
lines changed

examples/rt/async/multi_chan/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async def main():
1515
async with AsyncMultiChannelClient() as client:
1616
@client.on(ServerMessageType.ADD_TRANSCRIPT)
1717
def handle_transcript(msg):
18-
channel = msg['results'][0]['channel']
18+
channel = msg.get('channel')
1919
transcript = msg['metadata']['transcript']
2020
print(f"[{channel}]: {transcript}")
2121

0 commit comments

Comments
 (0)