diff --git a/psConfig/demos/CoffeeCycle.conf b/psConfig/demos/CoffeeCycle.conf new file mode 100644 index 0000000000000000000000000000000000000000..8706668b93e70d126e414f89f8bddaa8e5e68de1 --- /dev/null +++ b/psConfig/demos/CoffeeCycle.conf @@ -0,0 +1,28 @@ +[main] +startdb=50; +uttdb=55; +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=orderCoffee; +jsgf=../../psGrammar/demos/orderCoffee.jsgf; +rsbscope=/speechrec/psa/orderCoffee; +bestpath=no; +autoload=yes; + +[pocketsphinxinstance] +name=getCalled; +jsgf=../../psGrammar/demos/getCalled.jsgf; +rsbscope=/speechrec/psa/getCalled; +bestpath=no; +autoload=yes; diff --git a/psConfig/demos/demoDynamic.conf b/psConfig/demos/demoDynamic.conf index c815607aee60353aa3f8e1d5d63a4b4a01b25c21..987d7096eeecb55055dd0f6ca2b2a9716ff5a011 100644 --- a/psConfig/demos/demoDynamic.conf +++ b/psConfig/demos/demoDynamic.conf @@ -1,6 +1,6 @@ [main] -startdb=43; -uttdb=47; +startdb=50; +uttdb=55; silence=400; timeout=8; openDeviceDirectly=yes; @@ -53,4 +53,4 @@ name=bringObject; jsgf=../../psGrammar/demos/bringObject.jsgf; rsbscope=/speechrec/psa/bring_object; bestpath=no; -autoload=yes; \ No newline at end of file +autoload=yes; diff --git a/psGrammar/demos/getCalled.jsgf b/psGrammar/demos/getCalled.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..208f355b8bd81e28326a1c6f300889e2b43f41c7 --- /dev/null +++ b/psGrammar/demos/getCalled.jsgf @@ -0,0 +1,7 @@ +#JSGF V1.0; +grammar getCalled; + +public <call> = <robot>; + +<robot> = (tobi | robot | tiago); + diff --git a/psGrammar/demos/orderCoffee.jsgf b/psGrammar/demos/orderCoffee.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..0834937bdec7515c057d2d7a363daa3b3c90dfc4 --- /dev/null +++ b/psGrammar/demos/orderCoffee.jsgf @@ -0,0 +1,8 @@ +#JSGF V1.0; +grammar orderCoffee; + +public <orderCoffee> = ([<robot>] [please] (give | bring | make) me (a | the) <drink>); + +<drink> = (coffee); + +<robot> = (tobi | robot | tiago);