Ran black

This commit is contained in:
Melissa LeBlanc-Williams 2023-05-23 16:19:32 -07:00
parent d9cf8ee133
commit b77743b490

View file

@ -39,10 +39,8 @@ class Listener:
if ready_callback:
ready_callback()
while (
(self.listener_handle
and not self.speech_waiting())
or not self.phrase_complete
):
self.listener_handle and not self.speech_waiting()
) or not self.phrase_complete:
if self.phrase_time and time.monotonic() > start + self.phrase_timeout:
self.last_sample = bytes()
self.phrase_complete = True