Revert "Update icad_tone.py"

This reverts commit c31947194e.
This commit is contained in:
SpudGunMan
2025-11-12 17:12:49 -08:00
parent a5fc8aca82
commit e84ce13878

View File

@@ -194,9 +194,6 @@ def main():
)
detect_and_alert(audio, SAMPLE_RATE)
buffer = buffer[DETECTION_CHUNK:] # keep remainder for next window
# Prevent buffer from growing forever
if buffer.size > DETECTION_CHUNK * 10:
buffer = buffer[-DETECTION_CHUNK*10:]
except Exception as e:
print(f"Callback error: {e}", file=sys.stderr)
try: