Skip to content

Kaldi DNN Simple Notes

Ben Chen edited this page Aug 3, 2017 · 3 revisions

Kaldi Deep Nerual Net

References

How to Train a Deep Neural Net Acoustic Model with Kaldi

Intro

Labeled frames(phoneme-to-audio alignements) generated by a GMM-HMM system are needed for DNN trainning.

Directories needed

  1. data/train (generated by local/prepare_data.sh)
  2. data/lang (generated by local/prepare_lang.sh)
  3. exp/tri*_ali (generated by align_si.sh)
  4. mfcc (generated by make_mfcc.sh)

Train

steps/nnet2/train*.sh

obligatory arguments are:

  1. data/train (the trainning data)
  2. data/lang (the language dir)
  3. exp/tri*_ali (the alignments from the previous GMM-HMM model)
  4. $exp_dir (for DNN model to output to)

Decode

steps/nnet2/decode*.sh

6 args:

  1. exp/tri\*/graph (the decoding graph from the GMM-HMM)
  2. data/test (the test data)
  3. $exp_dir/final.mdl (trained DNN acoustic model
  4. UNK (the unknown phone)
  5. SIL (the silence phone
  6. $exp_dir/decode (new dir to save decoding info in (lattices, etc))

utils/best_wer.sh Get the score from the results.

Clone this wiki locally