Update speak2.py

This commit is contained in:
maglore9900 2024-10-10 11:38:36 -04:00
parent 687261b153
commit 1a19eecb7a

View File

@ -27,7 +27,7 @@ class Speak:
self.noise_threshold = 500 # Initial placeholder for noise threshold self.noise_threshold = 500 # Initial placeholder for noise threshold
self.recent_noise_levels = deque(maxlen=30) # Track recent noise levels for dynamic adjustment self.recent_noise_levels = deque(maxlen=30) # Track recent noise levels for dynamic adjustment
self.voice = env("ALL_TALK_VOICE") self.voice = env("ALL_TALK_VOICE")
self.silence = int(env("TIME_SILENCE")) self.silence = float(env("TIME_SILENCE"))
# Initialize transcription models # Initialize transcription models
if self.model_name == "whisper": if self.model_name == "whisper":