diff --git a/bot.py b/bot.py index b4e1575..1c77a9e 100644 --- a/bot.py +++ b/bot.py @@ -104,7 +104,7 @@ class Bot(commands.Bot): # Create an audio stream from selected device self.logger.debug("Starting noisegate/stream handler") - self.streamHandler = NoiseGatev2.NoiseGate(_input_device_index=self.DEVICE_ID, + self.streamHandler = NoiseGatev2.NoiseGate(_device_index=self.DEVICE_ID, _voice_connection=voice_connection, _noise_gate_threshold=self.noisegate_sensitivity) # Start the audio stream