Skip to content
Snippets Groups Projects
Commit 72ca3d84 authored by cstollen's avatar cstollen
Browse files

Add grammars and configs for speechrec

parent 15c64e87
No related branches found
No related tags found
No related merge requests found
[main]
startdb=30;
uttdb=35;
silence=400;
timeout=8;
openDeviceDirectly=yes;
[pocketsphinxinstance]
name=goto;
jsgf=../../../psGrammar/exercise/cstollen/goto.jsgf;
rsbscope=/speechrec/psa/goto;
bestpath=no;
autoload=yes;
[pocketsphinxinstance]
name=telljoke;
jsgf=../../../psGrammar/exercise/cstollen/telljoke.jsgf;
rsbscope=/speechrec/psa/telljoke;
bestpath=no;
autoload=yes;
[pocketsphinxinstance]
name=confirm;
jsgf=../../../psGrammar/exercise/cstollen/confirm.jsgf;
rsbscope=/speechrec/psa/confirm;
bestpath=no;
autoload=yes;
[pocketsphinxinstance]
name=calculator;
jsgf=../../../psGrammar/exercise/cstollen/calculator.jsgf;
rsbscope=/speechrec/psa/calculator;
bestpath=no;
autoload=yes;
#JSGF V1.0;
grammar calculator;
public <calcstring> = <robot> calculate <number> (plus | minus) <number>;
<number> = (one | two | three | four | five | six | seven | eight | nine | zero);
<robot> = (floka | meka | robot | tobi);
#JSGF V1.0;
grammar jUP_confirm;
public <confirm> = (<confirm_yes> | <confirm_no>);
<confirm_yes> = <yes_words>;
<confirm_no> = <no_words>;
<yes_words> = (yes | confirm | confirmed | right | correct);
<no_words> = (no | nope | wrong | incorrect);
#JSGF V1.0;
grammar jUP_confirm;
public <confirm> = [<robot>] [(that is [a]) | (you got that)] (<confirm_yes> | <confirm_no>) [<robot>];
<confirm_yes> = <yes_words>;
<confirm_no> = <no_words>;
<yes_words> = (yes | confirmed | right | correct);
<no_words> = (no | nope | wrong | incorrect);
<robot> = (floka | meka | robot);
#JSGF V1.0;
grammar ToBI_commands;
public <statement> = <robot> go to the door;
<robot> = (tobi | tiago);
#JSGF V1.0;
grammar ToBI_commands;
public <statement> = tobi tell me a joke;
#JSGF V1.0;
grammar jUP_thanks;
public <statement> = [<robot>] (thanks | (thank you [for (the | my) <drink>])) [[(that is) | how] [very] (nice | sweet) [of you]] [<robot>];
<drink> = (fanta | coke | milk | (orange juice) | water);
<robot> = (floka | meka | robot);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment