"marketplace" in description
or "national-marketplace" in description
or re.search("[Ww]eed", title) is not None
+ or re.search("[Tt]estosterone", title) is not None
or re.search("[Cc]annabis", title) is not None
or re.search("[Cc]annabis", description) is not None
or "THC" in title
"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,