From 3679853b68397d18518cbc93a53cbcef203360c4 Mon Sep 17 00:00:00 2001 From: lgraesner <laurin.graesner@uni-bielefeld.de> Date: Thu, 30 Nov 2023 13:35:26 +0100 Subject: [PATCH] decreased dynamicConfig sensitivity. Created configs for CoffeeCycle --- psConfig/demos/CoffeeCycle.conf | 28 ++++++++++++++++++++++++++++ psConfig/demos/demoDynamic.conf | 6 +++--- psGrammar/demos/getCalled.jsgf | 7 +++++++ psGrammar/demos/orderCoffee.jsgf | 8 ++++++++ 4 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 psConfig/demos/CoffeeCycle.conf create mode 100644 psGrammar/demos/getCalled.jsgf create mode 100644 psGrammar/demos/orderCoffee.jsgf diff --git a/psConfig/demos/CoffeeCycle.conf b/psConfig/demos/CoffeeCycle.conf new file mode 100644 index 00000000..8706668b --- /dev/null +++ b/psConfig/demos/CoffeeCycle.conf @@ -0,0 +1,28 @@ +[main] +startdb=50; +uttdb=55; +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=orderCoffee; +jsgf=../../psGrammar/demos/orderCoffee.jsgf; +rsbscope=/speechrec/psa/orderCoffee; +bestpath=no; +autoload=yes; + +[pocketsphinxinstance] +name=getCalled; +jsgf=../../psGrammar/demos/getCalled.jsgf; +rsbscope=/speechrec/psa/getCalled; +bestpath=no; +autoload=yes; diff --git a/psConfig/demos/demoDynamic.conf b/psConfig/demos/demoDynamic.conf index c815607a..987d7096 100644 --- a/psConfig/demos/demoDynamic.conf +++ b/psConfig/demos/demoDynamic.conf @@ -1,6 +1,6 @@ [main] -startdb=43; -uttdb=47; +startdb=50; +uttdb=55; silence=400; timeout=8; openDeviceDirectly=yes; @@ -53,4 +53,4 @@ name=bringObject; jsgf=../../psGrammar/demos/bringObject.jsgf; rsbscope=/speechrec/psa/bring_object; bestpath=no; -autoload=yes; \ No newline at end of file +autoload=yes; diff --git a/psGrammar/demos/getCalled.jsgf b/psGrammar/demos/getCalled.jsgf new file mode 100644 index 00000000..208f355b --- /dev/null +++ b/psGrammar/demos/getCalled.jsgf @@ -0,0 +1,7 @@ +#JSGF V1.0; +grammar getCalled; + +public <call> = <robot>; + +<robot> = (tobi | robot | tiago); + diff --git a/psGrammar/demos/orderCoffee.jsgf b/psGrammar/demos/orderCoffee.jsgf new file mode 100644 index 00000000..0834937b --- /dev/null +++ b/psGrammar/demos/orderCoffee.jsgf @@ -0,0 +1,8 @@ +#JSGF V1.0; +grammar orderCoffee; + +public <orderCoffee> = ([<robot>] [please] (give | bring | make) me (a | the) <drink>); + +<drink> = (coffee); + +<robot> = (tobi | robot | tiago); -- GitLab