server_microphone.py aktualisiert

This commit is contained in:
2026-02-11 08:07:51 +00:00
parent 8963836693
commit 63e2efaf65

View File

@@ -63,6 +63,20 @@ async def run_test():
pixels.off() pixels.off()
avm_sid.lights_off() avm_sid.lights_off()
run_stop_only_once_flag = False 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: if "blinken" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
print("Blinken!") print("Blinken!")
pixels.think() pixels.think()