Skip to content
Snippets Groups Projects
Commit e0e84a80 authored by Jan Patrick Nülle's avatar Jan Patrick Nülle
Browse files

new grammars and config

parent e9145bb3
Branches
Tags
No related merge requests found
......@@ -4,11 +4,18 @@ uttdb=47;
silence=400;
timeout=8;
openDeviceDirectly=yes;
alsadevice=sysdefault;
[pocketsphinxinstance]
name=confirm;
jsgf=../../../psGrammar/exercise/team2/team2.jsgf;
rsbscope=/speechrec/psa/team2;
jsgf=../../../psGrammar/exercise/team2/confirm.jsgf;
rsbscope=/speechrec/psa/confirm;
bestpath=no;
autoload=yes;
[pocketsphinxinstance]
name=confirm;
jsgf=../../../psGrammar/exercise/team2/shirtcolor.jsgf;
rsbscope=/speechrec/psa/shirtcolor;
bestpath=no;
autoload=yes;
#JSGF V1.0;
grammar ToBI_confirm;
public <team2> = <confirm> | <greeting>;
<shirtcolor> = <robots> <sentence_blocks> <shirtcolor> shirt
<greeting> = (red) | (blue) | (yellow) | (green) | (black) | (white) | (orange) | (purple) | (pink) | (grey)
<sentence_blocks> = he wears a
<confirm> = <confirm_yes> | <confirm_no>;
public <confirm> = <confirm_yes> | <confirm_no>;
<confirm_yes> = <robot> <yes_words>;
<confirm_no> = <robot> <no_words>;
......
#JSGF V1.0;
grammar ToBI_jnuelle;
public <jnuelle> = [tobi] <compute> <number> <add> <number>;
<compute> = (compute) | (calculate);
<number> = (zero) | (one) | (two) | (three) | (four) | (five) | (six) | (seven) | (eight) | (nine);
<add> = (plus) | (minus);
#JSGF V1.0;
grammar ToBI_jnuelle;
public <jnuelle> = [tobi] <compute> <number> <add> <number>;
<compute> = (compute) | (calculate);
<number> = (zero) | (one) | (two) | (three) | (four) | (five) | (six) | (seven) | (eight) | (nine);
<add> = (plus) | (minus);
#JSGF V1.0;
grammar ToBI_confirm;
public <shirtcolor> = <pre_sentence> <color> <post_sentence>;
<pre_sentence> = <robot> <greeting> <description>;
<post_sentence> = <cloth> <end>;
<greeting> = (hello | hi)
<description> = (the | a) (he | she | it | person | waiter | object | man | woman) (wears | has | have | yield) (a | an);
<cloth> = (shirt | tshirt | t-shirt | pullover | sweatshirt | jacket | shimmy);
<end> = (today | i think | i guess | you will see | okay | end | conversation over | transmission complete)
<robot> = (tobi) | (robot) | (biron) | (pepper);
<color> = red | blue | yellow | green | black | white | orange | purple | pink | grey | violet | brown
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment