Changes.
[kiosk.git] / kiosk.py
index 14dae5721adbf8c5da5a0ece5af965de095deaa8..fe9e174262537b5267541d52483a8f3d746152ab 100755 (executable)
--- a/kiosk.py
+++ b/kiosk.py
@@ -725,7 +725,13 @@ def main() -> None:
                         "The hotword detector thread seems to have died; restarting it and hoping for the best."
                     )
                 keyword_paths = [pvporcupine.KEYWORD_PATHS[x] for x in ["bumblebee"]]
-                sensitivities = [0.7] * len(keyword_paths)
+
+                # Sensitivity is the parameter that enables trading
+                # miss rate for the false alarm rate. It is a floating
+                # point number within [0, 1]. A higher sensitivity
+                # reduces the miss rate at the cost of increased false
+                # alarm rate.
+                sensitivities = [0.4] * len(keyword_paths)
                 listener = listen.HotwordListener(
                     command_queue,
                     keyword_paths,