beep on start

This commit is contained in:
wassname
2018-12-30 13:24:09 +08:00
parent af81dd2e38
commit 4ff3d7f802
+4 -2
View File
@@ -36,8 +36,10 @@ model = sys.argv[1]
# capture SIGINT signal, e.g., Ctrl+C
signal.signal(signal.SIGINT, signal_handler)
detector = snowboydecoder.HotwordDetector(model, sensitivity=0.5)
print("Listening... Press Ctrl+C to exit")
detector = snowboydecoder.HotwordDetector(model, sensitivity=0.75)
print("Listening for hotword (Hi BitLit)... Press Ctrl+C to exit")
snowboydecoder.play_audio_file()
detector.start(