I'm trying to adapt wsj model to undersrand only 4 words from me, I have created a bash file and Ive tried near 20 times, but when I run and say "stop", it fails up to 90%. here's my bash file, please let me know, am I doing anything wrong or do I need to train it much more, like 100 times?
#!/bin/bash
for i in {1..4}
do
fn=`printf arctic_%04d $i`;
read sent; echo $sent;
rec -r 16000 -e signed-integer -b 16 -c 1 $fn.wav 2>/dev/null;
done < arctic20.txt
sphinx_fe -argfile Model/feat.params \
-samprate 16000 -c arctic20.fileids -di . -do . \
-ei wav -eo mfc -mswav yes
bw/bw \
-hmmdir Model \
-moddeffn Model/mdef \
-ts2cbfn .cont. \
-feat 1s_c_d_dd \
-cmn current \
-agc none \
-dictfn arctic20.dic \
-ctlfn arctic20.fileids \
-lsnfn arctic20.transcription \
-accumdir .
cp -a Model/* Model.adapted
map_adapt/map_adapt \
-meanfn Model/means \
-varfn Model/variances \
-mixwfn Model/mixture_weights \
-tmatfn Model/transition_matrices \
-accumdir . \
-mapmeanfn Model.adapted/means \
-mapvarfn Model.adapted/variances \
-mapmixwfn Model.adapted/mixture_weights \
-maptmatfn Model.adapted/transition_matrices
cp -r Model.adapted/* ~/NetBeansProjects/sphinx4-1.0beta6/models/acoustic/wsj
cp -r Model.adapted/* Model
And I'm running it over and over again Than I Clean and Build project, and run helloworld demo, I modified .gram file there. btw transcription: < s> stop < /s> (arctic_0001) < s> left < /s> (arctic_0002) < s> right < /s> (arctic_0003) < s> go < /s> (arctic_0004) I added spaces so that here it doesnt read as code here dictionary and fileids are also OK
Thanks
P.S. thanks to dariusz, but it still doesnt work