server_microphone.py aktualisiert
This commit is contained in:
@@ -63,14 +63,14 @@ 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 "wand" in finalResult and "an" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
|
if "vogel" in finalResult and "an" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
|
||||||
print("SCHALTER EIN!")
|
print("SCHALTER EIN!")
|
||||||
pixels.think()
|
pixels.think()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
pixels.off()
|
pixels.off()
|
||||||
avm_sid.table_on()
|
avm_sid.table_on()
|
||||||
run_stop_only_once_flag = False
|
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:
|
if "vogel" in finalResult and "aus" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
|
||||||
print("SCHALTER AUS!")
|
print("SCHALTER AUS!")
|
||||||
pixels.think()
|
pixels.think()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
@@ -123,18 +123,30 @@ async def run_test():
|
|||||||
pixels.off()
|
pixels.off()
|
||||||
subprocess.Popen(["sh", "/home/pi/tagesschau/start_platt.sh"])
|
subprocess.Popen(["sh", "/home/pi/tagesschau/start_platt.sh"])
|
||||||
run_stop_only_once_flag = False
|
run_stop_only_once_flag = False
|
||||||
if "nova" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
|
if "nova" in finalResult and "leise" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
|
||||||
pixels.think()
|
pixels.think()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
pixels.off()
|
pixels.off()
|
||||||
subprocess.Popen(["sh", "/home/pi/radio/start_nova.sh"])
|
subprocess.Popen(["sh", "/home/pi/radio/start_nova.sh"])
|
||||||
run_stop_only_once_flag = False
|
run_stop_only_once_flag = False
|
||||||
if "funk" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
|
if "funk" in finalResult and "leise" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
|
||||||
pixels.think()
|
pixels.think()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
pixels.off()
|
pixels.off()
|
||||||
subprocess.Popen(["sh", "/home/pi/radio/start_dlf.sh"])
|
subprocess.Popen(["sh", "/home/pi/radio/start_dlf.sh"])
|
||||||
run_stop_only_once_flag = False
|
run_stop_only_once_flag = False
|
||||||
|
if "nova" in finalResult and "laut" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
|
||||||
|
pixels.think()
|
||||||
|
time.sleep(1)
|
||||||
|
pixels.off()
|
||||||
|
subprocess.Popen(["sh", "/home/pi/radio/start_nova_loud.sh"])
|
||||||
|
run_stop_only_once_flag = False
|
||||||
|
if "funk" in finalResult and "laut" in finalResult and activation_word in finalResult and run_stop_only_once_flag:
|
||||||
|
pixels.think()
|
||||||
|
time.sleep(1)
|
||||||
|
pixels.off()
|
||||||
|
subprocess.Popen(["sh", "/home/pi/radio/start_dlf_loud.sh"])
|
||||||
|
run_stop_only_once_flag = False
|
||||||
if ("stop" in finalResult or "stopp" in finalResult) and activation_word in finalResult and run_stop_only_once_flag:
|
if ("stop" in finalResult or "stopp" in finalResult) and activation_word in finalResult and run_stop_only_once_flag:
|
||||||
pixels.think()
|
pixels.think()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user