vosk-api icon indicating copy to clipboard operation
vosk-api copied to clipboard

Exception: Failed to create a model vosk-model-pt-fb-v0.1.1-pruned

Open IndexErr0r opened this issue 1 year ago • 2 comments

I was trying to use the vosk-model-pt-fb-v0.1.1-pruned model, but it didn't work for me, and it returns the error:

ERROR (VoskAPI:Model():model.cc:122) Folder 'C:\Users\Rafael\Meus arquivos\Programação\vosk-model-pt-fb-v0.1.1-pruned' does not contain model files. Make sure you specified the model path properly in Model constructor. If you are not sure about relative path, use absolute path specification.
Traceback (most recent call last):
  File "C:/Users/Rafael/PycharmProjects/Jarvis2/Teste 4.py", line 111, in <module>
    model = Model(r"C:\Users\Rafael\Meus arquivos\Programação\vosk-model-pt-fb-v0.1.1-pruned")
  File "C:\Users\Rafael\PycharmProjects\Jarvis2\venv\lib\site-packages\vosk\__init__.py", line 53, in __init__
    raise Exception("Failed to create a model")
Exception: Failed to create a model

IndexErr0r avatar Aug 23 '22 19:08 IndexErr0r

probably your path specification is wrong, check contents of the folder

nshmyrev avatar Aug 23 '22 19:08 nshmyrev

Não pode ter espaço nos nomes no caminho

tomas-viotto avatar Sep 10 '22 00:09 tomas-viotto