diff --git a/psConfig/tasks/gpsr2/gpsr2.conf b/psConfig/tasks/gpsr2/gpsr2.conf index 7a4d09f1db304bb602c181bfd653dafe79cc2a35..85ec3170faa44ce6b283d4f634fc023c7ea53251 100644 --- a/psConfig/tasks/gpsr2/gpsr2.conf +++ b/psConfig/tasks/gpsr2/gpsr2.conf @@ -42,7 +42,7 @@ autoload=yes; [pocketsphinxinstance] name=Objects; dict=../../../psGrammar/dictionary/tobiDic.dic; -jsgf=../../../psGrammar/object/object.jsgf; +jsgf=../../../psGrammar/tasks/gpsr/objects.jsgf; rsbscope=/speechrec/psa/object; bestpath=no; autoload=yes; @@ -50,7 +50,7 @@ autoload=yes; [pocketsphinxinstance] name=Locations; dict=../../../psGrammar/dictionary/tobiDic.dic; -jsgf=../../../psGrammar/location/location.jsgf; +jsgf=../../../psGrammar/tasks/gpsr/locations.jsgf; rsbscope=/speechrec/psa/location; bestpath=no; autoload=yes; diff --git a/psGrammar/tasks/gpsr/gpsr2.jsgf b/psGrammar/tasks/gpsr/gpsr2.jsgf index 6f2566da8bb6ee3784ebd520a9cefeaa077f8292..b883aeb3602d704a041109f5820c356ce30052d3 100644 --- a/psGrammar/tasks/gpsr/gpsr2.jsgf +++ b/psGrammar/tasks/gpsr/gpsr2.jsgf @@ -33,7 +33,7 @@ public <sentence> = ([tobi | biron] <VP1> [([and|then] <VP2>)] [([and|then] <VP3 <takeObjFromLoc> = <V_take> (<NP_object> | <NP_objectpron>) <takePrep> <NP_place>; <takePrsnFromLoc> = <V_take> (<NP_person> | <NP_personalpron>) <takePrep> <NP_place>; -<takeObjToObj> = <V_take> <NP_object> to <NP_object>; +<takeObjToObj> = <V_take> (<NP_object> | <NP_objectpron>) <deliverPrep> (<NP_object> | <NP_objectpron>); <deliverObjToPrsInLoc> = <V_deliver> (<NP_object> | <NP_objectpron>) <deliverPrep> (<NP_person> | <NP_personalpron>) <Prep> <NP_place>; @@ -55,7 +55,7 @@ public <sentence> = ([tobi | biron] <VP1> [([and|then] <VP2>)] [([and|then] <VP3 <NP_answer> = <N_answer>; -<N_place> = (bedroom | chair | (kitchen trashbin) | fridge | bed | nightstand | closet | kitchen | (kitchen counter) | sink | (hallway trashbin) | (tv stand) | livingroom | couch | sideboard | bookcase | (dinner table) | (dinner chair) | (dinner chairs)); +<N_place> = (bedroom | chair | fridge | bed | nightstand | closet | kitchen |(kitchen trashbin) | (kitchen counter) | sink | (hallway trashbin) | (tv stand) | livingroom | couch | sideboard | bookcase | (dinner table) | (dinner chair) | (dinner chairs)); <N_object> = (apple | avocado | bowl | (chocolate sprinkles) | cloth | (dishwashing soap) | (kinder coke) | lemon | licorice | (little bananas) | macaroni | milk | (pineapple cookies) | paprika | plate | rice | smoothie | soap | sponge | (storage box) | (strawberry cookies) | tea | (toilet paper) | tuc | wafer | water| (<N_random_object> object) | (<N_random_object> thing) | (<N_random_object> box)); <N_random_object> = (<color> | <shape> | <color> <shape> | <shape> <color> ); @@ -71,6 +71,6 @@ public <sentence> = ([tobi | biron] <VP1> [([and|then] <VP2>)] [([and|then] <VP3 <N_personalpron> = her | him | his | them | their; <N_objectpron> = it; -<N_names> = (emma | olivia | sophia | isabella | ava | mia | emily | abigail | madison | charlotte | noah | liam | mason | jacob | william | ethan | michael | alexander | james | daniel | person |(calling person) | me); +<N_names> = (emma | olivia | sophia | isabella | ava | mia | emily | abigail | madison | charlotte | noah | liam | mason | jacob | william | ethan | michael | alexander | james | daniel | person |(calling person) | (waving person) | me); <N_talk> = (your name) | (the name of your team) | (the time) | (what time is it) | (the date) | (what day is today) | (what day is tomorrow) | (the day of the month) | (the day of the week); <N_answer> = (a question) | (question); diff --git a/psGrammar/tasks/gpsr/locations.jsgf b/psGrammar/tasks/gpsr/locations.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..0ebb3a390c927df9676ce320de135f971dae7942 --- /dev/null +++ b/psGrammar/tasks/gpsr/locations.jsgf @@ -0,0 +1,6 @@ +#JSGF V1.0; +grammar speechRecognition; + +public <sentence> = (the <N_place> ) | <N_place> ; + +<N_place> = (bedroom | chair | fridge | bed | nightstand | closet | (kitchen trashbin) | (kitchen counter) | kitchen | sink | (hallway trashbin) | (tv stand) | livingroom | couch | sideboard | bookcase | (dinner table) | (dinner chair) | (dinner chairs)); diff --git a/psGrammar/tasks/gpsr/objects.jsgf b/psGrammar/tasks/gpsr/objects.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..231549afc4786c289f02c9f2433bb2fe686fd29d --- /dev/null +++ b/psGrammar/tasks/gpsr/objects.jsgf @@ -0,0 +1,10 @@ +#JSGF V1.0; +grammar speechRecognition; + +public <sentence> = (the <N_object>) | (a <N_object>) | (an <N_object>) | (<N_object>); + +<N_object> = (apple | avocado | bowl | (chocolate sprinkles) | cloth | (dishwashing soap) | (kinder coke) | lemon | licorice | (little bananas) | macaroni | milk | (pineapple cookies) | paprika | plate | rice | smoothie | soap | sponge | (storage box) | (strawberry cookies) | tea | (toilet paper) | tuc | wafer | water| (<N_random_object> object) | (<N_random_object> thing) | (<N_random_object> box)); + +<N_random_object> = (<color> | <shape> | <color> <shape> | <shape> <color> ); +<color> = (green | red | blue | black | white | yellow | purple | pink | brown | orange); +<shape> = (round | angular | edgy | little | small | big | huge);