Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • another_question_fix
  • branch
  • changes
  • cml_speechrec
  • coffeeChanges
  • dict
  • dictUpdate
  • fixed_obj_prop
  • gpsrChanges
  • gpsr_grammar_changes
  • master
  • robocup_workshop_changes
  • robocupchanges
  • snacks
  • stickler
  • workshop
  • pre-robocup2014
  • robocup2014
  • stable-v1
19 results

Target

Select target project
  • deniz.cingoez/robocup-speechrec
  • t.dilger/robocup-speechrec
  • msterz/robocup-speechrec
  • patric.steckstor/robocup-speechrec
  • jennifer.lee/robocup-speechrec
  • jharin/robocup-speechrec
  • f.thiemer/robocup-speechrec
  • augustin.harter/robocup-speechrec
  • jleichert/robocup-speechrec
9 results
Select Git revision
  • master
  • pre-robocup2014
  • robocup2014
  • stable-v1
4 results
Show changes
Showing
with 0 additions and 972 deletions
#!/bin/bash
cfgname=ToBI_FOLLOWME
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
/SetupNL
/ToBI_FOLLOWME.grm
/ToBI_FOLLOWME.nl-input
/ToBI_FOLLOWME.swu
/ToBI_FOLLOWME.tree
$$S: $followMe
| $elevator
| $leave
| $stop
| $confirm_yes
| $confirm_no;
$followMe: tobi follow me
| tobi please follow me
| follow me;
$elevator : follow me into the elevator
| this is the elevator
| this is an elevator
| elevator
| tobi elevator
| lets go into the elevator;
$confirm_yes: tobi please
| tobi yes
| tobi yes please
| yes tobi
| yes please tobi
| yes please
| correct
| correct tobi
| tobi correct
| this is correct
| tobi this is correct
| yes;
$confirm_no: tobi no
| tobi no thanks
| no tobi
| no
| no thanks tobi
| no thanks;
$stop: stop
| tobi stop
| tobi please stop
| tobi stop this;
$leave: tobi leave
| tobi leave the elevator
| leave the elevator
| you may leave
| leave;
\ No newline at end of file
#!/bin/bash
#
CFGDIR=$(dirname $0)
name=ToBI_FOLLOWME
#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 ALL"
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
arecord -r16000 -c1 -traw -fS16_LE
#!/bin/bash
sox "$@" -r16000 -c1 -traw -s -2 -
/Makefile.models
/mapper.py
/phones
/ToBI_FINALE.base.lex
/ToBI_FINALE.cl
/ToBI_FINALE.lex
/ToBI_FINALE.lex.def
/ToBI_FINALE.lex.new
/ToBI_FINALE.lex.new.pho
/ToBI_FINALE.lex.nonex
/ToBI_FINALE.swu
/ToBI_FINALE.swu.def
/ToBI_FINALE.tree
/ToBI_FINALE.word2swu.def
/Total.phono
/wsj1.3p.lex
/wsj1.lex
/wsj1.model
/wsj1.state
/wsj1.swu.def
# MakeVars for biron german
# grammar name
NAME=ToBI_FINALE
# acoustic base model
BASE=wsj1
# will not be transcribed
LEXADDON=Noises.addon.lex
# phonetic transcriptions
PHONOS=../Robocup.phono ToBI_FINALE.phono Total.phono
# language for installation target
LANGUAGE=english
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).lex \
$(NAME).grm \
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
# 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)
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
$$S: $bringDrink
| $confirm_yes
| $confirm_no
| $cleanUp
| $stopPlaying
| $startPlaying
| tobi $yourTurn;
$yourTurn: its your turn
| it is your turn;
$stopPlaying: lets stop here
| lets stop playing
| let us stop here
| let us stop playing;
$startPlaying: let us play a game
| let us play
| lets play a game
| lets play;
$bringDrink: tobi bring me a $drink
| bring me a $drink
| get me a $drink
| tobi get me a $drink
| bring a $drink
| tobi bring a $drink
| tobi get a $drink
| get me the $drink
| bring me the $drink;
$drink: pringles
| milo;
$confirm_no: tobi no
| tobi no thanks
| no tobi
| no
| no thanks tobi
| no thanks;
$confirm_yes: tobi please
| tobi yes
| tobi yes please
| yes tobi
| yes please tobi
| yes please
| correct
| correct tobi
| tobi correct
| this is correct
| tobi this is correct
| yes;
$cleanUp: clean the apartment
| clean up
| clean the tables
| tidy up;
\ No newline at end of file
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
SEVEN_UP s'3v@n'Vp
LEMON_TEA l'3m@nt'i
MINERAL_WATER m'In3r@lw'Ot3r
GATORADE g'3tOr'eId
ORANGE_JUICE 'Or@ndZdZ'us
APPLE_JUICE 'Ep@ldZ'us
TOMATO_SAUCE t@m'eIt,oUs'Os
SOY_SAUCE s'Ois'Os
TEA_BOX t'ib'Aks
HAIR_GEL h'3rdZ'3l
TOOTH_PASTE t'uTp'eIst
TOILET_PAPER t'Oil@tp'eIp3r
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
#!/bin/bash
cfgname=ToBI_FINALE
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
#!/bin/bash
cfgname=ToBI_FINALE
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
#!/bin/bash
cfgname=ToBI_FINALE
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
/SetupNL
/ToBI_FINALE.grm
/ToBI_FINALE.nl-input
/ToBI_FINALE.swu
/ToBI_FINALE.tree
#!/bin/bash
#
CFGDIR=$(dirname $0)
name=ToBI_FINALE
#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 ALL"
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
arecord -r16000 -c1 -traw -fS16_LE