Menu

batch_decode.sh

Help
Anati
2011-10-10
2012-09-22
<< < 1 2 (Page 2 of 2)
  • Anati

    Anati - 2011-10-16

    This script for batch_decode.sh :

    sphinx3_decode -cepdir feat -ctl etc/kacst_test.fileids -dict etc/kacst.dic
    -fdict etc/kacst.filler -hyp rec_results.txt -hypseg rec_results_seg.txt -lm
    etc/kacst.lm.DMP -mdef model_architecture/kacst.1000.mdef -mean
    model_parameters/kacst.cd_cont_1000_8/means -mixw
    model_parameters/kacst.cd_cont_1000_8/mixture_weights -tmat
    model_parameters/kacst.cd_cont_1000_8/transition_matrices -var
    model_parameters/kacst.cd_cont_1000_8/variances

    i swap kacst.cd_cont_1000_8 with kacst.cd_cont_1000_4 and the error same !

     
  • Anati

    Anati - 2011-10-17

    plz tell me if i should put my data base path in sphinx 3.cfg file

     
  • Nickolay V. Shmyrev

    i swap kacst.cd_cont_1000_8 with kacst.cd_cont_1000_4 and the error same !

    If you have issues you can always share your whole database folders so your
    problem could be reproduced. You can pack the folder in archive, upload to a
    public file sharing resource and give us a link.

    plz tell me if i should put my data base path in sphinx 3.cfg file

    I'm not sure what "sphinx 3.cfg" file you are talking about. I'm not aware
    about such file in CMUSphinx setup.

     
  • Nickolay V. Shmyrev

    Hello

    Your batch_decode.sh script doesn't work because it has invisible control
    symbol in the end. Its a Windows-style newline \r or hex code 0xd 0xa. You
    need to remove it to make it work. You can do that with the following command:

    dos2unix batch_decode.sh
    

    then you can run it as usual

    sh ./batch_decode.sh
    

    It will work and produce results as expected

    For more details see the tutorial http://cmusphinx.sourceforge.net/wiki/tutor
    ialam

     
  • Anati

    Anati - 2011-10-18

    Mr.nshmyrev Thank you very much

    u r great teacher to us !

    in arabic language : شكرا

    :)

     
  • Nickolay V. Shmyrev

    You are welcome

     
  • Anati

    Anati - 2011-10-18

    Mr.nshmyrev

    I created anew folder caled 949 and put a recorded in it then i excute sh
    ./batch_decode.sh

    but a result was :

    INFO: utt.c(74): Processing: 949-1
    INFO: feat.c(1176): At directory feat
    INFO: feat.c(993): Reading mfc file: 'feat/949/949-1.mfc'[0..-1]
    SYSTEM_ERROR: "pio.c", line 450: stat(feat/949/949-1.mfc) failed; retrying...
    ; No such file or directory
    ERROR: "feat.c", line 1002: Failed to open file 'feat/949/949-1.mfc' for reading: No such file or directory
    FATAL_ERROR: "utt.c", line 120: Cannot read file 949/949-1. Forced exit
    

    why this error and why the system didnt generate feat files ??

     
  • Nickolay V. Shmyrev

    Before decoding you need to extract feature mfc file from the audio file. You
    can do that with sphinx_fe command.

    You did not do that and it says the file is missing. The message should give
    you a hint.

     
  • Anati

    Anati - 2011-10-20

    I did :

    root@ubuntu:/home/anati/Training/sphinxbase/src/sphinx_fe# sudo ./sphinx_fe
    ERROR: "cmd_ln.c", line 675: No arguments given, available options are:
    Arguments list definition:
    [NAME]      [DEFLT]     [DESCR]
    -alpha      0.97        Preemphasis parameter
    -argfile            Argument file (e.g. feat.params from an acoustic model) to read parameters from.  This will override anything set in other command line arguments.
    -blocksize  2048        Number of samples to read at a time.
    -build_outdirs  yes     Create missing subdirectories in output directory
    -c              Control file for batch processing
    -cep2spec   no      Input is cepstral files, output is log spectral files
    -di             Input directory, input file names are relative to this, if defined
    -dither     no      Add 1/2-bit noise
    -do             Output directory, output files are relative to this
    -doublebw   no      Use double bandwidth filters (same center freq)
    -ei             Input extension to be applied to all input files
    -eo             Output extension to be applied to all output files
    -example    no      Shows example of how to use the tool
    -frate      100     Frame rate
    -help       no      Shows the usage of the tool
    -i              Single audio input file
    -input_endian   little      Endianness of input data, big or little, ignored if NIST or MS Wav
    -lifter     0       Length of sin-curve for liftering, or 0 for no liftering.
    -logspec    no      Write out logspectral files instead of cepstra
    -lowerf     133.33334   Lower edge of filters
    -mach_endian    little      Endianness of machine, big or little
    -mswav      no      Defines input format as Microsoft Wav (RIFF)
    -ncep       13      Number of cep coefficients
    -nchans     1       Number of channels of data (interlaced samples assumed)
    -nfft       512     Size of FFT
    -nfilt      40      Number of filter banks
    -nist       no      Defines input format as NIST sphere
    -npart      0       Number of parts to run in (supersedes -nskip and -runlen if non-zero)
    -nskip      0       If a control file was specified, the number of utterances to skip at the head of the file
    -o              Single cepstral output file
    -ofmt       sphinx      Format of output files - one of sphinx, htk, text.
    -part       0       Index of the part to run (supersedes -nskip and -runlen if non-zero)
    -raw        no      Defines input format as raw binary data
    -remove_dc  no      Remove DC offset from each frame
    -round_filters  yes     Round mel filter frequencies to DFT points
    -runlen     -1      If a control file was specified, the number of utterances to process, or -1 for all
    -samprate   16000       Sampling rate
    -seed       -1      Seed for random number generator; if less than zero, pick our own
    -smoothspec no      Write out cepstral-smoothed logspectral files
    -spec2cep   no      Input is log spectral files, output is cepstral files
    -sph2pipe   no      Input is NIST sphere (possibly with Shorten), use sph2pipe to convert
    -transform  legacy      Which type of transform to use to calculate cepstra (legacy, dct, or htk)
    -unit_area  yes     Normalize mel filters to unit area
    -upperf     6855.4976   Upper edge of filters
    -verbose    no      Show input filenames
    -warp_params            Parameters defining the warping function
    -warp_type  inverse_linear  Warping function type (or shape)
    -whichchan  0       Channel to process (numbered from 1), or 0 to mix all channels
    -wlen       0.025625    Hamming window length
    
     
  • Anati

    Anati - 2011-10-20

    I dont know , but i choose alpha 0.97 and this error is appeared

    SYSTEM_ERROR: "sphinx_fe.c", line 125: Failed to open (null); Bad address
    

    Why ?

     
  • Anati

    Anati - 2011-10-22

    What is the argumant for sphinx_fe?
    and what is the form to put path of wav file ??

     
  • Nickolay V. Shmyrev

    What is the argumant for sphinx_fe?
    and what is the form to put path of wav file ??

    sphinx_fe -i file.wav -o file.mfc -argfile etc/feat.params
    

    or

    sphinx_fe -c file.fileids -di wav -ei .wav -do feat -eo .mfc
    

    there are other arguments to append. You can get the list if you run sphinx_fe
    without parameters.

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.