diff --git a/server_microphone.py b/server_microphone.py index 5577125..f3649d9 100644 --- a/server_microphone.py +++ b/server_microphone.py @@ -63,6 +63,34 @@ async def run_test(): pixels.off() avm_sid.lights_off() run_stop_only_once_flag = False + if "wand" 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.table_on() + run_stop_only_once_flag = False + if "wand" 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.table_off() + run_stop_only_once_flag = False + if "ecke" 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.corner_on() + run_stop_only_once_flag = False + if "ecke" 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.corner_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()