ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Language model with grammar for Pocketsphinx

asked 2012-12-02 07:10:36 -0500

Kinna gravatar image


Does anyone know if there's a way to include grammar in the language model for Pocketsphinx? Either by using a jsgf-file or something else.

Any ideas would be appreciated.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-12-02 11:56:57 -0500

fergs gravatar image

The Pocketsphinx ROS package is based on gstreamer's pocketsphinx plugin. As far as I know, this does not accept the jsgf-files. This question has come up a few times, but as far as I know, nobody has found a way to make it work.

edit flag offensive delete link more

answered 2013-04-18 04:01:55 -0500

Jordi Adell gravatar image

I am using pocketsphinx wih JSGF files. But I am not using the gstreamer bridge. You can execute: pocketsphinx_continuous with the -jsgf option to pass the grammar file. You need to find the call to pocketsphinx in the code.

An other options is to convert the JSGF grammar file to a FSG file using the tool provided with SphinxBase: sphinx_jsgf2fsg

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-12-02 07:10:36 -0500

Seen: 6,325 times

Last updated: Apr 18 '13