Skip to content
Snippets Groups Projects
Commit 6c66ddb7 authored by Lukas Hindemith's avatar Lukas Hindemith
Browse files

added grammar

parent 95256b20
No related branches found
No related tags found
No related merge requests found
[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;
#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);
#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);
#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));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment