Skip to content
Snippets Groups Projects
Commit fd5f1f9e authored by rlipperts's avatar rlipperts
Browse files
parents c16e1f6c f17e8ef4
No related branches found
No related tags found
No related merge requests found
...@@ -21,9 +21,9 @@ bestpath=no; ...@@ -21,9 +21,9 @@ bestpath=no;
autoload=yes; autoload=yes;
[pocketsphinxinstance] [pocketsphinxinstance]
name=removeAddBillItem; name=takeOrder;
jsgf=../../../psGrammar/challenge/nea/removeAddBillItem.jsgf; jsgf=../../../psGrammar/challenge/nea/takeOrder.jsgf;
rsbscope=/speechrec/psa/bill; rsbscope=/speechrec/psa/order;
bestpath=no; bestpath=no;
autoload=yes; autoload=yes;
...@@ -8,7 +8,7 @@ alsadevice=sysdefault; ...@@ -8,7 +8,7 @@ alsadevice=sysdefault;
[pocketsphinxinstance] [pocketsphinxinstance]
name=confirm; name=confirm;
jsgf=../../../psGrammar/confirm/confirm.jsgf; jsgf=../../../psGrammar/challenge/pollen/confirm.jsgf;
rsbscope=/speechrec/psa/confirm; rsbscope=/speechrec/psa/confirm;
bestpath=no; bestpath=no;
autoload=yes; autoload=yes;
...@@ -26,3 +26,10 @@ jsgf=../../../psGrammar/challenge/pollen/setUpBill.jsgf; ...@@ -26,3 +26,10 @@ jsgf=../../../psGrammar/challenge/pollen/setUpBill.jsgf;
rsbscope=/speechrec/psa/pollenbill; rsbscope=/speechrec/psa/pollenbill;
bestpath=no; bestpath=no;
autoload=yes; autoload=yes;
[pocketsphinxinstance]
name=newGuest;
jsgf=../../../psGrammar/challenge/pollen/newGuest.jsgf;
rsbscope=/speechrec/psa/pollenNewGuest;
bestpath=no;
autoload=yes;
...@@ -7,21 +7,35 @@ openDeviceDirectly=yes; ...@@ -7,21 +7,35 @@ openDeviceDirectly=yes;
[pocketsphinxinstance] [pocketsphinxinstance]
name=confirm; name=confirm;
jsgf=../../psGrammar/confirm/confirm.jsgf; jsgf=../../../psGrammar/confirm/confirm.jsgf;
rsbscope= /speechrec/psa/confirm; rsbscope= /speechrec/psa/confirm;
bestpath=no; bestpath=no;
autoload=yes; autoload=yes;
[pocketsphinxinstance] [pocketsphinxinstance]
name=order; name=order;
jsgf=../../psGrammar/challenge/team2/order.jsgf; jsgf=../../../psGrammar/challenge/team2/order.jsgf;
rsbscope= /speechrec/psa/order; rsbscope= /speechrec/psa/order;
bestpath=no; bestpath=no;
autoload=yes; autoload=yes;
[pocketsphinxinstance] [pocketsphinxinstance]
name=table; name=table;
jsgf=../../psGrammar/challenge/team2/table.jsgf; jsgf=../../../psGrammar/challenge/team2/table.jsgf;
rsbscope= /speechrec/psa/table; rsbscope= /speechrec/psa/table;
bestpath=no; bestpath=no;
autoload=yes; autoload=yes;
[pocketsphinxinstance]
name=bill;
jsgf=../../../psGrammar/challenge/team2/bill.jsgf;
rsbscope= /speechrec/psa/bill;
bestpath=no;
autoload=yes;
[pocketsphinxinstance]
name=task5;
jsgf=../../../psGrammar/challenge/team2/task5.jsgf;
rsbscope= /speechrec/psa/task5;
bestpath=no;
autoload=yes;
#JSGF V1.0;
grammar nea;
public <nea> = [tobi|tiago] ( <pre> <ord> );
<pre> = (i want | i would like to have);
<ord> = (<order> | <order> <addOrder>);
<order> = (<drink> | <number> <drink>);
<addOrder> = (<and> <order>);
<drink> = (coke|malz|lemonade|water|ice tea|coffee);
<number> = (one|two|three|four|five|six|seven|eight|nine);
<and> = (and);
#JSGF V1.0; #JSGF V1.0;
grammar pollen; grammar pollen;
public <orderstring> = [<robot>] (<receiveorderstring> | <tablestring>); public <orderstring> = [<robot>] [please] <receiveorderstring> [please];
<receiveorderstring> = bring [me] [a] <drink>; <receiveorderstring> = [bring] [me] [a] <drink>;
<tablestring> = table <table>;
<table> = (a | b);
<drink> = (tea | coke | fanta | water); <drink> = (coke | malz | lemonade | water | ice tea | coffee);
<number> = (one | two | three | four | five | six | seven | eight | nine | zero);
public <confirm> = <confirm_yes> | <confirm_no>;
public <confirm_yes> = <robot> <yes_words>;
public <confirm_no> = <robot> <no_words>;
<yes_words> = (yes) | (confirmed);
<no_words> = (no);
<robot> = (tobi) | (robot) | (biron) | (pepper) | (tiago) | (floka) | (meka); <robot> = (tobi) | (robot) | (biron) | (pepper) | (tiago) | (floka) | (meka);
#JSGF V1.0;
grammar ToBI_confirm;
public <confirm> = <confirm_yes> | <confirm_no>;
<confirm_yes> = [<robot>] <yes_words>;
<confirm_no> = [<robot>] <no_words>;
<yes_words> = (yes) | (confirmed);
<no_words> = (no);
<robot> = (tobi) | (robot) | (biron) | (pepper);
#JSGF V1.0;
grammar newGuest;
public <newGuestString> = [<robot>] [please] <bringme> [please];
<bringme> = [bring] [me] [to] <location>;
<location> = (<registerloc> | <bathroomloc> | <tableloc>);
<registerloc> = [the] <register>;
<register> = cash register;
<bathroomloc> = [the] <bathroom>;
<bathroom> = bathroom;
<tableloc> = [<empty>] <table>;
<empty> = [an] empty;
<table> = [a] table;
<robot> = (floka | meka | robot | tobi | tiago);
...@@ -2,16 +2,18 @@ ...@@ -2,16 +2,18 @@
grammar setUpBill; grammar setUpBill;
public <setUpBillString> = [<robot>] (<setUpBill>|<correctDrinks>|<additionalDrink>); public <setUpBillString> = [<robot>] (<setUpBill>|<correctDrinks>|<additionalDrink>);
<additionalDrink> = <drink> <setUpBill> = [please] [set] [up] [the] bill [please];
<setUpBill> = set up [the] bill [please]; <correctDrinks> = [the] [drinks] [are] <drinks>;
<correctDrinks> = [the] drinks [are] <drinks>;
<drinks> = <drink> <drink> [and] <drink>; <drinks> = <drink> <drink> [and] <drink>;
<additionalDrink> = [i] [also] (drank|had) [a] <drink>; <additionalDrink> = [i] [also] [<drank>|<had>] [a] <drink>;
<had> = had;
<drank> = drank;
<drink> = (water | milk | smoothie | tea); <drink> = (coke | malz | lemonade | water | (ice tea) | coffee);
<robot> = (floka | meka | robot | tobi | tiago); <robot> = (floka | meka | robot | tobi | tiago);
#JSGF V1.0;
grammar bill;
public <command> = ( <setupbill> | <thatscorrect> | <correction> );
<setupbill> = (([tiago] [please]) ((set up the ( bill | check )) | (could i have the ( bill | check )) | (i ( would like | want ) to pay) | (can i pay) | bill) [now] [please]);
<thatscorrect> = ( yes | ([yes] you got that ( right | correct )) | ([yes] that is ( right | correct )) );
<correction> = ([[no] ((i ordered) | (there are))] <drink> [[and] <drink>] [[and] <drink>]);
<drink> = ([ (((a | one) [(bottle | cup | can) of] )) | ((two | three) [(bottles | cups | cans) of]) ] ( coke | malz | lemonade | water | (ice tea) | coffee ));
#JSGF V1.0; #JSGF V1.0;
grammar ordering; grammar ordering;
public <ordering> = [tobi] <order>; public <ordering> = [tobi] <order>;
public <table> = [at table] <number>;
<order> = [please] bring [me a] <drink>; <order> = [please] bring [me] [a] <drink>;
<drink> = (coconut_milk | tea | coke | fanta | water | orange_juice); <drink> = (coke | malz | lemonade | water | (ice tea) | coffee);
<number> = (a | b);
#JSGF V1.0; #JSGF V1.0;
grammar table; grammar table;
public <table> = [tobi] <place>; public <table> = <place>;
<place> = [[please] go to table] <number>; <place> = table <number>;
<number> = (a | b); <number> = (a | b);
#JSGF V1.0;
grammar task5;
public <sentence> = [<robot>] [please] <command> <location>;
<robot> = (tiago|tobi);
<command> = (((bring | take) me to) | (where (is | can i find )) | i want to go to);
<location> = (the <bathroom> | table <table> | the <cashRegister>);
<bathroom> = (bathroom | toilet);
<cashRegister> = (cashier | ([cash] register));
<table> = (a|b|c);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment