diff --git a/ps-config/restaurant/restaurant.conf b/ps-config/restaurant/restaurant.conf index e503799a4d9626645d1f01952cc4000ae64e3370..6f55b9ae15b8bc6d43eb09d7ab6076aa2ac929bf 100644 --- a/ps-config/restaurant/restaurant.conf +++ b/ps-config/restaurant/restaurant.conf @@ -19,6 +19,13 @@ rsbscope=/speechrec/psa/ordering; bestpath=no; autoload=yes; +[pocketsphinxinstance] +name=ordering; +jsgf=../../psGrammar/restaurant/goTable.jsgf; +rsbscope=/speechrec/psa/goTable; +bestpath=no; +autoload=yes; + [pocketsphinxinstance] name=saveCommand; jsgf=../../psGrammar/restaurant/saveTable.jsgf; diff --git a/ps-grammar/restaurant/goTable.jsgf b/ps-grammar/restaurant/goTable.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..97167a22b93ebf451419df9cd2ace32be342d7c6 --- /dev/null +++ b/ps-grammar/restaurant/goTable.jsgf @@ -0,0 +1,6 @@ +#JSGF V1.0; +grammar restaurant_save_command; + +public <restaurant> = [tobi] [please] [(take a oder from) | (go to)] <deliveryLocations> [please]); +<deliveryLocations> = table <numberOfTable>; +<numberOfTable> = one | two | three; \ No newline at end of file diff --git a/ps-grammar/restaurant/order.jsgf b/ps-grammar/restaurant/order.jsgf index 855787cbf4aa42c1ee203cc61cb40db5de3b008c..66e5aa602972cefae3fb5a365f1b96b160446f3a 100644 --- a/ps-grammar/restaurant/order.jsgf +++ b/ps-grammar/restaurant/order.jsgf @@ -1,13 +1,9 @@ #JSGF V1.0; grammar restaurant_ordering; -public <restaurant> = [tobi] [please] bring <objects> to <deliveryLocations>; +public <restaurant> = [tobi] [one | a ] <objects> [please]; -<deliveryLocations> = table <numberOfTable>; +<objects> = <drinks> | <combo>; -<numberOfTable> = one | two | three; - -<objects> = <drinks> | <snacks>; - -<drinks> = (orange juice) | beer | cola | (chocolate milk) | (energy drink) | (grape juice) | milk | water; -<snacks> = (chocolate cookies) | chips | biscuits | bread | pringles | (strawberry cookies); +<drinks> = coke; +<combo> = steak;