server_microphone.py aktualisiert
This commit is contained in:
@@ -63,6 +63,20 @@ async def run_test():
|
||||
pixels.off()
|
||||
avm_sid.lights_off()
|
||||
run_stop_only_once_flag = False
|
||||
if "kaffee" in finalResult and "an" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
|
||||
print("SCHALTER EIN!")
|
||||
pixels.think()
|
||||
time.sleep(1)
|
||||
pixels.off()
|
||||
avm_sid.coffee_on()
|
||||
run_stop_only_once_flag = False
|
||||
if "kaffee" in finalResult and "aus" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
|
||||
print("SCHALTER AUS!")
|
||||
pixels.think()
|
||||
time.sleep(1)
|
||||
pixels.off()
|
||||
avm_sid.coffee_off()
|
||||
run_stop_only_once_flag = False
|
||||
if "blinken" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
|
||||
print("Blinken!")
|
||||
pixels.think()
|
||||
|
||||
Reference in New Issue
Block a user