From 168f378f87d258d752c3659465eb65f99b9f2dfa Mon Sep 17 00:00:00 2001 From: Daniel McKnight <34697904+NeonDaniel@users.noreply.github.com> Date: Tue, 15 Nov 2022 11:10:55 -0800 Subject: [PATCH] Fix model name parsing to prevent splitting on `.` in model name instead of just stripping extension (#10) --- ovos_stt_plugin_vosk/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovos_stt_plugin_vosk/__init__.py b/ovos_stt_plugin_vosk/__init__.py index aee51c1..436b0c9 100644 --- a/ovos_stt_plugin_vosk/__init__.py +++ b/ovos_stt_plugin_vosk/__init__.py @@ -133,7 +133,7 @@ def download_language(lang): @staticmethod def download_model(url): folder = join(xdg_data_home(), 'vosk') - name = url.split("/")[-1].split(".")[0] + name = url.split("/")[-1].rsplit(".", 1)[0] model_path = join(folder, name) if not exists(model_path): while not is_connected():