Menu

Sphinx3 decode with an4

Help
UF grad
2008-07-21
2012-09-22
  • UF grad

    UF grad - 2008-07-21

    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?

     
    • Nickolay V. Shmyrev

      You forgot to setup the decoder. Choose sphinx3 and follow the tutorial:

      http://www.speech.cs.cmu.edu/sphinx/tutorial.html#setupdecode

       
    • UF grad

      UF grad - 2008-07-22

      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.

       
      • Nickolay V. Shmyrev

        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

         
    • UF grad

      UF grad - 2008-07-23

      Yes. It works now. Thanks alot

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.