mirror of
https://github.com/wassname/BitLit_test1.git
synced 2026-06-27 19:13:08 +08:00
beep on start
This commit is contained in:
+4
-2
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user