Улучшенный будильник, таймер, перевод
This commit is contained in:
@@ -44,7 +44,7 @@ class WakeWordDetector:
|
||||
if self.audio_stream:
|
||||
try:
|
||||
self.audio_stream.close()
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# Открываем поток с параметрами, которые требует Porcupine
|
||||
@@ -63,7 +63,7 @@ class WakeWordDetector:
|
||||
try:
|
||||
self.audio_stream.stop_stream()
|
||||
self.audio_stream.close()
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
self._stream_closed = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user