diff --git a/psConfig/tasks/restaurant/restaurant.conf b/psConfig/tasks/restaurant/restaurant.conf new file mode 100644 index 0000000000000000000000000000000000000000..18b2ca02b487ccfbd69e8a83bad58d353961a11b --- /dev/null +++ b/psConfig/tasks/restaurant/restaurant.conf @@ -0,0 +1,29 @@ +[main] +startdb=30; +uttdb=35; +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=ordering; +jsgf=../../../psGrammar/tasks/restaurant/order.jsgf; +rsbscope=/speechrec/psa/ordering; +bestpath=no; +autoload=yes; + +[pocketsphinxinstance] +name=goTable; +jsgf=../../../psGrammar/tasks/restaurant/goTable.jsgf; +rsbscope=/speechrec/psa/goTable; +bestpath=no; +autoload=yes; + diff --git a/psConfig/tasks/setTable/setTable.conf b/psConfig/tasks/setTable/setTable.conf new file mode 100644 index 0000000000000000000000000000000000000000..c5acbbe3035d291c8ec2d379949e14d617324d17 --- /dev/null +++ b/psConfig/tasks/setTable/setTable.conf @@ -0,0 +1,31 @@ +[main] +startdb=43; +uttdb=47; +silence=400; +timeout=8; +openDeviceDirectly=yes; +alsadevice=sysdefault; + +[pocketsphinxinstance] +name=setTable; +jsgf=../../../psGrammar/tasks/setTable/setTable.jsgf; +rsbscope=/speechrec/psa/setTable; +bestpath=no; +autoload=yes; + +[pocketsphinxinstance] +name=choice; +jsgf=../../../psGrammar/tasks/setTable/choice.jsgf; +rsbscope=/speechrec/psa/choice; +bestpath=no; +autoload=yes; + +[pocketsphinxinstance] +name=commands; +jsgf=../../../psGrammar/confirm/confirm.jsgf; +rsbscope=/speechrec/psa/confirm; +bestpath=no; +autoload=yes; + + + diff --git a/psGrammar/tasks/restaurant/commands.jsgf b/psGrammar/tasks/restaurant/commands.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..6b556526ec73eaee6344d57abd7dd32f592237c7 --- /dev/null +++ b/psGrammar/tasks/restaurant/commands.jsgf @@ -0,0 +1,9 @@ +#JSGF V1.0; +grammar restaurant_save_command; + +public <restaurant> = [tobi] [please] (<followMe> | <stop> | <place> | <table>); +<followMe> = ((follow me) | (come [(with me) | here]) | (keep up)); +<stop> = (stop [this]); +<place> = (save (place | location)); +<table> = (this [is] table <number>); +<number> = (one | two | three); diff --git a/psGrammar/tasks/restaurant/goTable.jsgf b/psGrammar/tasks/restaurant/goTable.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..5b8c727fce4aa4ae6ed0c92839302c9eafde7d3a --- /dev/null +++ b/psGrammar/tasks/restaurant/goTable.jsgf @@ -0,0 +1,9 @@ +#JSGF V1.0; +grammar restaurant_save_command; + +public <restaurant> = <nameGo> | <robotGo> | <nameWait> | <robotWait>; +<nameGo> = [tobi|biron] (([please] (take the order) [please])| yes); +<robotGo> = robot (([please] (take the order) [please])| yes); +<nameWait> = [tobi|biron] (([please] wait [please])| no); +<robotWait> = robot (([please] wait [please])| no); + diff --git a/psGrammar/tasks/restaurant/order.jsgf b/psGrammar/tasks/restaurant/order.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..7f6727a3da57b90c9930e0448af465e8cbd3b0e3 --- /dev/null +++ b/psGrammar/tasks/restaurant/order.jsgf @@ -0,0 +1,10 @@ +#JSGF V1.0; +grammar restaurant_ordering; + +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)); diff --git a/psGrammar/tasks/setTable/choice.jsgf b/psGrammar/tasks/setTable/choice.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..31f434a1a22814bd44c3398916496c97de6b3251 --- /dev/null +++ b/psGrammar/tasks/setTable/choice.jsgf @@ -0,0 +1,7 @@ +#JSGF V1.0; +grammar choice; + +public <command> = [<robot>] ((i (would like | want) [to have]) | set the table with) (<cereals> | <pringles>); +<robot> = (tobi | biron); +<cereals> = cereals; +<pringles> = pringles; diff --git a/psGrammar/tasks/setTable/setTable.jsgf b/psGrammar/tasks/setTable/setTable.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..65700d90bf93376bd6beb09b7bf5a63c0a00d4da --- /dev/null +++ b/psGrammar/tasks/setTable/setTable.jsgf @@ -0,0 +1,7 @@ +#JSGF V1.0; +grammar setTable; + +public <command> = [<robot>] (<start> | <cleanup>); +<robot> = (tobi | biron); +<start> = (start the task | set the table); +<cleanup> = [please] clean [up] the table [please];