Menu

Error on Acoustic model training, SYSTEM_ERROR: No such file or directory

Help
Shimul
2012-09-26
2012-09-28
  • Shimul

    Shimul - 2012-09-26

    Operating System : Ubuntu 11.10
    Using Software : sphinxbase-0.7 , sphinxtrain-1.0.7 , pocketsphinx-0.7

    after creating the task in my project folder sbs_asr by this command

    ../sphinxtrain/scripts_pl/setup_SphinxTrain.pl -task sbs_asr
    

    i got the folder structre that are required for training. after that when i execute the command

    perl scripts_pl/make_feats.pl -ctl etc/sbs_asr_train.fileids
    

    for feature files making than i got an error

    INFO: sphinx_fe.c(862): Converting /root/tutorial/sbs_asr/wav/sbs_asr_train/sanjoy/011.wav to /root/tutorial/sbs_asr/feat/sbs_asr_train/sanjoy/011.mfc
    SYSTEM_ERROR: "sphinx_fe.c", line 276: Failed to open /root/tutorial/sbs_asr/wav/sbs_asr_train/sanjoy/011.wav; No such file or directory
    

    In this error it says it cant find my wav file but the wav folder contains the file and i can see that it understand my folder stucture too and its correct but why its not finding the wave file i can't understand.

    Please help me to get rid of this error and making the feature files to train the acoustic model.I am badly need this because i am doing my final year project on this topic.
    Details Output
    command

    perl scripts_pl/make_feats.pl -ctl etc/sbs_asr_train.fileids
    

    output

    -cfg not specified, using the default ./etc/sphinx_train.cfg
    -param not specified, using the default ./etc/feat.params
    INFO: cmd_ln.c(691): Parsing command line:
    sphinx_fe
    -verbose yes
    -alpha 0.97
    -doublebw no
    -nfilt 40
    -ncep 13
    -lowerf 133.33334
    -upperf 6855.4976
    -nfft 512
    -wlen 0.0256
    -c etc/sbs_asr_train.fileids
    -raw yes
    -di /root/tutorial/sbs_asr/wav
    -ei wav
    -do /root/tutorial/sbs_asr/feat
    -eo mfc 
    Current configuration:
    NAME DEFLT VALUE
    -alpha 0.97 9.700000e-01
    -argfile
    
    -blocksize 2048 2048
    -build_outdirs yes yes
    -c etc/sbs_asr_train.fileids
    -cep2spec no no
    -di /root/tutorial/sbs_asr/wav
    -dither no no
    -do /root/tutorial/sbs_asr/feat
    -doublebw no no
    -ei wav
    -eo mfc
    -example no no
    -frate 100 100
    -help no no
    -i
    
    -input_endian little little
    -lifter 0 0
    -logspec no no
    -lowerf 133.33334 1.333333e+02
    -mach_endian little little
    -mswav no no
    -ncep 13 13
    -nchans 1 1
    -nfft 512 512
    -nfilt 40 40
    -nist no no
    -npart 0 0
    -nskip 0 0
    -o
    
    -ofmt sphinx sphinx
    -part 0 0
    -raw no yes
    -remove_dc no no
    -round_filters yes yes
    -runlen -1 -1
    -samprate 16000 1.600000e+04
    -seed -1 -1
    -smoothspec no no
    -spec2cep no no
    -sph2pipe no no
    -transform legacy legacy
    -unit_area yes yes
    -upperf 6855.4976 6.855498e+03
    -verbose no yes
    -warp_params
    
    -warp_type inverse_linear inverse_linear
    -whichchan 0 0
    -wlen 0.025625 2.560000e-02
    
    INFO: fe_interface.c(163): Current FE Parameters:
    INFO: fe_interface.c(164): Sampling Rate: 16000.000000
    INFO: fe_interface.c(165): Frame Size: 410
    INFO: fe_interface.c(166): Frame Shift: 160
    INFO: fe_interface.c(167): FFT Size: 512
    INFO: fe_interface.c(168): Lower Frequency: 133.333
    INFO: fe_interface.c(170): Upper Frequency: 6855.5
    INFO: fe_interface.c(172): Number of filters: 40
    INFO: fe_interface.c(173): Number of Overflow Samps: 0
    INFO: fe_interface.c(174): Start Utt Status: 0
    INFO: fe_interface.c(175): Will not remove DC offset at frame level
    INFO: fe_interface.c(182): Will not add dither to audio
    INFO: fe_interface.c(188): Will normalize filters to unit area
    INFO: fe_interface.c(190): Will round filter frequencies to DFT points
    INFO: fe_interface.c(192): Will not use double bandwidth in mel filter
    INFO: sphinx_fe.c(1016): Processing all remaining utterances at position 0
    INFO: sphinx_fe.c(862): Converting /root/tutorial/sbs_asr/wav/sbs_asr_train/sanjoy/011.wav to /root/tutorial/sbs_asr/feat/sbs_asr_train/sanjoy/011.mfc
    SYSTEM_ERROR: "sphinx_fe.c", line 276: Failed to open /root/tutorial/sbs_asr/wav/sbs_asr_train/sanjoy/011.wav; No such file or directory
    

    you can see my etc folder all files,screen-shot of my folders structure and check out the 011.wav file by downloading from this link

    https://docs.google.com/folder/d/0B8hu_3BdFeZoZENKTTY4c0xKelE/edit
    
     
  • Nickolay V. Shmyrev

    Ok the real answer is that in your fileids file there is an invisible UTF-8 BOM character: 0xef 0xbb 0xbf

     00000000 EF BB BF 73 │ 62 73 5F 61 │ 73 72 5F 74 │ 72 61 69 6E │ 2F 73 61 6E  ...sbs_asr_train/san
     00000014 6A 6F 79 2F │ 30 31 31 0A │ 73 62 73 5F │ 61 73 72 5F │ 74 72 61 69  joy/011.sbs_asr_trai
     00000028 6E 2F 73 61 │ 6E 6A 6F 79 │ 2F 30 32 31 │ 0A 73 62 73 │ 5F 61 73  72  n/sanjoy/021.sbs_asr
     0000003C 5F 74 72 61 │ 69 6E 2F 73 │ 61 6E 6A 6F │ 79 2F 30 33 │ 31 0A 73  62  _train/sanjoy/031.sb
     00000050 73 5F 61 73 │ 72 5F 74 72 │ 61 69 6E 2F │ 73 61 6E 6A │ 6F 79 2F 30  s_asr_train/sanjoy/0
    

    Sphinxtrain doesn't know how to hangle this character. Remove this special character from the fileids file in order to run the training.

    For the future use an editor which doesn't insert this character.

     
  • Shimul

    Shimul - 2012-09-28

    Thank you very much Sir.I got my mfc files.

     

Log in to post a comment.