1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2025-12-03 21:44:58 +02:00

add double clap activation

This commit is contained in:
MarkParker5
2020-11-14 17:22:11 +02:00
parent 145cb2fb14
commit 720a300c2e
2 changed files with 30 additions and 2 deletions

View File

@@ -76,4 +76,6 @@ while True: # main loop
if speech['status'] == 'error': print('Отсутсвует подключение к интернету');
elif online and speech['status'] == 'void': voids += 1;
if online and voids >= 3: online = False; voids = 0
if not online: listener.listen_noise()
if not online:
if config.double_clap_activation: break
else: listener.listen_noise()