Update app.py
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ def detect_snoring_sliding_window(y_segment, sr):
|
|
| 54 |
"""
|
| 55 |
WINDOW_SIZE = 1.0 # 1 second windows
|
| 56 |
STEP_SIZE = 0.25 # 0.25 second steps for high resolution
|
| 57 |
-
THRESHOLD = 0.
|
| 58 |
|
| 59 |
samples_window = int(WINDOW_SIZE * sr)
|
| 60 |
samples_step = int(STEP_SIZE * sr)
|
|
|
|
| 54 |
"""
|
| 55 |
WINDOW_SIZE = 1.0 # 1 second windows
|
| 56 |
STEP_SIZE = 0.25 # 0.25 second steps for high resolution
|
| 57 |
+
THRESHOLD = 0.62 # Strict threshold as per your provided logic
|
| 58 |
|
| 59 |
samples_window = int(WINDOW_SIZE * sr)
|
| 60 |
samples_step = int(STEP_SIZE * sr)
|