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

error trying to compile-graph

Open mshb9999 opened this issue 2 years ago • 6 comments

Hi, I have latest vosk running on ubuntu 20.04, latest kaldi. I downloaded the vosk-model-en-us-0.22-compile, and just added one simple new word to existing extra.txt. I run compile-graph.sh but getting what I think are errors: mkgraph.sh: expected data/lang_test/G.fst to exist expected data/en-mix-small.lm.gz to exist

Attaching full logs. Any help would be appreciated.

And questions, let's say it will compile successfully, what are my next steps? (will it produce a directory with files/folders such as am, conf, graph, ivector) that I can move to the model directory?

error.txt

mshb9999 avatar Jun 07 '22 00:06 mshb9999

Attaching full logs.

The logs are not complete, they start in the middle. From the error it seems you don't have SRILM installed.

And questions, let's say it will compile successfully, what are my next steps? (will it produce a directory with files/folders such as am, conf, graph, ivector) that I can move to the model directory?

Yes

nshmyrev avatar Jun 07 '22 18:06 nshmyrev

I did have it installed successfully but re-installed it again (in /kaldi/tools i run ./install_srilm.sh with my details) and I also run source ./env.sh Then i went again to /vosk-api/python/example/model/vosk-model-en-us-0.22-compile and run ./compile-graph.sh and got the same error.

So it's still not working and hopefully this time I am attaching full logs (for the SRILM installation and vosk model change).

Really appreciate any help. log_srilm_installation.txt log_vosk_compile-graph.txt

mshb9999 avatar Jun 08 '22 00:06 mshb9999

Last line in installation log says you need to add srilm in path. You didn't do that.

nshmyrev avatar Jun 08 '22 07:06 nshmyrev

Thank you but now I am getting something else.

Would you be able to point me in the right direction? error_log_compile_graph.txt

mshb9999 avatar Jun 09 '22 11:06 mshb9999

from the log it compiled correctly

nshmyrev avatar Jun 09 '22 11:06 nshmyrev

But I don't see any directories like am, conf, graph, ivector. I did find in data directory en-mixp.lm.gz (small and extra.lm.gz). When I unzip one, i get file with lm extension (so again, don't see am/conf/graph/ivector).

mshb9999 avatar Jun 09 '22 12:06 mshb9999