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

Pocketsphinx - specify a language model

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

pelment gravatar image

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

rosrun pocketsphinx recognizer.py

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
0

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

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

Comments

Thank you! I found language model from Voxforge and tried to run recognizer.py 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 -0500 )edit

Question Tools

2 followers

Stats

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

Seen: 1,466 times

Last updated: Mar 17 '14