ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Pocketsphinx - specify a language model

asked 2014-03-17 01:05:25 -0600

pelment gravatar image

I installed pocketsphinx, but I don't know how to use it. I try to run python script:

rosrun pocketsphinx

and have the following output:

[ERROR] [WallTime: 1395053854.598681] Please specify a language model file or a fsg grammar file.

What shall I do? How can I specify this model?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-03-17 02:35:30 -0600

makokal gravatar image

You indeed need to build a language model.

Go to CMU Sphinx tutorial page for this. There is also a web tool which is very helpful in this Language model web service.

The tutorial explains further instructions on how to convert and use the model

edit flag offensive delete link more


Thank you! I found language model from Voxforge and tried to run with parameters -dict /home/sphinx/msu_ru_nsh.dic -lm /home/sphinx/msu_ru_nsh.lm.dmp . But nothing changed. The output of command showed me that pocketsphinx already uses wsj model, but if there exists any model, why the error I noticed appears always?

pelment gravatar image pelment  ( 2014-03-23 22:16:38 -0600 )edit

Question Tools



Asked: 2014-03-17 01:05:25 -0600

Seen: 1,441 times

Last updated: Mar 17 '14