Make precise sensitivity configurable

pull/2060/head
Matthew D. Scholefield 2019-03-21 17:45:38 -05:00
parent 9f29649fc0
commit a9fb77a27c
2 changed files with 8 additions and 1 deletions

View File

@ -153,9 +153,13 @@ class PreciseHotword(HotWordEngine):
def on_activation():
self.has_found = True
trigger_level = self.config.get('trigger_level', 3)
sensitivity = self.config.get('sensitivity', 0.5)
self.runner = PreciseRunner(
PreciseEngine(precise_exe, self.precise_model),
stream=self.stream, on_activation=on_activation
trigger_level, sensitivity,
stream=self.stream, on_activation=on_activation,
)
self.runner.start()

View File

@ -202,6 +202,9 @@
"lang": "en-us"
// Specify custom model via:
// "local_model_file": "~/.mycroft/precise/models/something.pb"
// Precise options:
// "sensitivity": 0.5, // Higher = more sensitive
// "trigger_level": 3 // Higher = more delay & less sensitive
},
"wake up": {