Open MatheusGysi opened 2 years ago
I've just tried it and it works fine. Please try to download the file again, maybe it was corrupted.
I've just tried it and it works fine. Please try to download the file again, maybe it was corrupted.
I have 16GB Ram and I have redownloaded the model again, still doesn't work.
@MFRS please provide the full command output
LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=10 max-active=7000 lattice-beam=6 LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10 LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 0 orphan nodes. LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 0 orphan components. LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from C:\PathPrograms\vosk-model-pt-fb-v0.1.1-20220516_2113/ivector/final.ie LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done. LOG (VoskAPI:ReadDataFiles():model.cc:279) Loading HCLG from C:\PathPrograms\vosk-model-pt-fb-v0.1.1-20220516_2113/graph/HCLG.fst LOG (VoskAPI:ReadDataFiles():model.cc:294) Loading words from C:\PathPrograms\vosk-model-pt-fb-v0.1.1-20220516_2113/graph/words.txt LOG (VoskAPI:ReadDataFiles():model.cc:303) Loading winfo C:\PathPrograms\vosk-model-pt-fb-v0.1.1-20220516_2113/graph/phones/word_boundary.int LOG (VoskAPI:ReadDataFiles():model.cc:310) Loading subtract G.fst model from C:\PathPrograms\vosk-model-pt-fb-v0.1.1-20220516_2113/rescore/G.fst LOG (VoskAPI:ReadDataFiles():model.cc:312) Loading CARPA model from C:\PathPrograms\vosk-model-pt-fb-v0.1.1-20220516_2113/rescore/G.carpa ERROR (VoskAPI:ReadInternal():const-arpa-lm.cc:610) ConstArpaLm <LmStates> section reading failed. Traceback (most recent call last): File "c:\Users\main.py", line 17, in <module> generator() File "c:\Users\Generator.py", line 75, in main model = Model(model_path) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\vosk\__init__.py", line 53, in __init__ raise Exception("Failed to create a model") Exception: Failed to create a model
It should print more messages from the start
It should print more messages from the start
I updated my previous comment.
Do you have 32-bit python by chance? What is the output of python script:
import platform
print(platform.architecture())
import platform print(platform.architecture())
Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] on win32
Does other big model work for you like https://alphacephei.com/vosk/models/vosk-model-de-0.21.zip ?
Does other big model work for you like https://alphacephei.com/vosk/models/vosk-model-de-0.21.zip ?
The vosk-model-en-us-0.22 works for me.
Please check if https://alphacephei.com/vosk/models/vosk-model-de-0.21.zip works for you.
Please check if https://alphacephei.com/vosk/models/vosk-model-de-0.21.zip works for you.
Will do, I'll update you soon.
Please check if https://alphacephei.com/vosk/models/vosk-model-de-0.21.zip works for you.
I tried it and it worked.
Please try
https://alphacephei.com/vosk/models/vosk-model-pt-fb-v0.1.1-pruned.zip
This works for me, thank you very much for your support.
I am getting the same error as @MFRS when using vosk-model-de-tuda-0.6-900k as seen below. Python and the modules seem to be up to date. Am I missing something?
LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=13 max-active=7000 lattice-beam=6
LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10
LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 1 orphan nodes.
LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 2 orphan components.
LOG (VoskAPI:Collapse():nnet-utils.cc:1488) Added 1 components, removed 2
LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from vosk/ivector/final.ie
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done.
LOG (VoskAPI:ReadDataFiles():model.cc:279) Loading HCLG from vosk/graph/HCLG.fst
LOG (VoskAPI:ReadDataFiles():model.cc:297) Loading words from vosk/graph/words.txt
LOG (VoskAPI:ReadDataFiles():model.cc:308) Loading winfo vosk/graph/phones/word_boundary.int
LOG (VoskAPI:ReadDataFiles():model.cc:315) Loading subtract G.fst model from vosk/rescore/G.fst
LOG (VoskAPI:ReadDataFiles():model.cc:317) Loading CARPA model from vosk/rescore/G.carpa
ERROR (VoskAPI:ReadInternal():const-arpa-lm.cc:610) ConstArpaLm
Traceback (most recent call last):
File "C:\Users\user\Desktop\Interviews\transcript.py", line 11, in
model = Model("vosk") ^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\vosk__init.py", line 57, in init__ raise Exception("Failed to create a model") Exception: Failed to create a model
Simply use our model instead
Please try
https://alphacephei.com/vosk/models/vosk-model-pt-fb-v0.1.1-pruned.zip
I had the same problem as above today, your model fixed my problem. Thank kindly.
Please try
https://alphacephei.com/vosk/models/vosk-model-pt-fb-v0.1.1-pruned.zip
I had the same problem on windows, but only with the model vosk-model-pt-fb-v0.1.1-20220516_2113 even larger models I had no problem, is the one you sent because it is smaller less efficient than the original?
@nshmyrev I think I have the same issue with the Russian models on Windows x32. Tried to use all four models from the list but only the small model works. With other ones, I have similar outputs. Can I solve it somehow?
LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=13 max-active=7000 lattice-beam=6
LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10
LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 0 orphan nodes.
LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 0 orphan components.
LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from ./vosk-model-ru-0.10/ivector/final.ie
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done.
LOG (VoskAPI:ReadDataFiles():model.cc:279) Loading HCLG from ./vosk-model-ru-0.10/graph/HCLG.fst
LOG (VoskAPI:ReadDataFiles():model.cc:294) Loading words from ./vosk-model-ru-0.10/graph/words.txt
LOG (VoskAPI:ReadDataFiles():model.cc:303) Loading winfo ./vosk-model-ru-0.10/graph/phones/word_boundary.int
LOG (VoskAPI:ReadDataFiles():model.cc:310) Loading subtract G.fst model from ./vosk-model-ru-0.10/rescore/G.fst
LOG (VoskAPI:ReadDataFiles():model.cc:312) Loading CARPA model from ./vosk-model-ru-0.10/rescore/G.carpa
Traceback (most recent call last):
File "c:/Users/workm/source/repos/TEST_PROJECTS/electron-voice-video/recognition-server/server.py", line 7, in <module>
model = Model(model_path="./vosk-model-ru-0.10")
File "C:\Users\workm\AppData\Local\Programs\Python\Python38-32\lib\site-packages\vosk\__init__.py", line 57, in __init__
raise Exception("Failed to create a model")
Exception: Failed to create a model
@nshmyrev I think I have the same issue with the Russian models on Windows x32. Tried to use all four models from the list but only the small model works. With other ones, I have similar outputs. Can I solve it somehow?
Big models require 16Gb of memory and won't fit x32. You can remove rescore and rnnlm folders from the model to make it smaller, probably it will load then.
Por favor tente
https://alphacephei.com/vosk/models/vosk-model-pt-fb-v0.1.1-pruned.zip
Obrigado amigo, você é um amigo.
Please try
https://alphacephei.com/vosk/models/vosk-model-pt-fb-v0.1.1-pruned.zip
Thanks bro🙏🙏
Olá estou com problema. ERROR (VoskAPI:ReadInternal():const-arpa-lm.cc:610) ConstArpaLm
PS C:\Users\glaub\Desktop\AudioEmTexto_server> yarn start
yarn run v1.22.22
$ nodemon index.js
[nodemon] 3.1.4
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting node index.js
LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=10 max-active=7000 lattice-beam=6
LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10
LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 0 orphan nodes.
LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 0 orphan components.
LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from model/vosk-model-pt-fb-v0.1.1-20220516_2113/ivector/final.ieLOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done.
LOG (VoskAPI:ReadDataFiles():model.cc:279) Loading HCLG from model/vosk-model-pt-fb-v0.1.1-20220516_2113/graph/HCLG.fst
LOG (VoskAPI:ReadDataFiles():model.cc:294) Loading words from model/vosk-model-pt-fb-v0.1.1-20220516_2113/graph/words.txt
LOG (VoskAPI:ReadDataFiles():model.cc:303) Loading winfo model/vosk-model-pt-fb-v0.1.1-20220516_2113/graph/phones/word_boundary.int
LOG (VoskAPI:ReadDataFiles():model.cc:310) Loading subtract G.fst model from model/vosk-model-pt-fb-v0.1.1-20220516_2113/rescore/G.fst
LOG (VoskAPI:ReadDataFiles():model.cc:312) Loading CARPA model from model/vosk-model-pt-fb-v0.1.1-20220516_2113/rescore/G.carpa
ERROR (VoskAPI:ReadInternal():const-arpa-lm.cc:610) ConstArpaLm
Tem outro modelo que eu possa usar que seja o mais preciso possível ?
Please try
https://alphacephei.com/vosk/models/vosk-model-pt-fb-v0.1.1-pruned.zip
Hello! I also stumbled upon this error with the german vosk-model-de-tuda-0.6-900k, and also saw that you recommended this model instead in another issue about the german model, but the thing is, that this model is in portuguese and not german! Where can I get the fixed one in german? My RAM is 16GB and I am on a 64bit system.
Please try https://alphacephei.com/vosk/models/vosk-model-pt-fb-v0.1.1-pruned.zip
Hello! I also stumbled upon this error with the german vosk-model-de-tuda-0.6-900k, and also saw that you recommended this model instead in another issue about the german model, but the thing is, that this model is in portuguese and not german! Where can I get the fixed one in german? My RAM is 16GB and I am on a 64bit system.
Please try https://alphacephei.com/vosk/models/vosk-model-pt-fb-v0.1.1-pruned.zip
Hello! I also stumbled upon this error with the german vosk-model-de-tuda-0.6-900k, and also saw that you recommended this model instead in another issue about the german model, but the thing is, that this model is in portuguese and not german! Where can I get the fixed one in german? My RAM is 16GB and I am on a 64bit system.
Hello! Thanks for your answer, but this model is a lot smaller and I would like to use a bigger one, since that one is not very good in recoginzing the sentence, I already tried it. Isn't it possible to use the bigger one? What's wrong with the bigger one? Best regards, Daniel
What's wrong with the bigger one?
Windows does not support such big model files. You can try it in colab (Linux).
I'm tring to load vosk-model-pt-fb-v0.1.1-20220516_2113 but i keep receving this error:
When I try with other models: small-pt, small-en-us-0.15,en-us-0.22, works fine.