diff --git a/psConfig/exercise/dfinnerEx4.conf b/psConfig/exercise/dfinnerEx4.conf new file mode 100644 index 0000000000000000000000000000000000000000..78d5bfff0fd94f46023808e061f8bf23c204bbc7 --- /dev/null +++ b/psConfig/exercise/dfinnerEx4.conf @@ -0,0 +1,21 @@ +[main] +startdb=43; +uttdb=47; +silence=400; +timeout=8; +openDeviceDirectly=yes; +alsadevice=sysdefault; + +[pocketsphinxinstance] +name=confirm; +jsgf=../../psGrammar/confirm/confirm.jsgf; +rsbscope=/speechrec/psa/confirm; +bestpath=no; +autoload=yes; + +[pocketsphinxinstance] +name=dfinnerEx4; +jsgf=../../psGrammar/exercise/dfinnerEx4.jsgf; +rsbscope=/speechrec/psa/speechRecognition; +bestpath=no; +autoload=yes; diff --git a/psGrammar/exercise/dfinnerEx4.jsgf b/psGrammar/exercise/dfinnerEx4.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..4ff85339f3686e6ec9fa9d2d7b8101f922c3635d --- /dev/null +++ b/psGrammar/exercise/dfinnerEx4.jsgf @@ -0,0 +1,11 @@ +#JSGF V1.0; +grammar dfinnerEx4; + +public <dfinnerEx4> = [tobi|tiago] ( <go> | <joke> | <calc> ); + +<calc> = <number> <op> <number>; +<number> = (one|two|three|four|five|six|seven|eight|nine); +<op> = (plus|minus); +<go> = (go to the door); +<joke> = (tell me a joke); +