Skip to content
Snippets Groups Projects
Commit d9a6cd71 authored by skoester's avatar skoester
Browse files

gpsr config/grammar added

parent 4a84f7d1
No related branches found
No related tags found
No related merge requests found
[main]
startdb=43;
uttdb=47;
silence=400;
timeout=8;
openDeviceDirectly=yes;
[pocketsphinxinstance]
name=gpsr;
hmm=../../../pocketsphinx/model/en-us/en-us;
dict=../../psGrammar/dictionary/tobiDic.dic;
jsgf=../../psGrammar/gpsr/gpsr.jsfg;
rsbscope=/speechrec/psa/gpsr;
bestpath=no;
autoload=yes;
#JSGF V1.0;
grammar ToBI_GPSR;
public <task> = (<location_task> | <item_task> | <interact_task>);
<location_task> = (<nav_commands> [the] (<locations> | <objects>) [[(and | then)] <task>]);
<locations> = (kitchen | bathroom);
<nav_commands> = (((move | go | navigate) to) | exit | leave);
<objects> = (shelf);
<item_task> = ((<interact_item> | <move_item> | <transport_item>) [[(and | then)] <task>]);
<interact_item> = (<search_commands> [the] <items> [[and] <move_item>]);
<move_item> = (<move_commands> (([the | this] <items>) | it | them ));
<transport_item> = ([and] <transport_commands> [it | them] [<item_destination>]);
<item_destination> = ([to] [the] ((<person> [(at the <locations>)])| <locations>));
<items> = (coffee);
<search_commands> = (identify | detect | find | count);
<move_commands> = (get | take | grasp );
<transport_commands> = (bring | carry | retrieve);
<interact_task> = ((<talk_commands> | <interact_with_person>) [[(and | then)] <task>]);
<interact_with_person> = (<memory_commands> [the | a | it] <person> [(in front of you) | to | (a question)]);
<person> = (tobi | yourself);
<talk_commands> = ((introduce | (tell something about)) <person>);
<memory_commands> = (tell | follow | memorize | find | report | answer);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment