X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=kiosk.py;h=fe9e174262537b5267541d52483a8f3d746152ab;hb=5ea88ab72e175e2d4f57ae8645ca6f825549a7a9;hp=14dae5721adbf8c5da5a0ece5af965de095deaa8;hpb=429de391ecf48e70b6b81fa7b239c5720c7da371;p=kiosk.git diff --git a/kiosk.py b/kiosk.py index 14dae57..fe9e174 100755 --- 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,