Browse Source

Remove unnecessary condition

tags/v0.3.3-rc1^2
haixuanTao 1 year ago
parent
commit
3edc3f8209
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      examples/python-operator-dataflow/microphone_op.py

+ 0
- 2
examples/python-operator-dataflow/microphone_op.py View File

@@ -31,6 +31,4 @@ class Operator:
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

Loading…
Cancel
Save