Switch back to precise lite by default. See how it holds up.

This commit is contained in:
j1nx 2022-06-08 20:21:17 +02:00
parent 0bc8a965b5
commit 877f8087ab
2 changed files with 48 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From bdf1875bcd4e34766d45a6514ec9fed9d2cf1a9a Mon Sep 17 00:00:00 2001
From: j1nx <p.steenbergen@j1nx.nl>
Date: Wed, 8 Jun 2022 11:44:11 +0200
Subject: [PATCH 1/1] Try to use 4 threads Tensorflow v2.3.0+ supports
multithreading.
---
precise_lite_runner/runner.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/precise_lite_runner/runner.py b/precise_lite_runner/runner.py
index 7e56a30..0aadf73 100644
--- a/precise_lite_runner/runner.py
+++ b/precise_lite_runner/runner.py
@@ -16,6 +16,11 @@ class TFLiteRunner:
def __init__(self, model_name: str):
# Setup tflite environment
self.interpreter = tflite.Interpreter(model_path=model_name)
+ try:
+ self.interpreter.set_num_threads(4)
+ except:
+ pass
+
self.interpreter.allocate_tensors()
self.input_details = self.interpreter.get_input_details()
--
2.34.1

View File

@ -24,7 +24,25 @@
"instant_listen": true,
"VAD": {
"module": "ovos-vad-plugin-webrtcvad",
"ovos-vad-plugin-webrtcvad": {"vad_mode": 2}
"ovos-vad-plugin-webrtcvad": {"vad_mode": 3}
}
},
"hotwords": {
"hey mycroft": {
"module": "ovos-precise-lite",
"model": "~/.local/share/precise-lite/wakewords/en/hey_mycroft.tflite",
"sensitivity": 0.5,
"trigger_level": 3,
"expected_duration": 3,
"phonemes": "HH EY . M AY K R AO F T",
"threshold": 1e-90,
"lang": "en-us"
},
"wake up": {
"module": "ovos-ww-plugin-pocketsphinx",
"phonemes": "W EY K . AH P",
"threshold": 1e-20,
"lang": "en-us"
}
},
"tts": {