Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def detect_snoring_sliding_window(y_segment, sr):
|
|
| 52 |
Scans a segment using a sliding window for higher precision.
|
| 53 |
Returns True if a snore is found within the segment.
|
| 54 |
"""
|
| 55 |
-
WINDOW_SIZE =
|
| 56 |
STEP_SIZE = 0.25 # 0.25 second steps for high resolution
|
| 57 |
THRESHOLD = 0.62 # Strict threshold as per your provided logic
|
| 58 |
|
|
|
|
| 52 |
Scans a segment using a sliding window for higher precision.
|
| 53 |
Returns True if a snore is found within the segment.
|
| 54 |
"""
|
| 55 |
+
WINDOW_SIZE = 3.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 |
|