Skip to content

Commit

Permalink
Remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Apr 4, 2024
1 parent ad9bec3 commit 3edc3f8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/python-operator-dataflow/microphone_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3edc3f8

Please sign in to comment.