Skip to content

Commit

Permalink
Fix model name parsing to prevent splitting on . in model name inst…
Browse files Browse the repository at this point in the history
…ead of just stripping extension (#10)
  • Loading branch information
NeonDaniel authored Nov 15, 2022
1 parent 86893e9 commit 168f378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ovos_stt_plugin_vosk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 168f378

Please sign in to comment.