pgaval / unimrcp

Automatically exported from code.google.com/p/unimrcp
Apache License 2.0
0 stars 0 forks source link

pocketsphinx plugin: accept language model through MRCPRecog #119

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The line 352 has the JSGF hardcoded:
http://code.google.com/p/unimrcp/source/browse/trunk/plugins/mrcp-pocketsphinx/s
rc/mrcp_pocketsphinx.c#352

"-jsgf", grammar,"

It would be nice if this plugin accepts not only JSGF but Language Model (LM).

As I'm not a C programmer I just hardcoded a solution (See this thread at 
unimrcp google group: 
https://groups.google.com/forum/#!msg/unimrcp/iOZI1q242g4/qFvSWIuozUcJ)

But it would be nice to use "jsgf" or "lm" configured it in MRCPRecog call.

The variable "grammar" has only the compiled grammar and it (of course) dos not 
work as a LM.

Original issue reported on code.google.com by robert.k...@oocorp.net on 15 Feb 2011 at 6:59

GoogleCodeExporter commented 9 years ago

Original comment by achalo...@gmail.com on 7 Mar 2013 at 8:43