From 1a19eecb7a0eb34ae2b6443ce95235a62b159a16 Mon Sep 17 00:00:00 2001 From: maglore9900 Date: Thu, 10 Oct 2024 11:38:36 -0400 Subject: [PATCH] Update speak2.py --- modules/speak2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/speak2.py b/modules/speak2.py index 35869ff..a38bf16 100644 --- a/modules/speak2.py +++ b/modules/speak2.py @@ -27,7 +27,7 @@ class Speak: self.noise_threshold = 500 # Initial placeholder for noise threshold self.recent_noise_levels = deque(maxlen=30) # Track recent noise levels for dynamic adjustment self.voice = env("ALL_TALK_VOICE") - self.silence = int(env("TIME_SILENCE")) + self.silence = float(env("TIME_SILENCE")) # Initialize transcription models if self.model_name == "whisper":