From 3edc3f82093e60af73d67b7f20ff8817bd323211 Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Thu, 4 Apr 2024 17:57:01 +0200 Subject: [PATCH] Remove unnecessary condition --- examples/python-operator-dataflow/microphone_op.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/python-operator-dataflow/microphone_op.py b/examples/python-operator-dataflow/microphone_op.py index 6c3b37ad2..b6fb6e63a 100644 --- a/examples/python-operator-dataflow/microphone_op.py +++ b/examples/python-operator-dataflow/microphone_op.py @@ -31,6 +31,4 @@ def on_event( audio_data = audio_data.ravel().astype(np.float32) / 32768.0 if len(audio_data) > 0: send_output("audio", pa.array(audio_data), dora_event["metadata"]) - elif dora_event["type"] == "INPUT": - print("Microphone is not recording", dora_event["value"][0].as_py()) return DoraStatus.CONTINUE