diff --git a/discord/voice_client.py b/discord/voice_client.py index b6d161f7fd..92d3390486 100644 --- a/discord/voice_client.py +++ b/discord/voice_client.py @@ -740,7 +740,7 @@ def is_speaking(self) -> bool: """ if not self.is_connected(): raise RecordingException("Not connected to voice channel.") - + self.empty_socket() ready, _, err = select.select([self.socket], [], [self.socket], 0.01) @@ -763,7 +763,7 @@ def is_speaking(self) -> bool: if data.decrypted_data == b"\xf8\xff\xfe": # Frame of silence return False - + return True def start_recording(self, sink, callback, *args, sync_start: bool = False):