Skip to content

Commit

Permalink
add priority to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Oct 18, 2022
1 parent 0b350e6 commit 947eef4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ovos_stt_plugin_vosk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@
VoskSTTConfig = {
lang: [{"model": url,
"lang": lang,
"priority": 40,
"display_name": url.split("/")[-1].replace(".zip", "") + " (Small)",
"offline": True}]
for lang, url in _lang2url.items()
}
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})

Expand Down

0 comments on commit 947eef4

Please sign in to comment.