ciyidogan commited on
Commit
86714dd
·
verified ·
1 Parent(s): 81c06f1

Update websocket_handler.py

Browse files
Files changed (1) hide show
  1. websocket_handler.py +1 -1
websocket_handler.py CHANGED
@@ -65,7 +65,7 @@ class AudioBuffer:
65
 
66
  class SilenceDetector:
67
  """Detect silence in audio stream"""
68
- def __init__(self, threshold_ms: int = SILENCE_THRESHOLD_MS, energy_threshold: float = ENERGY_THRESHOLD):
69
  self.threshold_ms = threshold_ms
70
  self.energy_threshold = energy_threshold
71
  self.silence_start = None
 
65
 
66
  class SilenceDetector:
67
  """Detect silence in audio stream"""
68
+ def __init__(self, threshold_ms: int = DEFAULT_SILENCE_THRESHOLD_MS, energy_threshold: float = DEFAULT_ENERGY_THRESHOLD):
69
  self.threshold_ms = threshold_ms
70
  self.energy_threshold = energy_threshold
71
  self.silence_start = None