For following grammer, is there any option in Pocketsphinx to control depth of search?
for ex:-
if speech contains phrases "oh mighty computer could you kindly please"
is it possible to restrict search till 2nd level so that pocketsphinx returns only "oh mighty computer could you" ?
JSGF V1.0
public <basicCmd> = <startPolite> ;
<startPolite> = (please | kindly | could you | oh mighty computer) *;
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For following grammer, is there any option in Pocketsphinx to control depth of search?
for ex:-
if speech contains phrases "oh mighty computer could you kindly please"
is it possible to restrict search till 2nd level so that pocketsphinx returns only "oh mighty computer could you" ?
JSGF V1.0
public <basicCmd> = <startPolite> ;
<startPolite> = (please | kindly | could you | oh mighty computer) *;
Check
http://cmusphinx.sourceforge.net/doc/sphinx4/edu/cmu/sphinx/jsgf/JSGFGrammar.html
If you have star at the end, then it loops.
The solution I see the easiest would be to add a one more instance and drop the star in both
public <basicCmd> = <startPolite> <endPolite>;
<startPolite> = (please | kindly | could you | oh mighty computer);
<endPolite> = [ please | thanks | thank you ];