diff options
Diffstat (limited to 'client')
| -rw-r--r-- | client/mic.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/mic.py b/client/mic.py index 0351592..444beea 100644 --- a/client/mic.py +++ b/client/mic.py @@ -68,6 +68,10 @@ class Mic: lastN.append(self.getScore(data)) average = sum(lastN) / len(lastN) + stream.stop_stream() + stream.close() + audio.terminate() + # this will be the benchmark to cause a disturbance over! THRESHOLD = average * THRESHOLD_MULTIPLIER |
