diff --git a/psConfig/tasks/restaurant/restaurant.conf b/psConfig/tasks/restaurant/restaurant.conf index 18b2ca02b487ccfbd69e8a83bad58d353961a11b..a3331785829fc249b7155d31bdb459eb2892dbda 100644 --- a/psConfig/tasks/restaurant/restaurant.conf +++ b/psConfig/tasks/restaurant/restaurant.conf @@ -27,3 +27,9 @@ rsbscope=/speechrec/psa/goTable; bestpath=no; autoload=yes; +[pocketsphinxinstance] +name=anotherGuest; +jsgf=../../../psGrammar/tasks/restaurant/anotherGuest.jsgf; +rsbscope=/speechrec/psa/anotherGuest; +bestpath=no; +autoload=yes; diff --git a/psGrammar/tasks/restaurant/anotherGuest.jsgf b/psGrammar/tasks/restaurant/anotherGuest.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..8cf4e86536ee570d19e4ace8aa871756b212c16e --- /dev/null +++ b/psGrammar/tasks/restaurant/anotherGuest.jsgf @@ -0,0 +1,9 @@ +#JSGF V1.0; +grammar restaurant_save_command; + +public <restaurant> = [<title>] (<wait> | <stop>); + +<title> = tobi | biron; + +<wait> = wait; +<stop> = stop; diff --git a/psGrammar/tasks/restaurant/goTable.jsgf b/psGrammar/tasks/restaurant/goTable.jsgf index 86708d3c17de9ca897a4eed7b8911de15f3ae205..8df72071d48c7bd6c8d650b05242f8c341d34dc2 100644 --- a/psGrammar/tasks/restaurant/goTable.jsgf +++ b/psGrammar/tasks/restaurant/goTable.jsgf @@ -1,11 +1,16 @@ #JSGF V1.0; grammar restaurant_save_command; -public <restaurant> = <title> (<go> | <wait>); -<title> = <tobititle> | <robottitle>; +public <restaurant> = (<tobigo> | <tobiwait> | <robotgo> | <robotwait>); + +<tobigo> = <tobititle> <go>; +<tobiwait> = <tobititle> <wait>; + +<robotgo> = <robottitle> <go>; +<robotwait> = <robottitle> <wait>; <tobititle> = tobi | biron; -<robottitle> = robot; +<robottitle> = lisa | homer | sergio | amigo; <go> = [please] (take the order) [please]; <wait> = wait | stop; diff --git a/psGrammar/tasks/restaurant/order.jsgf b/psGrammar/tasks/restaurant/order.jsgf index 7f6727a3da57b90c9930e0448af465e8cbd3b0e3..c0a79ded1bdb87eed0663e816450ca10660bc216 100644 --- a/psGrammar/tasks/restaurant/order.jsgf +++ b/psGrammar/tasks/restaurant/order.jsgf @@ -6,5 +6,5 @@ public <restaurant> = ([tobi] [bring me] [one | a ] <objects> [please]); <objects> = (<drinks> | <combo>); <combo> = (<food> (and | with) <food>); -<drinks> = ((coconut milk) | (beer) | (coke) | (tea)); -<food> = ((apple) | (paprika) | (pumpernickel) | (chips) | (pretzels) | (pringles) | (biscuits) | (choco syrup) | (baby sweets) | (egg)); +<drinks> = ((banana milk) | (cappuccino) | (coke) | (orange drink) | (water)); +<food> = ((apple) | (bread) | (cereals) | (pear) | (chocolate cookies) | (party cracker) | (corn flakes) | (crackers) | (lemon) | (noodles) | (pepper) | (potato soup) | (potato) | (pringles) | (salt) | (tomato pasta) | (egg));