Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions speechmatics/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,7 @@ def transcript_handler(message):
transcripts.text += plaintext

def get_channel(message):
return next(
(result["channel"] for result in message["results"] if "channel" in result),
None,
)
return message.get("channel", None)
Comment thread
J-Jaywalker marked this conversation as resolved.
Outdated

def audio_event_handler(message):
if print_json:
Expand Down