Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vosk-model-de-tuda-0.6-900k ((VoskAPI:ReadInternal():const-arpa-lm.cc:610) ConstArpaLm section reading failed) #1606

Open
CactusJack1393 opened this issue Jul 4, 2024 · 5 comments

Comments

@CactusJack1393
Copy link

Hi! Please tell me, when I load the model, I get the following error. I have 16GB of RAM, or does this model require 16GB of free RAM space? When I get this error, my RAM is 60% full. Or is it related to another problem? Other models with a smaller size load and work correctly. Thanks

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 C:/Models/vosk-model-de-tuda-0.6-900k/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:/Models/vosk-model-de-tuda-0.6-900k/graph/HCLG.fst
LOG (VoskAPI:ReadDataFiles():model.cc:297) Loading words from C:/Models/vosk-model-de-tuda-0.6-900k/graph/words.txt
LOG (VoskAPI:ReadDataFiles():model.cc:308) Loading winfo C:/Models/vosk-model-de-tuda-0.6-900k/graph/phones/word_boundary.int
LOG (VoskAPI:ReadDataFiles():model.cc:315) Loading subtract G.fst model from C:/Models/vosk-model-de-tuda-0.6-900k/rescore/G.fst
LOG (VoskAPI:ReadDataFiles():model.cc:317) Loading CARPA model from C:/Models/vosk-model-de-tuda-0.6-900k/rescore/G.carpa
ERROR (VoskAPI:ReadInternal():const-arpa-lm.cc:610) ConstArpaLm section reading failed.
Traceback (most recent call last):
File "C:\Speech\Server.py", line 62, in
vosk_model = Model(model_path)
^^^^^^^^^^^^^^^^^
File "C:\Python\Lib\site-packages\vosk_init_.py", line 57, in init
raise Exception("Failed to create a model")
Exception: Failed to create a model

@CactusJack1393 CactusJack1393 changed the title vosk-model-de-tuda-0.6-900k (__init__ raise Exception("Failed to create a model") Exception: Failed to create a model) vosk-model-de-tuda-0.6-900k ((VoskAPI:ReadInternal():const-arpa-lm.cc:610) ConstArpaLm section reading failed) Jul 4, 2024
@nshmyrev
Copy link
Collaborator

nshmyrev commented Jul 4, 2024

Probably G.carpa you downloaded is corrupt. You can download and unpack again.

@CactusJack1393
Copy link
Author

Name: vosk Version: 0.3.45
I did, but it doesn't work.
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 C:/Models/vosk-model-de-tuda-0.6-900k/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:/Models/vosk-model-de-tuda-0.6-900k/graph/HCLG.fst
LOG (VoskAPI:ReadDataFiles():model.cc:297) Loading words from C:/Models/vosk-model-de-tuda-0.6-900k/graph/words.txt
LOG (VoskAPI:ReadDataFiles():model.cc:308) Loading winfo C:/Models/vosk-model-de-tuda-0.6-900k/graph/phones/word_boundary.int
LOG (VoskAPI:ReadDataFiles():model.cc:315) Loading subtract G.fst model from C:/Models/vosk-model-de-tuda-0.6-900k/rescore/G.fst
LOG (VoskAPI:ReadDataFiles():model.cc:317) Loading CARPA model from C:/Models/vosk-model-de-tuda-0.6-900k/rescore/G.carpa
ERROR (VoskAPI:ReadInternal():const-arpa-lm.cc:610) ConstArpaLm section reading failed.
Traceback (most recent call last):
File "C:\Speech\Server.py", line 62, in
vosk_model = Model(model_path)
^^^^^^^^^^^^^^^^^
File "C:\Python\Lib\site-packages\vosk_init_.py", line 57, in init
raise Exception("Failed to create a model")
Exception: Failed to create a model

@nshmyrev
Copy link
Collaborator

nshmyrev commented Jul 4, 2024

Well, probably you don't have enough memory. Use our german model https://alphacephei.com/vosk/models/vosk-model-de-0.21.zip, it is better anyway.

@nshmyrev
Copy link
Collaborator

nshmyrev commented Jul 4, 2024

@CactusJack1393
Copy link
Author

Thanks a lot for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants