From 9a8331c0765d89dda5c08ab521c2441047d0c581 Mon Sep 17 00:00:00 2001 From: Adriana Dreyer <adreyer@techfak.uni-bielefeld.de> Date: Thu, 6 Jun 2013 17:51:10 +0200 Subject: [PATCH] weiterer Krimskrams, den die grammatiken brauchen --- .../ToBI_INSPECTION_ROBOT1/MakeVars.models | 16 ++ .../english/ToBI_INSPECTION_ROBOT1/Makefile | 80 ++++++ .../ToBI_INSPECTION_ROBOT1/Makefile.models | 224 +++++++++++++++ .../ToBI_INSPECTION_ROBOT1/Noises.addon.lex | 0 .../ToBI_INSPECTION_ROBOT1.ch | 259 ++++++++++++++++++ .../ToBI_INSPECTION_ROBOT1.grm | 5 +- .../ToBI_INSPECTION_ROBOT1.grm~ | 17 +- .../ToBI_INSPECTION_ROBOT1.phono | 87 ++++++ .../english/ToBI_INSPECTION_ROBOT1/isr | 26 ++ .../english/ToBI_INSPECTION_ROBOT1/isr-mem.sh | 26 ++ .../english/ToBI_INSPECTION_ROBOT1/isr.sh | 26 ++ .../ToBI_INSPECTION_ROBOT1/nlisr/.gitignore | 5 + .../ToBI_INSPECTION_ROBOT1/nlisr/nl-isr.sh | 22 ++ .../english/ToBI_INSPECTION_ROBOT1/rec.sh | 1 + .../english/ToBI_INSPECTION_ROBOT1/sox.sh | 2 + .../ToBI_INSPECTION_ROBOT2/MakeVars.models | 16 ++ .../english/ToBI_INSPECTION_ROBOT2/Makefile | 80 ++++++ .../ToBI_INSPECTION_ROBOT2/Makefile.models | 224 +++++++++++++++ .../ToBI_INSPECTION_ROBOT2/Noises.addon.lex | 0 .../ToBI_INSPECTION_ROBOT2.ch | 259 ++++++++++++++++++ .../ToBI_INSPECTION_ROBOT2.grm | 5 +- .../ToBI_INSPECTION_ROBOT2.grm~ | 16 +- .../ToBI_INSPECTION_ROBOT2.phono | 87 ++++++ .../english/ToBI_INSPECTION_ROBOT2/isr | 26 ++ .../english/ToBI_INSPECTION_ROBOT2/isr-mem.sh | 26 ++ .../english/ToBI_INSPECTION_ROBOT2/isr.sh | 26 ++ .../ToBI_INSPECTION_ROBOT2/nlisr/.gitignore | 5 + .../ToBI_INSPECTION_ROBOT2/nlisr/nl-isr.sh | 22 ++ .../english/ToBI_INSPECTION_ROBOT2/rec.sh | 1 + .../english/ToBI_INSPECTION_ROBOT2/sox.sh | 2 + 30 files changed, 1558 insertions(+), 33 deletions(-) create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT1/MakeVars.models create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT1/Makefile create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT1/Makefile.models create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT1/Noises.addon.lex create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.ch create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.phono create mode 100755 isr-grammar/english/ToBI_INSPECTION_ROBOT1/isr create mode 100755 isr-grammar/english/ToBI_INSPECTION_ROBOT1/isr-mem.sh create mode 100755 isr-grammar/english/ToBI_INSPECTION_ROBOT1/isr.sh create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT1/nlisr/.gitignore create mode 100755 isr-grammar/english/ToBI_INSPECTION_ROBOT1/nlisr/nl-isr.sh create mode 100755 isr-grammar/english/ToBI_INSPECTION_ROBOT1/rec.sh create mode 100755 isr-grammar/english/ToBI_INSPECTION_ROBOT1/sox.sh create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT2/MakeVars.models create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT2/Makefile create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT2/Makefile.models create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT2/Noises.addon.lex create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.ch create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.phono create mode 100755 isr-grammar/english/ToBI_INSPECTION_ROBOT2/isr create mode 100755 isr-grammar/english/ToBI_INSPECTION_ROBOT2/isr-mem.sh create mode 100755 isr-grammar/english/ToBI_INSPECTION_ROBOT2/isr.sh create mode 100644 isr-grammar/english/ToBI_INSPECTION_ROBOT2/nlisr/.gitignore create mode 100755 isr-grammar/english/ToBI_INSPECTION_ROBOT2/nlisr/nl-isr.sh create mode 100755 isr-grammar/english/ToBI_INSPECTION_ROBOT2/rec.sh create mode 100755 isr-grammar/english/ToBI_INSPECTION_ROBOT2/sox.sh diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/MakeVars.models b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/MakeVars.models new file mode 100644 index 00000000..d25ca0c0 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/MakeVars.models @@ -0,0 +1,16 @@ +# MakeVars for biron german + +# grammar name +NAME=ToBI_INSPECTION_ROBOT1 + +# acoustic base model +BASE=wsj1 + +# will not be transcribed +LEXADDON=Noises.addon.lex + +# phonetic transcriptions +PHONOS=../Robocup.phono ToBI_INSPECTION.phono Total.phono + +# language for installation target +LANGUAGE=english diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/Makefile b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/Makefile new file mode 100644 index 00000000..62482384 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/Makefile @@ -0,0 +1,80 @@ +include MakeVars.models + +prefix?=/vol/robocup/2013 +# prefix?=/homes/arothert/workspace/speech/trunk/english/ToBI +module?=$(LANGUAGE)/$(NAME) + + +GRM_FILE=$(NAME).grm + +FILES_TO_INSTALL= \ + $(NAME).ch \ + $(NAME).cl \ + $(NAME).lex \ + $(NAME).swu \ + $(NAME).tree + + +NLISR_FILES_TO_INSTALL= \ + $(NAME).grm \ + $(NAME).lex \ + nlisr/$(NAME).nl-input \ + nlisr/$(NAME).swu \ + nlisr/$(NAME).tree \ + nlisr/nl-isr.sh + +all: links isr nlisr + +clean: + make -f Makefile.models clean + rm -f phones + rm -f $(NAME).cl + rm -f $(NAME).tree + rm -f $(NAME).swu + rm -f $(NAME).lex + rm -f Total.phono + rm -f wsj1.model + rm -f wsj1.state + rm -f wsj1.swu.def + rm -f wsj1.lex + rm -f wsj1.3p.lex + rm -f mapper.py + rm -f nlisr/SetupNL + rm -f nlisr/$(GRM_FILE) + rm -f nlisr/$(NAME).tree + rm -f nlisr/$(NAME).swu + rm -f nlisr/$(NAME).nl-input + +links: + ln -sf /vol/esmeralda/share/models/wsj1/phones phones + ln -sf /vol/esmeralda/share/models/wsj1/wsj1.cl $(NAME).cl + ln -sf /vol/esmeralda/share/models/wsj1/Total.phono Total.phono + ln -sf /vol/esmeralda/share/models/wsj1/wsj1.model wsj1.model + ln -sf /vol/esmeralda/share/models/wsj1/wsj1.state wsj1.state + ln -sf /vol/esmeralda/share/models/wsj1/wsj1.swu.def wsj1.swu.def + ln -sf ../../Makefile.models Makefile.models + ln -sf ../../mapper.py mapper.py + cd nlisr && ln -sf ../../../SetupNL SetupNL + cd nlisr && ln -sf ../$(GRM_FILE) $(GRM_FILE) + +isr: $(NAME).tree +nlisr: nlisr/$(NAME).tree + +$(NAME).tree: $(GRM_FILE) + make -f Makefile.models remove + make -f Makefile.models + +nlisr/$(NAME).tree: $(GRM_FILE) + (cd nlisr && ./SetupNL ../$(NAME).lex) + +install: install-isr install-nlisr + +install-isr: isr + -install -d --mode 2775 $(prefix)/share/SpeechRec/$(module) + cp -Lvf $(FILES_TO_INSTALL) $(NAME).grm $(prefix)/share/SpeechRec/$(module) + +install-nlisr: nlisr + -install -d --mode 2775 $(prefix)/share/SpeechRec/$(module)/nlisr + cp -Lvf $(NLISR_FILES_TO_INSTALL) $(prefix)/share/SpeechRec/$(module)/nlisr + + diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/Makefile.models b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/Makefile.models new file mode 100644 index 00000000..3dd2260b --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/Makefile.models @@ -0,0 +1,224 @@ +# Original Author: Gernot A. Fink + +# Description: Rules for generating customized recognition parameters for +# (ESMERALDA) 'isr' from a pre-defined base model $(BASE).*. +# The lexicon used is extracted from a given grammar $(NAME).grm +# possibly augmented by user defined addons. + +#NAME = biron +#BASE = vm + +include MakeVars.models + +# +# lexica to use +# +LEXBASE = $(NAME).base.lex # will be trancribed! +#LEXADDON = Noises.addon.lex # will not be transcribed! + +# The SAMPA alphabet is used for phoneme symbols. + +# To make own extensions to the list of transcriptions +# use additionals 'Addon-<data>.phono' files. +#PHONOS = Total.phono + +# for generating sub-word units from transcriptions +# +PMOD = mm_pmod +PMOD_OPTS = -l1 -r1 -w +PHONES = phones + +# +# for generating the tree lexicon +# +TREE = mm_tree +TREE_OPTS = + +# +# for generating sub-word unit parameter data +# +SWU = mm_swu +SWU_OPTS = -l 0.000001 + +# +# for cleaning up +# +CLEAN = $(NAME).base.lex \ + $(NAME).lex.new.pho $(NAME).lex.new $(NAME).lex.nonex \ + $(NAME).word2swu.def $(NAME).lex.def $(NAME).swu.def +REMOVE = $(NAME).swu $(NAME).lex $(NAME).tree \ + $(BASE).lex $(BASE).3p.lex + +# +# what we need in the end +# +all: $(NAME).swu $(NAME).lex $(NAME).tree + +# +# extract lexicon of trained words from base model definitions +# +$(BASE).lex: $(BASE).swu.def + @cat $^ \ + | grep -v " ==" \ + | grep -v "^[<\[]" \ + | cut -d" " -f1 \ + | sort -u \ + >$@ + @echo "lexicon of trained words extracted:" $@ + +# +# extract list of known triphones from base model definitions +# +$(BASE).3p.lex: $(BASE).swu.def + @cat $^ \ + | grep " ==" \ + | cut -d" " -f1 \ + | sort -u \ + >$@ + @echo "list of know tri-phones extracted:" $@ + +# +# extract central base lexicon from grammar definition +# +$(LEXBASE): $(NAME).grm + @grm_tab -L $@.tmp $(NAME).grm >/dev/null + @grep -v "^#" $@.tmp >$@ + @rm $@.tmp + @echo "base lexicon extracted from grammar:" $@ + +# +# create mapping lexikon +# +# $(NAME).lex.map: $(BASE).lex +# @cat $(BASE).lex > $@ +# @cut -f1 $(PHONOS) >> $@ + +# +# create effective lexicon from collection of base lexica +# +$(NAME).lex: $(LEXBASE) $(LEXADDON) + @if cat $^ \ + | sort -u \ + | uniq -ic \ + | grep -v '^[[:space:]]*1'; then \ + echo "ERROR: The words above occur multiple times in the lexicon but with different cases."; \ + echo "ERROR: This will result in problems with the grammar module."; \ + exit 1; \ + fi + @cat $^ \ + | sort -u \ + >$@ + @echo "effective lexicon created:" $@ + +# +# determine words not present in base model's lexicon +# +$(NAME).lex.new: $(NAME).lex $(BASE).lex + @cat $(NAME).lex \ + | sort \ + | cut -f2 \ + | comm -23 - $(BASE).lex \ + >$@ + @echo "list of new words generated:" $@ + +# +# find transcriptions for new words +# +$(NAME).lex.new.pho: $(PHONOS) $(NAME).lex.new + @./mapper.py $(PHONOS) < $(NAME).lex.new >$@ + @echo "transcriptions listed in:" $@ + + +# +# check for transcriptions required for new words +# +# NOTE: 'test' need to support the '-s' option to check +# whether a file exists and has non-zero size. +# +$(NAME).lex.nonex: $(NAME).lex.new.pho + @grep "^MISS:" $^ \ + | cut -f2- \ + >$@ + @if [ -s $@ ]; then \ + echo "ERROR: no transcriptions found for:"; \ + cat $@; \ + exit 1; \ + else \ + echo "no missing transcriptions found."; \ + fi + +# +# generate mapping of words to appropriate sub-word unit definitions +# +# NOTE: Only done when no non-transcribed words were found +# above (in '$(NAME).lex.nonex'). +# +$(NAME).word2swu.def: $(NAME).lex.new.pho $(NAME).lex.nonex + @cut -f2- $(NAME).lex.new.pho \ + | $(PMOD) $(PMOD_OPTS) $(PHONES) \ + >$@ + @echo "words mapped to sub-word unit definitions:" $@ + +# +# generate required additional sub-word unit definitions +# +# 1. map unseed triphones to monophoes directly +# 2. add word to triphone mappings +# 3. map unnormalized word definitions to normalized ones +# NOTE: Words identical in normalized and unnormalized form are ignored! +# +$(NAME).swu.def: $(NAME).word2swu.def $(NAME).lex \ + $(BASE).lex $(BASE).3p.lex $(LEXBASE) + @cut -f2 $(NAME).word2swu.def \ + | sed "s/ ;//" \ + | tr " " "\012" \ + | sort -u \ + | comm -23 - $(BASE).3p.lex \ + | sed "s#\(.*\)/\(.*\)/\(.*\)#\1/\2/\3 := /\2/ ;#" \ + >$@ + @cat $(NAME).word2swu.def >>$@ + @echo "additional sub-word unit definitions created:" $@ + +# +# generate lexicon definition (including silence model) +# +$(NAME).lex.def: $(NAME).lex + @echo "TASK.$(NAME) %= {" >$@ + @cat $(NAME).lex \ + | sed 's/$$/ |/' \ + >>$@ + @echo "<sil> } ;" \ + >>$@ + @echo "lexicon definition created:" $@ + +# +# generate tree lexicon for 'isr' recognizer +# +$(NAME).tree: $(NAME).lex.def $(NAME).swu.def \ + $(BASE).model $(BASE).swu.def + @cat $(NAME).lex.def \ + | mm_tree $(BASE).model $(BASE).swu.def $(NAME).swu.def \ + | sort -u \ + >$@ + @echo "tree lexicon created:" $@ + +# +# generate sub-word unit parameter data for 'isr' recognizer +# +$(NAME).swu: $(NAME).lex.def $(NAME).swu.def \ + $(BASE).state $(BASE).model $(BASE).swu.def + @cat $(NAME).lex.def \ + | $(SWU) $(SWU_OPTS) $(BASE).state $(BASE).model $(BASE).swu.def \ + $(NAME).swu.def \ + >$@ + @echo "sub-word unit parameter data created:" $@ + +# +# rules for cleaning up +# +clean: + rm -f $(CLEAN) + +remove: clean + rm -f $(REMOVE) + diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/Noises.addon.lex b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/Noises.addon.lex new file mode 100644 index 00000000..e69de29b diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.ch b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.ch new file mode 100644 index 00000000..1bdb50e8 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.ch @@ -0,0 +1,259 @@ +0 4 4.75 +2.66537 0.460283 0.722534 0.881632 0.771319 0.647087 0.547872 0.471176 0.691693 0.834649 0.694927 0.725007 0.7158 0.72206 0.759329 0.839217 1.01634 0.996053 0.997086 1.02442 0.990176 1.00615 1.17781 1.25187 1.37796 1.54784 1.39192 1.39529 1.43478 1.31847 1.21826 1.76494 1.13124 0.951468 +0 0.35 +0.1 0.6 +0.2 0.95 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.3 1 +0.3 0.95 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.3 1 +0.25 0.95 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.3 1 +0.15 0.95 +0.25 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.2 1 +0.3 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.3 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.2 0.95 +0.25 1 +0.2 1 +0.15 1 +0.15 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.15 1 +0.15 1 +0.25 1 +0.2 1 +0.2 1 +0.3 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.15 1 +0.2 1 +0.15 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.15 1 +0.2 1 +0.15 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.3 1 +0.3 1 +0.55 0.55 +0.85 0.85 +0.7 0.7 +0.35 1 +0.25 1 +0.25 1 +0.9 0.9 +0.2 1 +0.15 1 +0.25 1 +0.3 1 +0.2 1 +0.2 1 +0.2 1 +0.2 0.95 +0.15 0.95 +0.15 0.95 +0.15 0.95 +0.15 0.95 +0.15 0.95 +0.15 0.95 +0.15 0.9 +0.1 0.9 +0.15 0.9 +0.15 0.9 +0.15 0.95 +0.15 0.95 +0.15 0.9 +0.15 0.95 +0.15 0.9 +0.15 0.9 +0.15 0.9 +0.15 0.95 +0.15 0.9 +0.15 0.95 +0.15 0.9 +0.15 0.9 +0.15 0.9 +0.1 0.9 +0.1 0.9 +0.15 0.9 +0.1 0.85 +0.1 0.85 +0.1 0.8 +0.1 0.85 +0.1 0.85 +0.1 0.85 +0.1 0.8 +0.1 0.8 +0.1 0.8 +0.1 0.75 +0.1 0.7 +0.05 0.65 +0.1 0.65 +0.1 0.65 +0.05 0.65 +0.05 0.6 +0.05 0.5 +0.05 0.45 +0.05 0.45 +0.05 0.4 +0.05 0.35 +0.05 0.35 +0.05 0.3 +0.05 0.3 +0.05 0.25 +0 0.25 +0 0.25 +0 0.2 +0 0.25 diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.grm b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.grm index 1b9466d2..66c7f1f9 100644 --- a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.grm +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.grm @@ -1,2 +1,3 @@ -$$S: tobi leave - +$$S: tobi $leave; + +$leave: leave; diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.grm~ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.grm~ index 4fbf2fbe..1b9466d2 100644 --- a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.grm~ +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.grm~ @@ -1,15 +1,2 @@ -$$S: tobi $bye - | $leave - |tobi leave - | $bye; - -$bye: good bye - | good bye tobi - | bye bye - | bye bye tobi - | bye - | bye tobi; - -$leave: you may leave - | leave; - \ No newline at end of file +$$S: tobi leave + diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.phono b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.phono new file mode 100644 index 00000000..625fae7c --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/ToBI_INSPECTION_ROBOT1.phono @@ -0,0 +1,87 @@ +HELLO h3l'oU +BED_ROOM b'3dr,um +BRITTA br'ItA +CAMPARI kAmp'Ari +CD-PLAYER s'id'ipl'eI3r +CELLPHONE s'3lf'oUn +COUCH_TABLE k'aUtS't'eIb@l +CYLINDRIC s@l'IndrIk +DINNER_TABLE d'In3r't'eIb@l +DINETTE daIn'3t +DINING-ROOM d'aInINr,um +DINING_ROOM d'aInINr,um +DISCMAN d'Iskm'En +EGG_SHAPED '3gS'eIpt +ELLIPTIC Il'IptIk +GERNOT g'ErnAt +GUIDE g'aId +HOLE_PUNCHER h'oUlp'VntS3r +IOANNIS j'EnIs +KITCHEN_TABLE k'ItS@n't'eIb@l +KITCHEN k'ItS@n +LEMON_JUICE '3m@ndZ'us +LINUX_BOOK l'In@ksb,Uk +LIVING_ROOM l'IvINr,um +NINETH n'aInT +PARTY p'Arti +PROGRAMMING_BOOK pr'oUgr,EmINb,Uk +PUNCHER p'VntS3r +REBOOT r'ibut +REMOTE_CONTROL rim'oUtk@ntr'oUl +ROBBI r'Abi +RUBIKS_CUBE r'ubikskj'ub +SETTEE s,3tt'i +SHUYIN S'uIn +SIDEBOARD s'aId'b'Ord +SIDEBAR s'aId'b'Ar +SOMETHING_TO_DRINK s'VmTINt'udr'INk +SOMETHING_TO_SMOKE s'VmTINt'usm'oUk +TAPEDECK t'eIpd'3k +THANK-YOU T'ENkj'u +THAT'S-IT D'Ets'It +TOY_COW t'Oik'aU +TV-SET tiv'is'3t +TOBI t'oUbi +TOILET t'Oil@t +ANNIKA AnI'kA +XLEON_ l'E'On +LEON_ eIAn +XSVEN_ svEn +SVEN_ sb3n +XMATTHIAS_ mVt'II'As +MATTHIAS_ nViti3s +TORBEN tObE'n +XJONATHAN_ j'On'Vt'A'n +JONATHAN_ joUnEtAn +JAN_ jEn +XJAN_ j'An +FREDERIC_ fr'@d'Er'Ik +ANDREAS_ V'nd'rEAs +LUCAS_ lU'kA's +XMARCO_ mA'kOO' +MARCO_ mA'koU +DENIS_ dEnI's +FLORIAN_ flO'rI'An +XRAPHAEL_ r'Vf'V'EE3l +SIDE_TABLE s,aId't'eIb@l +YOGHURT j'O'gh'rt +MAGGI mE'gI +THE_PERSON D@'p'3rs@n +XNOODLES mwUdst +NOODLES moUdls +CITEC sAIteIk +DRESSING_ROOM dr'3sINr,um +WASHING_MACHINE w'ASIN'm@S'in +TV tiv'i +DINING_TABLE d'aInIN't'eIb@l +CORNFLAKES k'Ornfl'eIks +PRINGLES pr'INg@ls +KITCHENARY k'ItS@n3ri +TOILET twaID@T +DRAWER D@rO +BACK_DOOR b'Ekd,Or +FRONT_DOOR fr'Vnt'd,Or +KAYLA k'eIla +BATH_ROOM b'ETr,um +CLOEE kl'oU'wi +REGISTRATION_TABLE r,3dZ@str'eIS@n't'eIb@l \ No newline at end of file diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/isr b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/isr new file mode 100755 index 00000000..66efca64 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/isr @@ -0,0 +1,26 @@ +#!/bin/bash + + +cfgname=ToBI_INSPECTION +cfgdir=. + +OPTS="-b70 -l4 -B30 -o -" +SWU=$cfgdir/$cfgname.swu +LEX=$cfgdir/$cfgname.lex +TREE=$cfgdir/$cfgname.tree + +GRM_OPTS="-w 10 -f 5 -i 5 -x 0.3 -I -p ALL" +GRM="-g $cfgdir/$cfgname.grm" +LM_OPTS= +LM=- +CL=$cfgdir/$cfgname.cl +AA=- +FE_OPTS="-p $cfgname.ch" +FE="mfcc 1.4" +SR_OPTS="-B 32 -r4.5 -s46 -u40" +#SR="/dev/dsp" +SR="-" + +# isr [<option> ...] <swu> <lex> <tree> [LM] [CL] [AA] [FE] [SR] +isr $OPTS $SWU $LEX $TREE $GRM_OPTS $GRM $LM_OPTS $LM $CL $AA $FE_OPTS $FE $SR_OPTS $SR + diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/isr-mem.sh b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/isr-mem.sh new file mode 100755 index 00000000..86fa4c22 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/isr-mem.sh @@ -0,0 +1,26 @@ +#!/bin/bash + + +cfgname=ToBI_INSPECTION +cfgdir=. + +OPTS="-b70 -l4 -B30 -o xcf:isr -m xcf:ShortTerm" +SWU=$cfgdir/$cfgname.swu +LEX=$cfgdir/$cfgname.lex +TREE=$cfgdir/$cfgname.tree + +GRM_OPTS="-w 10 -f 5 -i 5 -x 0.3 -I -p STRUC" +GRM="-g $cfgdir/$cfgname.grm" +LM_OPTS= +LM=- +CL=$cfgdir/$cfgname.cl +AA=- +FE_OPTS="-p $cfgname.ch" +FE="mfcc 1.4" +SR_OPTS="-B 32 -r4.5 -s46 -u40" +#SR="/dev/dsp" +SR="-" + +# isr [<option> ...] <swu> <lex> <tree> [LM] [CL] [AA] [FE] [SR] +isr $OPTS $SWU $LEX $TREE $GRM_OPTS $GRM $LM_OPTS $LM $CL $AA $FE_OPTS $FE $SR_OPTS $SR + diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/isr.sh b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/isr.sh new file mode 100755 index 00000000..66efca64 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/isr.sh @@ -0,0 +1,26 @@ +#!/bin/bash + + +cfgname=ToBI_INSPECTION +cfgdir=. + +OPTS="-b70 -l4 -B30 -o -" +SWU=$cfgdir/$cfgname.swu +LEX=$cfgdir/$cfgname.lex +TREE=$cfgdir/$cfgname.tree + +GRM_OPTS="-w 10 -f 5 -i 5 -x 0.3 -I -p ALL" +GRM="-g $cfgdir/$cfgname.grm" +LM_OPTS= +LM=- +CL=$cfgdir/$cfgname.cl +AA=- +FE_OPTS="-p $cfgname.ch" +FE="mfcc 1.4" +SR_OPTS="-B 32 -r4.5 -s46 -u40" +#SR="/dev/dsp" +SR="-" + +# isr [<option> ...] <swu> <lex> <tree> [LM] [CL] [AA] [FE] [SR] +isr $OPTS $SWU $LEX $TREE $GRM_OPTS $GRM $LM_OPTS $LM $CL $AA $FE_OPTS $FE $SR_OPTS $SR + diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/nlisr/.gitignore b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/nlisr/.gitignore new file mode 100644 index 00000000..2ee6ad42 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/nlisr/.gitignore @@ -0,0 +1,5 @@ +/SetupNL +/ToBI_INSPECTION.grm +/ToBI_INSPECTION.nl-input +/ToBI_INSPECTION.swu +/ToBI_INSPECTION.tree diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/nlisr/nl-isr.sh b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/nlisr/nl-isr.sh new file mode 100755 index 00000000..3b6e3e38 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/nlisr/nl-isr.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# +CFGDIR=$(dirname $0) +name=ToBI_INSPECTION +#ISRPATH=/vol/robocup/trunk/bin/ + +OPTS="-l4 -o xcf:isr -m xcf:ShortTerm" + +SWU="$CFGDIR/$name.swu" +LEX="$CFGDIR/$name.lex" +TREE="$CFGDIR/$name.tree" +GRM_OPTS="-p STRUC" +GRM="-g $CFGDIR/$name.grm" + +SR="-" + +export POSIXLY_CORRECT=1 +command="isr $OPTS $SWU $LEX $TREE $GRM_OPTS $GRM $LM_OPTS $LM $CL $AA $FE_OPTS $FE $SR_OPTS $SR < $CFGDIR/$name.nl-input" +#echo $command + +isr_ctrl -rwt isr & +eval $command diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/rec.sh b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/rec.sh new file mode 100755 index 00000000..e92aa6bd --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/rec.sh @@ -0,0 +1 @@ +arecord -r16000 -c1 -traw -fS16_LE diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT1/sox.sh b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/sox.sh new file mode 100755 index 00000000..a15987dd --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT1/sox.sh @@ -0,0 +1,2 @@ +#!/bin/bash +sox "$@" -r16000 -c1 -traw -s -2 - diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/MakeVars.models b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/MakeVars.models new file mode 100644 index 00000000..e91d7bd3 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/MakeVars.models @@ -0,0 +1,16 @@ +# MakeVars for biron german + +# grammar name +NAME=ToBI_INSPECTION_ROBOT2 + +# acoustic base model +BASE=wsj1 + +# will not be transcribed +LEXADDON=Noises.addon.lex + +# phonetic transcriptions +PHONOS=../Robocup.phono ToBI_INSPECTION.phono Total.phono + +# language for installation target +LANGUAGE=english diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/Makefile b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/Makefile new file mode 100644 index 00000000..62482384 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/Makefile @@ -0,0 +1,80 @@ +include MakeVars.models + +prefix?=/vol/robocup/2013 +# prefix?=/homes/arothert/workspace/speech/trunk/english/ToBI +module?=$(LANGUAGE)/$(NAME) + + +GRM_FILE=$(NAME).grm + +FILES_TO_INSTALL= \ + $(NAME).ch \ + $(NAME).cl \ + $(NAME).lex \ + $(NAME).swu \ + $(NAME).tree + + +NLISR_FILES_TO_INSTALL= \ + $(NAME).grm \ + $(NAME).lex \ + nlisr/$(NAME).nl-input \ + nlisr/$(NAME).swu \ + nlisr/$(NAME).tree \ + nlisr/nl-isr.sh + +all: links isr nlisr + +clean: + make -f Makefile.models clean + rm -f phones + rm -f $(NAME).cl + rm -f $(NAME).tree + rm -f $(NAME).swu + rm -f $(NAME).lex + rm -f Total.phono + rm -f wsj1.model + rm -f wsj1.state + rm -f wsj1.swu.def + rm -f wsj1.lex + rm -f wsj1.3p.lex + rm -f mapper.py + rm -f nlisr/SetupNL + rm -f nlisr/$(GRM_FILE) + rm -f nlisr/$(NAME).tree + rm -f nlisr/$(NAME).swu + rm -f nlisr/$(NAME).nl-input + +links: + ln -sf /vol/esmeralda/share/models/wsj1/phones phones + ln -sf /vol/esmeralda/share/models/wsj1/wsj1.cl $(NAME).cl + ln -sf /vol/esmeralda/share/models/wsj1/Total.phono Total.phono + ln -sf /vol/esmeralda/share/models/wsj1/wsj1.model wsj1.model + ln -sf /vol/esmeralda/share/models/wsj1/wsj1.state wsj1.state + ln -sf /vol/esmeralda/share/models/wsj1/wsj1.swu.def wsj1.swu.def + ln -sf ../../Makefile.models Makefile.models + ln -sf ../../mapper.py mapper.py + cd nlisr && ln -sf ../../../SetupNL SetupNL + cd nlisr && ln -sf ../$(GRM_FILE) $(GRM_FILE) + +isr: $(NAME).tree +nlisr: nlisr/$(NAME).tree + +$(NAME).tree: $(GRM_FILE) + make -f Makefile.models remove + make -f Makefile.models + +nlisr/$(NAME).tree: $(GRM_FILE) + (cd nlisr && ./SetupNL ../$(NAME).lex) + +install: install-isr install-nlisr + +install-isr: isr + -install -d --mode 2775 $(prefix)/share/SpeechRec/$(module) + cp -Lvf $(FILES_TO_INSTALL) $(NAME).grm $(prefix)/share/SpeechRec/$(module) + +install-nlisr: nlisr + -install -d --mode 2775 $(prefix)/share/SpeechRec/$(module)/nlisr + cp -Lvf $(NLISR_FILES_TO_INSTALL) $(prefix)/share/SpeechRec/$(module)/nlisr + + diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/Makefile.models b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/Makefile.models new file mode 100644 index 00000000..3dd2260b --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/Makefile.models @@ -0,0 +1,224 @@ +# Original Author: Gernot A. Fink + +# Description: Rules for generating customized recognition parameters for +# (ESMERALDA) 'isr' from a pre-defined base model $(BASE).*. +# The lexicon used is extracted from a given grammar $(NAME).grm +# possibly augmented by user defined addons. + +#NAME = biron +#BASE = vm + +include MakeVars.models + +# +# lexica to use +# +LEXBASE = $(NAME).base.lex # will be trancribed! +#LEXADDON = Noises.addon.lex # will not be transcribed! + +# The SAMPA alphabet is used for phoneme symbols. + +# To make own extensions to the list of transcriptions +# use additionals 'Addon-<data>.phono' files. +#PHONOS = Total.phono + +# for generating sub-word units from transcriptions +# +PMOD = mm_pmod +PMOD_OPTS = -l1 -r1 -w +PHONES = phones + +# +# for generating the tree lexicon +# +TREE = mm_tree +TREE_OPTS = + +# +# for generating sub-word unit parameter data +# +SWU = mm_swu +SWU_OPTS = -l 0.000001 + +# +# for cleaning up +# +CLEAN = $(NAME).base.lex \ + $(NAME).lex.new.pho $(NAME).lex.new $(NAME).lex.nonex \ + $(NAME).word2swu.def $(NAME).lex.def $(NAME).swu.def +REMOVE = $(NAME).swu $(NAME).lex $(NAME).tree \ + $(BASE).lex $(BASE).3p.lex + +# +# what we need in the end +# +all: $(NAME).swu $(NAME).lex $(NAME).tree + +# +# extract lexicon of trained words from base model definitions +# +$(BASE).lex: $(BASE).swu.def + @cat $^ \ + | grep -v " ==" \ + | grep -v "^[<\[]" \ + | cut -d" " -f1 \ + | sort -u \ + >$@ + @echo "lexicon of trained words extracted:" $@ + +# +# extract list of known triphones from base model definitions +# +$(BASE).3p.lex: $(BASE).swu.def + @cat $^ \ + | grep " ==" \ + | cut -d" " -f1 \ + | sort -u \ + >$@ + @echo "list of know tri-phones extracted:" $@ + +# +# extract central base lexicon from grammar definition +# +$(LEXBASE): $(NAME).grm + @grm_tab -L $@.tmp $(NAME).grm >/dev/null + @grep -v "^#" $@.tmp >$@ + @rm $@.tmp + @echo "base lexicon extracted from grammar:" $@ + +# +# create mapping lexikon +# +# $(NAME).lex.map: $(BASE).lex +# @cat $(BASE).lex > $@ +# @cut -f1 $(PHONOS) >> $@ + +# +# create effective lexicon from collection of base lexica +# +$(NAME).lex: $(LEXBASE) $(LEXADDON) + @if cat $^ \ + | sort -u \ + | uniq -ic \ + | grep -v '^[[:space:]]*1'; then \ + echo "ERROR: The words above occur multiple times in the lexicon but with different cases."; \ + echo "ERROR: This will result in problems with the grammar module."; \ + exit 1; \ + fi + @cat $^ \ + | sort -u \ + >$@ + @echo "effective lexicon created:" $@ + +# +# determine words not present in base model's lexicon +# +$(NAME).lex.new: $(NAME).lex $(BASE).lex + @cat $(NAME).lex \ + | sort \ + | cut -f2 \ + | comm -23 - $(BASE).lex \ + >$@ + @echo "list of new words generated:" $@ + +# +# find transcriptions for new words +# +$(NAME).lex.new.pho: $(PHONOS) $(NAME).lex.new + @./mapper.py $(PHONOS) < $(NAME).lex.new >$@ + @echo "transcriptions listed in:" $@ + + +# +# check for transcriptions required for new words +# +# NOTE: 'test' need to support the '-s' option to check +# whether a file exists and has non-zero size. +# +$(NAME).lex.nonex: $(NAME).lex.new.pho + @grep "^MISS:" $^ \ + | cut -f2- \ + >$@ + @if [ -s $@ ]; then \ + echo "ERROR: no transcriptions found for:"; \ + cat $@; \ + exit 1; \ + else \ + echo "no missing transcriptions found."; \ + fi + +# +# generate mapping of words to appropriate sub-word unit definitions +# +# NOTE: Only done when no non-transcribed words were found +# above (in '$(NAME).lex.nonex'). +# +$(NAME).word2swu.def: $(NAME).lex.new.pho $(NAME).lex.nonex + @cut -f2- $(NAME).lex.new.pho \ + | $(PMOD) $(PMOD_OPTS) $(PHONES) \ + >$@ + @echo "words mapped to sub-word unit definitions:" $@ + +# +# generate required additional sub-word unit definitions +# +# 1. map unseed triphones to monophoes directly +# 2. add word to triphone mappings +# 3. map unnormalized word definitions to normalized ones +# NOTE: Words identical in normalized and unnormalized form are ignored! +# +$(NAME).swu.def: $(NAME).word2swu.def $(NAME).lex \ + $(BASE).lex $(BASE).3p.lex $(LEXBASE) + @cut -f2 $(NAME).word2swu.def \ + | sed "s/ ;//" \ + | tr " " "\012" \ + | sort -u \ + | comm -23 - $(BASE).3p.lex \ + | sed "s#\(.*\)/\(.*\)/\(.*\)#\1/\2/\3 := /\2/ ;#" \ + >$@ + @cat $(NAME).word2swu.def >>$@ + @echo "additional sub-word unit definitions created:" $@ + +# +# generate lexicon definition (including silence model) +# +$(NAME).lex.def: $(NAME).lex + @echo "TASK.$(NAME) %= {" >$@ + @cat $(NAME).lex \ + | sed 's/$$/ |/' \ + >>$@ + @echo "<sil> } ;" \ + >>$@ + @echo "lexicon definition created:" $@ + +# +# generate tree lexicon for 'isr' recognizer +# +$(NAME).tree: $(NAME).lex.def $(NAME).swu.def \ + $(BASE).model $(BASE).swu.def + @cat $(NAME).lex.def \ + | mm_tree $(BASE).model $(BASE).swu.def $(NAME).swu.def \ + | sort -u \ + >$@ + @echo "tree lexicon created:" $@ + +# +# generate sub-word unit parameter data for 'isr' recognizer +# +$(NAME).swu: $(NAME).lex.def $(NAME).swu.def \ + $(BASE).state $(BASE).model $(BASE).swu.def + @cat $(NAME).lex.def \ + | $(SWU) $(SWU_OPTS) $(BASE).state $(BASE).model $(BASE).swu.def \ + $(NAME).swu.def \ + >$@ + @echo "sub-word unit parameter data created:" $@ + +# +# rules for cleaning up +# +clean: + rm -f $(CLEAN) + +remove: clean + rm -f $(REMOVE) + diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/Noises.addon.lex b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/Noises.addon.lex new file mode 100644 index 00000000..e69de29b diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.ch b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.ch new file mode 100644 index 00000000..1bdb50e8 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.ch @@ -0,0 +1,259 @@ +0 4 4.75 +2.66537 0.460283 0.722534 0.881632 0.771319 0.647087 0.547872 0.471176 0.691693 0.834649 0.694927 0.725007 0.7158 0.72206 0.759329 0.839217 1.01634 0.996053 0.997086 1.02442 0.990176 1.00615 1.17781 1.25187 1.37796 1.54784 1.39192 1.39529 1.43478 1.31847 1.21826 1.76494 1.13124 0.951468 +0 0.35 +0.1 0.6 +0.2 0.95 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.3 1 +0.3 0.95 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.3 1 +0.25 0.95 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.3 1 +0.15 0.95 +0.25 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.2 1 +0.3 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.3 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.2 0.95 +0.25 1 +0.2 1 +0.15 1 +0.15 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.15 1 +0.15 1 +0.25 1 +0.2 1 +0.2 1 +0.3 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.25 1 +0.25 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.15 1 +0.2 1 +0.15 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.2 1 +0.2 1 +0.2 1 +0.15 1 +0.2 1 +0.15 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.2 1 +0.25 1 +0.3 1 +0.3 1 +0.55 0.55 +0.85 0.85 +0.7 0.7 +0.35 1 +0.25 1 +0.25 1 +0.9 0.9 +0.2 1 +0.15 1 +0.25 1 +0.3 1 +0.2 1 +0.2 1 +0.2 1 +0.2 0.95 +0.15 0.95 +0.15 0.95 +0.15 0.95 +0.15 0.95 +0.15 0.95 +0.15 0.95 +0.15 0.9 +0.1 0.9 +0.15 0.9 +0.15 0.9 +0.15 0.95 +0.15 0.95 +0.15 0.9 +0.15 0.95 +0.15 0.9 +0.15 0.9 +0.15 0.9 +0.15 0.95 +0.15 0.9 +0.15 0.95 +0.15 0.9 +0.15 0.9 +0.15 0.9 +0.1 0.9 +0.1 0.9 +0.15 0.9 +0.1 0.85 +0.1 0.85 +0.1 0.8 +0.1 0.85 +0.1 0.85 +0.1 0.85 +0.1 0.8 +0.1 0.8 +0.1 0.8 +0.1 0.75 +0.1 0.7 +0.05 0.65 +0.1 0.65 +0.1 0.65 +0.05 0.65 +0.05 0.6 +0.05 0.5 +0.05 0.45 +0.05 0.45 +0.05 0.4 +0.05 0.35 +0.05 0.35 +0.05 0.3 +0.05 0.3 +0.05 0.25 +0 0.25 +0 0.25 +0 0.2 +0 0.25 diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.grm b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.grm index a780eb25..99a4d644 100644 --- a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.grm +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.grm @@ -1,2 +1,3 @@ -$$S: biron leave - +$$S: biron $leave; + +$leave: leave; diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.grm~ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.grm~ index 4fbf2fbe..df10cbea 100644 --- a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.grm~ +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.grm~ @@ -1,15 +1,3 @@ -$$S: tobi $bye - | $leave - |tobi leave - | $bye; +$$S: biron $leave; -$bye: good bye - | good bye tobi - | bye bye - | bye bye tobi - | bye - | bye tobi; - -$leave: you may leave - | leave; - \ No newline at end of file +$leave: leave; diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.phono b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.phono new file mode 100644 index 00000000..625fae7c --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/ToBI_INSPECTION_ROBOT2.phono @@ -0,0 +1,87 @@ +HELLO h3l'oU +BED_ROOM b'3dr,um +BRITTA br'ItA +CAMPARI kAmp'Ari +CD-PLAYER s'id'ipl'eI3r +CELLPHONE s'3lf'oUn +COUCH_TABLE k'aUtS't'eIb@l +CYLINDRIC s@l'IndrIk +DINNER_TABLE d'In3r't'eIb@l +DINETTE daIn'3t +DINING-ROOM d'aInINr,um +DINING_ROOM d'aInINr,um +DISCMAN d'Iskm'En +EGG_SHAPED '3gS'eIpt +ELLIPTIC Il'IptIk +GERNOT g'ErnAt +GUIDE g'aId +HOLE_PUNCHER h'oUlp'VntS3r +IOANNIS j'EnIs +KITCHEN_TABLE k'ItS@n't'eIb@l +KITCHEN k'ItS@n +LEMON_JUICE '3m@ndZ'us +LINUX_BOOK l'In@ksb,Uk +LIVING_ROOM l'IvINr,um +NINETH n'aInT +PARTY p'Arti +PROGRAMMING_BOOK pr'oUgr,EmINb,Uk +PUNCHER p'VntS3r +REBOOT r'ibut +REMOTE_CONTROL rim'oUtk@ntr'oUl +ROBBI r'Abi +RUBIKS_CUBE r'ubikskj'ub +SETTEE s,3tt'i +SHUYIN S'uIn +SIDEBOARD s'aId'b'Ord +SIDEBAR s'aId'b'Ar +SOMETHING_TO_DRINK s'VmTINt'udr'INk +SOMETHING_TO_SMOKE s'VmTINt'usm'oUk +TAPEDECK t'eIpd'3k +THANK-YOU T'ENkj'u +THAT'S-IT D'Ets'It +TOY_COW t'Oik'aU +TV-SET tiv'is'3t +TOBI t'oUbi +TOILET t'Oil@t +ANNIKA AnI'kA +XLEON_ l'E'On +LEON_ eIAn +XSVEN_ svEn +SVEN_ sb3n +XMATTHIAS_ mVt'II'As +MATTHIAS_ nViti3s +TORBEN tObE'n +XJONATHAN_ j'On'Vt'A'n +JONATHAN_ joUnEtAn +JAN_ jEn +XJAN_ j'An +FREDERIC_ fr'@d'Er'Ik +ANDREAS_ V'nd'rEAs +LUCAS_ lU'kA's +XMARCO_ mA'kOO' +MARCO_ mA'koU +DENIS_ dEnI's +FLORIAN_ flO'rI'An +XRAPHAEL_ r'Vf'V'EE3l +SIDE_TABLE s,aId't'eIb@l +YOGHURT j'O'gh'rt +MAGGI mE'gI +THE_PERSON D@'p'3rs@n +XNOODLES mwUdst +NOODLES moUdls +CITEC sAIteIk +DRESSING_ROOM dr'3sINr,um +WASHING_MACHINE w'ASIN'm@S'in +TV tiv'i +DINING_TABLE d'aInIN't'eIb@l +CORNFLAKES k'Ornfl'eIks +PRINGLES pr'INg@ls +KITCHENARY k'ItS@n3ri +TOILET twaID@T +DRAWER D@rO +BACK_DOOR b'Ekd,Or +FRONT_DOOR fr'Vnt'd,Or +KAYLA k'eIla +BATH_ROOM b'ETr,um +CLOEE kl'oU'wi +REGISTRATION_TABLE r,3dZ@str'eIS@n't'eIb@l \ No newline at end of file diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/isr b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/isr new file mode 100755 index 00000000..66efca64 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/isr @@ -0,0 +1,26 @@ +#!/bin/bash + + +cfgname=ToBI_INSPECTION +cfgdir=. + +OPTS="-b70 -l4 -B30 -o -" +SWU=$cfgdir/$cfgname.swu +LEX=$cfgdir/$cfgname.lex +TREE=$cfgdir/$cfgname.tree + +GRM_OPTS="-w 10 -f 5 -i 5 -x 0.3 -I -p ALL" +GRM="-g $cfgdir/$cfgname.grm" +LM_OPTS= +LM=- +CL=$cfgdir/$cfgname.cl +AA=- +FE_OPTS="-p $cfgname.ch" +FE="mfcc 1.4" +SR_OPTS="-B 32 -r4.5 -s46 -u40" +#SR="/dev/dsp" +SR="-" + +# isr [<option> ...] <swu> <lex> <tree> [LM] [CL] [AA] [FE] [SR] +isr $OPTS $SWU $LEX $TREE $GRM_OPTS $GRM $LM_OPTS $LM $CL $AA $FE_OPTS $FE $SR_OPTS $SR + diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/isr-mem.sh b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/isr-mem.sh new file mode 100755 index 00000000..86fa4c22 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/isr-mem.sh @@ -0,0 +1,26 @@ +#!/bin/bash + + +cfgname=ToBI_INSPECTION +cfgdir=. + +OPTS="-b70 -l4 -B30 -o xcf:isr -m xcf:ShortTerm" +SWU=$cfgdir/$cfgname.swu +LEX=$cfgdir/$cfgname.lex +TREE=$cfgdir/$cfgname.tree + +GRM_OPTS="-w 10 -f 5 -i 5 -x 0.3 -I -p STRUC" +GRM="-g $cfgdir/$cfgname.grm" +LM_OPTS= +LM=- +CL=$cfgdir/$cfgname.cl +AA=- +FE_OPTS="-p $cfgname.ch" +FE="mfcc 1.4" +SR_OPTS="-B 32 -r4.5 -s46 -u40" +#SR="/dev/dsp" +SR="-" + +# isr [<option> ...] <swu> <lex> <tree> [LM] [CL] [AA] [FE] [SR] +isr $OPTS $SWU $LEX $TREE $GRM_OPTS $GRM $LM_OPTS $LM $CL $AA $FE_OPTS $FE $SR_OPTS $SR + diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/isr.sh b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/isr.sh new file mode 100755 index 00000000..66efca64 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/isr.sh @@ -0,0 +1,26 @@ +#!/bin/bash + + +cfgname=ToBI_INSPECTION +cfgdir=. + +OPTS="-b70 -l4 -B30 -o -" +SWU=$cfgdir/$cfgname.swu +LEX=$cfgdir/$cfgname.lex +TREE=$cfgdir/$cfgname.tree + +GRM_OPTS="-w 10 -f 5 -i 5 -x 0.3 -I -p ALL" +GRM="-g $cfgdir/$cfgname.grm" +LM_OPTS= +LM=- +CL=$cfgdir/$cfgname.cl +AA=- +FE_OPTS="-p $cfgname.ch" +FE="mfcc 1.4" +SR_OPTS="-B 32 -r4.5 -s46 -u40" +#SR="/dev/dsp" +SR="-" + +# isr [<option> ...] <swu> <lex> <tree> [LM] [CL] [AA] [FE] [SR] +isr $OPTS $SWU $LEX $TREE $GRM_OPTS $GRM $LM_OPTS $LM $CL $AA $FE_OPTS $FE $SR_OPTS $SR + diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/nlisr/.gitignore b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/nlisr/.gitignore new file mode 100644 index 00000000..2ee6ad42 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/nlisr/.gitignore @@ -0,0 +1,5 @@ +/SetupNL +/ToBI_INSPECTION.grm +/ToBI_INSPECTION.nl-input +/ToBI_INSPECTION.swu +/ToBI_INSPECTION.tree diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/nlisr/nl-isr.sh b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/nlisr/nl-isr.sh new file mode 100755 index 00000000..3b6e3e38 --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/nlisr/nl-isr.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# +CFGDIR=$(dirname $0) +name=ToBI_INSPECTION +#ISRPATH=/vol/robocup/trunk/bin/ + +OPTS="-l4 -o xcf:isr -m xcf:ShortTerm" + +SWU="$CFGDIR/$name.swu" +LEX="$CFGDIR/$name.lex" +TREE="$CFGDIR/$name.tree" +GRM_OPTS="-p STRUC" +GRM="-g $CFGDIR/$name.grm" + +SR="-" + +export POSIXLY_CORRECT=1 +command="isr $OPTS $SWU $LEX $TREE $GRM_OPTS $GRM $LM_OPTS $LM $CL $AA $FE_OPTS $FE $SR_OPTS $SR < $CFGDIR/$name.nl-input" +#echo $command + +isr_ctrl -rwt isr & +eval $command diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/rec.sh b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/rec.sh new file mode 100755 index 00000000..e92aa6bd --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/rec.sh @@ -0,0 +1 @@ +arecord -r16000 -c1 -traw -fS16_LE diff --git a/isr-grammar/english/ToBI_INSPECTION_ROBOT2/sox.sh b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/sox.sh new file mode 100755 index 00000000..a15987dd --- /dev/null +++ b/isr-grammar/english/ToBI_INSPECTION_ROBOT2/sox.sh @@ -0,0 +1,2 @@ +#!/bin/bash +sox "$@" -r16000 -c1 -traw -s -2 - -- GitLab