I am new to the Sphinx tool.
Following the instruction from the website, i was able to create feature vectors in the 2 directories,
"an4_clstk" and "an4test_clstk" under tutorial/feat/
and also finish building an acoustic model.
Now, i am trying to perform the decoding step, by running script_pl/decode/slave.pl
However, it does not work because there is no an4/etc/sphinx_decode.cfg as mentioned in the instruction.
Can anyone point me out where I can get this file?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
mkdir "feat" if (! -e "feat");
open (CTL, "etc/${task}train.fileids")
or die "Could not open control file etc/${task}_train.fileids\n";
while (<CTL>) {
s/[\/\][^\/\]+$//g;
mkpath ("feat/$", 0, 0755) if (! -e "feat/$_");
}
close(CTL);
======================================================================
Should I just change the train to test and re-run the script again?
I see that i have an4_test.fileids file, but the not sphinx_decode.cfg.
Thank you Nickolay for promptly reply my question.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am new to the Sphinx tool.
Following the instruction from the website, i was able to create feature vectors in the 2 directories,
"an4_clstk" and "an4test_clstk" under tutorial/feat/
and also finish building an acoustic model.
Now, i am trying to perform the decoding step, by running script_pl/decode/slave.pl
However, it does not work because there is no an4/etc/sphinx_decode.cfg as mentioned in the instruction.
Can anyone point me out where I can get this file?
You forgot to setup the decoder. Choose sphinx3 and follow the tutorial:
http://www.speech.cs.cmu.edu/sphinx/tutorial.html#setupdecode
I must be missing something. I did run the scripts_pl/setup_tutorial from the tutorial/an4 directory.
My setup_tutoral.pl has only script to setup the train data, but not the decode data.
here is what in the script.
====================================================================
system("perl \"$SphinxTrain_dir/scripts_pl/setup_SphinxTrain.pl\" " .
"-force -sphinxtraindir \"$SphinxTrain_dir\" -task $task");
mkdir "feat" if (! -e "feat");
open (CTL, "etc/${task}train.fileids")
or die "Could not open control file etc/${task}_train.fileids\n";
while (<CTL>) {
s/[\/\][^\/\]+$//g;
mkpath ("feat/$", 0, 0755) if (! -e "feat/$_");
}
close(CTL);
======================================================================
Should I just change the train to test and re-run the script again?
I see that i have an4_test.fileids file, but the not sphinx_decode.cfg.
Thank you Nickolay for promptly reply my question.
Read tutorial carefully. You need to setup tutorial from the decoder as well:
cd sphinx3
If you installed AN4
perl scripts/setup_tutorial.pl an4
If you installed RM1
perl scripts/setup_tutorial.pl rm1
Yes. It works now. Thanks alot