mirror of
https://github.com/maglore9900/max_headroom.git
synced 2025-06-06 19:45:31 +00:00
Update speak2.py
This commit is contained in:
parent
687261b153
commit
1a19eecb7a
@ -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":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user