From 947eef474e60f212a13a978cd17a76d1ca24c020 Mon Sep 17 00:00:00 2001 From: jarbasai Date: Tue, 18 Oct 2022 01:20:31 +0100 Subject: [PATCH] add priority to metadata --- ovos_stt_plugin_vosk/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ovos_stt_plugin_vosk/__init__.py b/ovos_stt_plugin_vosk/__init__.py index 2c1aa54..3c0bb29 100644 --- a/ovos_stt_plugin_vosk/__init__.py +++ b/ovos_stt_plugin_vosk/__init__.py @@ -43,6 +43,7 @@ VoskSTTConfig = { lang: [{"model": url, "lang": lang, + "priority": 40, "display_name": url.split("/")[-1].replace(".zip", "") + " (Small)", "offline": True}] for lang, url in _lang2url.items() @@ -50,6 +51,7 @@ for lang, url in _biglang2url.items(): VoskSTTConfig[lang].append({"model": url, "lang": lang, + "priority": 70, "display_name": url.split("/")[-1].replace(".zip", "") + " (Large)", "offline": True})