Menu

adapting an acoustic model

Help
lloyd89
2011-02-07
2012-09-22
  • lloyd89

    lloyd89 - 2011-02-07

    hi i had adapted the acoustic model earlier in ubuntu 9.10 but due to some
    reasons the folder 'adapt' got deleted.now i'm trying to adapt it again in
    ubuntu 10.10,but when i enter

    for i in seq 1 20; do
    fn=printf arctic_%04d $i;
    read sent; echo $sent;
    rec -r 16000 -e signed-integer -b 16 -c 1 $fn.wav 2>/dev/null;
    done < arctic20.txt

    the 20 sentences are displayed in the terminal window continuously whereas
    earlier they used to appear 1 at a time and after the recording was over ,ctrl
    c was to b pressed.

    can u advice wat is the problem.

     
  • Nickolay V. Shmyrev

    The issue is that 'rec' application can't record audio. That's because you
    don't have oss compatibility layer installed probably. You can try to run
    'rec' manually to see what's the difference. Also you can blame Ubuntu
    developers for breaking backward capabilities for such a simple applications.

     
  • lloyd89

    lloyd89 - 2011-02-07

    thanks 4 replying.can you tell me how to run rec manually in the command line.
    also wanted to know will this cause any problems in adapting the acoustic
    model.

     
  • Nickolay V. Shmyrev

    Open the terminal and type

     rec -r 16000 -e signed-integer -b 16 -c 1 out.wav
    

    Read the output

     
  • lloyd89

    lloyd89 - 2011-02-07

    thanks for that.
    when i run : ./bw \
    -hmmdir hub4wsj_sc_8k \
    -moddeffn hub4wsj_sc_8k/mdef.txt \
    -ts2cbfn .semi. \
    -feat 1s_c_d_dd \
    -svspec 0-12/13-25/26-38 \
    -cmn current \
    -agc none \
    -dictfn arctic20.dic \
    -ctlfn arctic20.fileids \
    -lsnfn arctic20.transcription \
    -accumdir .

    i get :
    lloyd@lloydlaptop:~/Adapt$ ./bw -hmmdir hub4wsj_sc_8k -moddeffn
    hub4wsj_sc_8k/mdef.txt -ts2cbfn .semi. -feat 1s_c_d_dd -svspec
    0-12/13-25/26-38 -cmn current -agc none -dictfn arctic20.dic -ctlfn
    arctic20.fileids -lsnfn arctic20.transcription -accumdir .
    INFO: main.c(196): Compiled on Feb 7 2011 at 23:01:04
    ./bw \
    -hmmdir hub4wsj_sc_8k \
    -moddeffn hub4wsj_sc_8k/mdef.txt \
    -ts2cbfn .semi. \
    -feat 1s_c_d_dd \
    -svspec 0-12/13-25/26-38 \
    -cmn current \
    -agc none \
    -dictfn arctic20.dic \
    -ctlfn arctic20.fileids \
    -lsnfn arctic20.transcription \
    -accumdir .

    -help no no
    -example no no
    -hmmdir hub4wsj_sc_8k
    -moddeffn hub4wsj_sc_8k/mdef.txt
    -tmatfn
    -mixwfn
    -meanfn
    -varfn
    -fullvar no no
    -diagfull no no
    -mwfloor 0.00001 1.000000e-05
    -tpfloor 0.0001 1.000000e-04
    -varfloor 0.00001 1.000000e-05
    -topn 4 4
    -dictfn arctic20.dic
    -fdictfn
    -ltsoov no no
    -ctlfn arctic20.fileids
    -nskip
    -runlen -1 -1
    -part
    -npart
    -cepext mfc mfc
    -cepdir
    -phsegext phseg phseg
    -phsegdir
    -outphsegdir
    -sentdir
    -sentext sent sent
    -lsnfn arctic20.transcription
    -accumdir .
    -ceplen 13 13
    -cepwin 0 0
    -agc max none
    -cmn current current
    -varnorm no no
    -silcomp none none
    -sildel no no
    -siltag SIL SIL
    -abeam 1e-100 1.000000e-100
    -bbeam 1e-100 1.000000e-100
    -varreest yes yes
    -meanreest yes yes
    -mixwreest yes yes
    -tmatreest yes yes
    -mllrmat
    -cb2mllrfn .1cls. .1cls.
    -ts2cbfn .semi.
    -feat 1s_c_d_dd 1s_c_d_dd
    -svspec 0-12/13-25/26-38
    -ldafn
    -ldadim 29 29
    -ldaaccum no no
    -timing yes yes
    -viterbi no no
    -2passvar no no
    -sildelfn
    -spthresh 0.0 0.000000e+00
    -maxuttlen 0 0
    -ckptintv
    -outputfullpath no no
    -fullsuffixmatch no no
    -pdumpdir
    INFO: main.c(255): Reading hub4wsj_sc_8k/mdef.txt
    INFO: model_def_io.c(587): Model definition info:
    INFO: model_def_io.c(588): 143097 total models defined (50 base, 143047 tri)
    INFO: model_def_io.c(589): 572388 total states
    INFO: model_def_io.c(590): 5150 total tied states
    INFO: model_def_io.c(591): 150 total tied CI states
    INFO: model_def_io.c(592): 50 total tied transition matrices
    INFO: model_def_io.c(593): 4 max state/model
    INFO: model_def_io.c(594): 4 min state/model
    INFO: s3mixw_io.c(116): Read hub4wsj_sc_8k/mixture_weights
    INFO: s3tmat_io.c(115): Read hub4wsj_sc_8k/transition_matrices
    INFO: mod_inv.c(297): inserting tprob floor 1.000000e-04 and renormalizing
    INFO: s3gau_io.c(166): Read hub4wsj_sc_8k/means
    INFO: s3gau_io.c(166): Read hub4wsj_sc_8k/variances
    INFO: gauden.c(181): 1 total mgau
    INFO: gauden.c(155): 3 feature streams (|0|=13 |1|=13 |2|=13 )
    INFO: gauden.c(192): 256 total densities
    INFO: gauden.c(98): min_var=1.000000e-05
    INFO: gauden.c(170): compute 4 densities/frame
    INFO: main.c(363): Will reestimate mixing weights.
    INFO: main.c(365): Will reestimate means.
    INFO: main.c(367): Will reestimate variances.
    INFO: main.c(369): WIll NOT optionally delete silence in Baum Welch or
    Viterbi.
    INFO: main.c(377): Will reestimate transition matrices
    INFO: main.c(390): Reading main lexicon: arctic20.dic
    INFO: lexicon.c(233): 174 entries added from arctic20.dic
    INFO: main.c(402): Reading filler lexicon: hub4wsj_sc_8k/noisedict
    INFO: lexicon.c(233): 11 entries added from hub4wsj_sc_8k/noisedict
    INFO: main.c(423): Silence Tag SIL
    INFO: corpus.c(1343): Will process all remaining utts starting at 0
    INFO: main.c(622): Reestimation: Baum-Welch
    INFO: main.c(627): Generating profiling information consumes significant CPU
    resources.
    INFO: main.c(628): If you are not interested in profiling, use -timing no
    column defns
    <seq>
    <id>
    <n_frame_in>
    <n_frame_del>
    <n_state_shmm>
    <avg_states_alpha>
    <avg_states_beta>
    <avg_states_reest>
    <avg_posterior_prune>
    <frame_log_lik>
    <utt_log_lik>
    ... timing info ...
    .mfc) failedrctic_0001 arctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    .mfc) failedrctic_0001
    failed. Retrying after sleep...C read of arctic_0001
    FATAL_ERROR: "corpus.c", line 1647: Failed to get the files after 100 retries
    of getting MFCC(about 300 seconds) </utt_log_lik></frame_log_lik></avg_posterior_prune></avg_states_reest></avg_states_beta></avg_states_alpha></n_state_shmm></n_frame_del></n_frame_in></id></seq>

    what could be the problem

     
  • Nickolay V. Shmyrev

    what could be the problem

    The problem is that you are not careful enough and do not read what is written
    for you

     
  • lloyd89

    lloyd89 - 2011-02-08

    i have recorded the wave files and completed the adaptation as given in the
    cmu.wiki 'adapting an acoustic model' up till the part where i we need to
    Convert the sendump and mdef files.when i proceed further with:

    /bw -hmmdir hub4wsj_sc_8k -moddeffn hub4wsj_sc_8k/mdef.txt -ts2cbfn .semi.
    -feat 1s_c_d_dd -svspec 0-12/13-25/26-38 -cmn current -agc none -dictfn
    arctic20.dic -ctlfn arctic20.fileids -lsnfn arctic20.transcription -accumdir

    i get the error :

    FATAL_ERROR: "corpus.c", line 1647: Failed to get the files after 100 retries
    of getting MFCC(about 300 seconds)

     
  • Nickolay V. Shmyrev

    Right, that's because you incorrectly specified the path in fileids file. Your
    fileids file has windows-style newline which is not allowed.

    Application told you that, tuturial also stress that. You just need to read
    the tutorial carefully and do what it does.

     

Log in to post a comment.