From 48f6812f68db24c6c97153ee9e3032b4df3b7907 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 26 Mar 2022 02:42:42 -0400 Subject: [PATCH] Printing volume value --- sound.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sound.py b/sound.py index 58cae79..d65f134 100644 --- a/sound.py +++ b/sound.py @@ -62,6 +62,7 @@ class NoiseGate(threading.Thread): def run(self) -> None: while self.voice_connection.is_connected(): + print(f"Raw data: '{self.PCMStream_Instance.read(16)}'") print(f"Volume: '{float(20 * audioop.rms(self.PCMStream_Instance.read(16), 2))}'") if float(20 * audioop.rms(self.PCMStream_Instance.read(16), 2)) >= 5: # Play the stream