Make precise sensitivity configurable
parent
9f29649fc0
commit
a9fb77a27c
|
@ -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()
|
||||
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue