Skip to content
Snippets Groups Projects
Commit 67af7f52 authored by rfeldhans's avatar rfeldhans
Browse files

added grammer and config for speechrec task

parent 4246a589
No related branches found
No related tags found
No related merge requests found
[main]
startdb=43;
uttdb=47;
silence=400;
timeout=8;
openDeviceDirectly=yes;
alsadevice=sysdefault;
[pocketsphinxinstance]
name=speechRecognition;
dict=../../../psGrammar/dictionary/tobiDic.dic;
jsgf=../../../psGrammar/tasks/speechrec/questions.jsgf;
rsbscope=/speechrec/psa/speechRecognition;
bestpath=no;
autoload=yes;
[main]
startdb=43;
uttdb=47;
silence=400;
timeout=8;
openDeviceDirectly=yes;
alsadevice=sysdefault;
[pocketsphinxinstance]
name=speechRecognition;
dict=../../../psGrammar/dictionary/tobiDic.dic;
jsgf=../../../psGrammar/tasks/speechrec/questions.jsgf;
rsbscope=/speechrec/psa/speechRecognition2;
bestpath=no;
autoload=yes;
#JSGF V1.0;
grammar questions;
public <question> = <questionword> [<fillword>] <condition> [<fillword>] <questioned> | <questionword> [<fillword>] <questioned> [fillword] <condition> | <exception> | <predefquestion>;
<questionword> = what | where;
<condition> = smallest | biggest | heaviest | lightest | <feature>;
<feature> = color | shape | size | type | weight | category | (location | predefined location);
<fillword> = is the | of the;
<exception> = am i a man or [a] woman;
<object> = objects | rice | apple;
<categories> = cleaning stuff;
<location> = (dining | living) room | closet | shelf | arena;
<predefquestion> = <predef1> | <predef2> | <predef3> | <predef4> | <predef5> | <predef6> | <predef7> | <predef8> | <predef9> | <predef10>;
<predef1> = what day is today;
<predef2> = what is your name;
<predef3> = what is your teams name;
<predef4> = what time is it;
<predef5> = in which year was (the robocup | robocup at home) founded;
<predef6> = what was the last question;
<predef7> = what day is today;
<predef8> = what day is today;
<predef9> = what day is today;
<predef10> = what day is today;
#JSGF V1.0;
grammar questions;
public <question> = <quest_crowd> | <quest_arena> | <quest_obj> | <quest_predef>;
public <quest_predef> = <predef1> | <predef2> | <predef3> | <predef4> | <predef5> | <predef6> | <predef7> | <predef8> | <predef9> | <predef10>;
<predef1> = what day is today;
<predef2> = what is your name;
<predef3> = what is your teams name;
<predef4> = what time is it;
<predef5> = in which year was [the] (robocup | robocup at home) founded;
<predef6> = what was the last question;
<predef7> = what day is today one;
<predef8> = what day is today two;
<predef9> = what day is today three;
<predef10> = what day is today four;
public <quest_arena> = <arena1> | <arena2> | <arena3> | <arena4>;
<arena1> = where is the <location> ;
<arena2> = in which room is the <location>;
<arena3> = how many doors has the <room>;
<arena4> = how many <location> are in the <room>;
<quest_obj> = <obj1> | <obj2> | <obj3> | <obj4> | <obj5> | <obj6> | <obj7> | <obj8> | <obj9>;
<obj1> = where can i find [a | the] (<object> | <category>);
<obj2> = how many <category> (there are | are there);
<obj3> = whats the <property> of the <object>;
<obj4> = how many (<category> | objects) are (in | on | at | around | by) the <location>;
<obj5> = what objects are stored (in | on | at | around | by) the <location>;
<obj6> = to which category (belong | belongs) the <object>;
<obj7> = do [the] <object> and the [the] <object> belong to the same category;
<obj8> = which is the <adjektiv_sup> (<category> | object);
<obj9> = between [the] <object> and [the] <object> which one is the <adjektiv_compare>;
<adjektiv_sup> = heaviest | lightest | biggest | smallest;
<adjektiv_compare> = heavier | lighter | bigger | smaller;
public <quest_crowd> = <crowd1> | <crowd2> | <crowd3> | <crowd4> | <crowd5> | <crowd6>;
<crowd1> = how many <people> are in the crowd;
<crowd2> = how many people in the crowd are (<poses> | <gesture>);
<crowd3> = tell me the number of <people> in the crowd;
<crowd4> = the <poses> person was <people_gender_singular>;
<crowd5> = tell me if the (<pospr> | <gesture>) person was a <people_gender_singular>;
<crowd6> = tell me how many people were wearing <color>;
<people> = <people_age> | <people_gender>;
<people_age> = children | adults | elders;
<people_gender> = males | females | men | women | boys | girls;
<people_gender_singular> = male | female | man | woman | boy | girl;
<people_gender_dist> = male or female | man or woman | boy or girl;
<poses> = <pospr> | standing or sitting | standing or lying | sitting or lying;
<pospr> = standing | sitting | lying;
<color> = red | blue | white | black | green | yellow;
<location> = closet | shelf | arena;
<room> = (dining | living) room;
<object> = rice | cloth;
<property> = color | shape | size | type | weight | category | location;
<category> = washing stuff | food;
<gesture> = waving | raising left arm | raising right arm | pointing left | pointing right;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment