Failed to align audio to trancript: final state of the search is not reached

Help
Ming Chen
2014-08-18
2014-08-19
  • Ming Chen
    Ming Chen
    2014-08-18

    Hi,

    I followed the model adaption instruction and get the following error:
    Failed to align audio to transcript: final state of the search is not reached

    The format of the transcription file is:
    <"s"> go forward ten meters <"/s"> (ming51)
    <"s"> open the door <"/s"> (ming56)
    The quotation mark is added here to avoid the formatting

    The audio files are
    https://www.dropbox.com/s/5a99l6kloi33wh4/ming51.wav
    https://www.dropbox.com/s/74hk8ypl0xsipg0/ming56.wav

    I have in total 80 audio files of this kind and am trying to adapt the model to be robust for accents.

    Here is my adaption setup

    set adapt_wavids=ming_test.fileids
    set adapt_wav=ming
    set adapt_am=en-us
    set bin_dir=bin\Release
    set dict_dir=aop_kws.dic
    set transc_dir=transcription.txt
    set new_model_dir=%adapt_am%_adapted

    mkdir %new_model_dir%

    %bin_dir%\sphinx_fe ^
    -argfile adapt\%adapt_am%\feat.params ^
    -samprate 16000 ^
    -c adapt\%adapt_wav%\%adapt_wavids% ^
    -di adapt\%adapt_wav% ^
    -do adapt\%adapt_wav% ^
    -ei wav ^
    -eo mfc ^
    -mswav yes

    pause

    %bin_dir%\pocketsphinx_mdef_convert -text adapt\%adapt_am%\mdef adapt\%adapt_am%\mdef.txt

    pause

    %bin_dir%\bw ^
    -hmmdir adapt\%adapt_am% ^
    -cepdir adapt\%adapt_wav% ^
    -moddeffn adapt\%adapt_am%\mdef.txt ^
    -ts2cbfn .cont. ^
    -feat 1s_c_d_dd ^
    -cmn current ^
    -agc none ^
    -dictfn adapt\%dict_dir% ^
    -ctlfn adapt\%adapt_wav%\%adapt_wavids% ^
    -lsnfn adapt\%adapt_wav%\%transc_dir% ^
    -accumdir %new_model_dir%

    pause
    %bin_dir%\mllr_solve ^
    -meanfn adapt\%adapt_am%\means ^
    -varfn adapt\%adapt_am%\variances ^
    -outmllrfn %new_model_dir%\mllr_matrix ^
    -accumdir %new_model_dir%

    pause
    %bin_dir%\map_adapt ^
    -meanfn adapt\%adapt_am%\means ^
    -varfn adapt\%adapt_am%\variances ^
    -mixwfn adapt\%adapt_am%\mixture_weights ^
    -tmatfn adapt\%adapt_am%\transition_matrices ^
    -accumdir %new_model_dir% ^
    -mapmeanfn %new_model_dir%\means ^
    -mapvarfn %new_model_dir%\variances ^
    -mapmixwfn %new_model_dir%\mixture_weights ^
    -maptmatfn %new_model_dir%\transition_matrices

    pause

    Thanks

     
    Last edit: Ming Chen 2014-08-18
  • Ming Chen
    Ming Chen
    2014-08-19

    Problem Solved:
    My problem was there were some inconsistencies between mdef and feat.params files I need from en-us, and those I copied to the new model directory.
    As long as the correct files from en-us are copied, it works fine.