diff --git a/psConfig/exercise/psConfig_jniermann.conf b/psConfig/exercise/psConfig_jniermann.conf index 7e3a0a53c774d932d0d2ce8661ed2dbb72bcad3e..c9a11c9ec0ad340253042cb40ddc541f78b8c291 100644 --- a/psConfig/exercise/psConfig_jniermann.conf +++ b/psConfig/exercise/psConfig_jniermann.conf @@ -19,4 +19,12 @@ rsbscope= /speechrec/psa/grammar_jniermann; bestpath=no; autoload=yes; +[pocketsphinxinstance] +name=calculator; +jsgf=../../psGrammar/exercise/calculatorGrammar_jniermann.jsgf; +rsbscope= /speechrec/psa/calculatorGrammar_jniermann; +bestpath=no; +autoload=yes; + + diff --git a/psGrammar/exercise/calculatorGrammar_jniermann.jsgf b/psGrammar/exercise/calculatorGrammar_jniermann.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..91b593c436b5eeb26511bdabd8f7167e989deb48 --- /dev/null +++ b/psGrammar/exercise/calculatorGrammar_jniermann.jsgf @@ -0,0 +1,8 @@ +#JSGF V1.0; +grammar calc; +public <calc> =(<add> | <sub>) <num> [and] <num>; + +<num> = (one|two|three|four|five|six|seven|eight|nine|zero); +<add> = (add); +<sub> = (sub); +