diff --git a/sound.py b/sound.py index 447945b..bf0297f 100644 --- a/sound.py +++ b/sound.py @@ -25,11 +25,11 @@ class PCMStream: # convert to pcm format return bytes(data) - def change_device(self, num): + def change_device(self, device_ID): self.clean_up() - self.stream = sd.RawInputStream(device=num) - noisegate_obj.init_stream(num, self.voice_connection, self) + self.stream = sd.RawInputStream(device=device_ID) + noisegate_obj.init_stream(device_ID, self.voice_connection, self) self.stream.start() noisegate_obj.start()