Remove Noise Gate from master (moved to its own branch)

This commit is contained in:
Logan Cusano
2022-02-17 00:50:12 -05:00
parent 6b9e48d722
commit 1997d5ca5d
2 changed files with 5 additions and 15 deletions

5
bot.py
View File

@@ -88,10 +88,13 @@ class Bot(commands.Bot):
voice_connection = await channel.connect()
# Create an audio stream from selected device
self.streamHandler = sound.PCMStream(voice_connection)
self.streamHandler = sound.PCMStream()
# Ensure the selected device is available and start the audio stream
self.streamHandler.change_device(self.DEVICE_ID)
# Play the stream
voice_connection.play(discord.PCMAudio(self.streamHandler))
# Start the SDR and begin playing to the audio stream
self.start_sdr()