fix(deepgram): match only list channel_index in Results frames, as before the match rewrite

This commit is contained in:
shrey kharbanda 2026-10-28 16:03:52 -07:00
parent 65c272337b
commit d6b3d4f486

View file

@ -140,7 +140,7 @@ def _channel_count(value: object) -> int | None:
def _results_channel_count(frame: Mapping[str, object]) -> int | None:
match frame.get("channel_index"):
case [object(), int() as channels]:
case list([object(), object() as channels]):
return _channel_count(channels)
case _:
return None