From c3425d56984c464989f96eb7d56f2f97ddca55cc Mon Sep 17 00:00:00 2001 From: jvaquet <jvaquet@techfak.de> Date: Tue, 5 Sep 2023 14:37:51 +0200 Subject: [PATCH] Added grammars for homecoming --- psConfig/homecoming/homecoming.conf | 18 +++++++++++++++++- psGrammar/homecoming/helpGreet.jsgf | 7 +++++++ psGrammar/homecoming/helpPreparation.jsgf | 9 +++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 psGrammar/homecoming/helpGreet.jsgf create mode 100644 psGrammar/homecoming/helpPreparation.jsgf diff --git a/psConfig/homecoming/homecoming.conf b/psConfig/homecoming/homecoming.conf index 1d95fb9b..f7ef2b59 100644 --- a/psConfig/homecoming/homecoming.conf +++ b/psConfig/homecoming/homecoming.conf @@ -18,8 +18,24 @@ autoload=yes; [pocketsphinxinstance] name=assistance; dict=../../../psGrammar/dictionary/tobiDic.dic; -jsgf=../../../psGrammar/homecoming/assistant.jsgf; +jsgf=../../../psGrammar/homecoming/assistance.jsgf; rsbscope=/speechrec/psa/assistance; bestpath=no; autoload=yes; +[pocketsphinxinstance] +name=helpPreparation; +dict=../../../psGrammar/dictionary/tobiDic.dic; +jsgf=../../../psGrammar/homecoming/helpPreparation.jsgf; +rsbscope=/speechrec/psa/helpPreparation; +bestpath=no; +autoload=yes; + +[pocketsphinxinstance] +name=helpGreet; +dict=../../../psGrammar/dictionary/tobiDic.dic; +jsgf=../../../psGrammar/homecoming/helpGreet.jsgf; +rsbscope=/speechrec/psa/helpGreet; +bestpath=no; +autoload=yes; + diff --git a/psGrammar/homecoming/helpGreet.jsgf b/psGrammar/homecoming/helpGreet.jsgf new file mode 100644 index 00000000..13eb17cc --- /dev/null +++ b/psGrammar/homecoming/helpGreet.jsgf @@ -0,0 +1,7 @@ +#JSGF V1.0; +grammar ToBI_helpGreet; +public <statement> = [<robot>] [please] <verb> [<guest>] [please]; + +<verb> = greet | introduce | (let in) | open | (open for) | (open door) | (open the door); +<robot> = (tiago)| (tobi) | (robot); +<guest> = [the | my | our | a] (guest | guests | friend | friends) diff --git a/psGrammar/homecoming/helpPreparation.jsgf b/psGrammar/homecoming/helpPreparation.jsgf new file mode 100644 index 00000000..aa36ad33 --- /dev/null +++ b/psGrammar/homecoming/helpPreparation.jsgf @@ -0,0 +1,9 @@ +#JSGF V1.0; +grammar ToBI_helpPreparation; +public <statement> = [<robot>] [please] [<help_verb>] [to] <verb> [<party>] [please]; + +<help_verb> = (help me) | help | assist; +<verb> = prepare | (make ready) | ready | start; +<robot> = (tiago)| (tobi) | (robot); +<party> = (the party) | (party) | (meeting) | (get together) + -- GitLab