Speech Recognition Engines

Flat
Problem with HCompV - HTK
User: docongthanh
Date: 9/13/2008 4:58 pm
Views: 9619
Rating: 6

Hello everyone,

I'm trying to train the 3-state left-to-right HMM models for speech recognition. Each acoustic feature vector is 39-dimentional which consists of MFCCs, delta and acceleration coefficients (MFCC_D_A)
 
I have used the command as in the HTK book (version 3.2.1)
 
HCompV -C config -f 0.01 -m -S train.scp -M hmm0 proto
 
I have this problem with HCompV, the errors are:
 

HMM Def Error: GetToken: Symbol expected at line 1/col 2/char 1 in \usr\htk\training\....\one.wav

ERROR [+7050] HMError:

HMM Def Error: LoadHMMSet: GetToken failed at line 1/col 0/char -1 in \usr\htk\training\....\one.wav

ERROR [+7050] HMError:

ERROR [+2028] Initialise: LoadHMMSet failed

FATAL ERROR - Terminating program ./HCompV

I think this error comes from the HMM prototype file. In fact, I have tried many ways to correct this error but it still stay and I don't know how to correct it. Does anyone have ideas to solve this problem?

here is my HMM prototype file

  ~o <VecSize> 39 <MFCC_0_D_A> <StreamInfo> 1 39
  ~h "proto"
<BeginHMM>
  <NumStates> 5
  <State> 2 <NumMixes> 1
  <Stream> 1
  <Mixture> 1 1.0000
    <Mean> 39
      0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
    <Variance> 39
      1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
  <State> 3 <NumMixes> 1
  <Stream> 1
  <Mixture> 1 1.0000
    <Mean> 39
      0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
    <Variance> 39
      1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
  <State> 4 <NumMixes> 1
  <Stream> 1
  <Mixture> 1 1.0000
    <Mean> 39
      0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
    <Variance> 39
      1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
  <TransP> 5
   0.000e+0   1.000e+0   0.000e+0   0.000e+0   0.000e+0
   0.000e+0   6.000e-1   4.000e-1   0.000e+0   0.000e+0
   0.000e+0   0.000e+0   6.000e-1   4.000e-1   0.000e+0
   0.000e+0   0.000e+0   0.000e+0   6.000e-1   4.000e-1
   0.000e+0   0.000e+0   0.000e+0   0.000e+0   0.000e+0
<EndHMM>
 

Thanks for your help!

Thanh

 

--- (Edited on 9/13/2008 4:58 pm [GMT-0500] by docongthanh) ---

--- (Edited on 9/13/2008 5:01 pm [GMT-0500] by docongthanh) ---

--- (Edited on 9/13/2008 5:07 pm [GMT-0500] by docongthanh) ---

Re: Problem with HCompV - HTK
User: kmaclean
Date: 9/23/2008 7:46 pm
Views: 4612
Rating: 4

Hi Thanh,

>I have used the command as in the HTK book (version 3.2.1)

Are you running the most current version of the HTK toolkit (r3.4)?

>I think this error comes from the HMM prototype file.

from the HTK book:

_E has energy
_N absolute energy suppressed
_D has delta coefficients
_A has acceleration coefficients
_C is compressed
_Z has zero mean static coef.
_K has CRC checksum
_O has 0’th cepstral coef

Are you sure you can train using MFCC_D_A feature vectors and   MFCC_0_D_A in your proto?  I'm guessing here, but is it possible that you need the "0’th cepstral coef" in your feature vectors in order to use MFCC_0_D_A in your proto?

You find more info by downloading and searching the HTK mailing list archives (note: you need to be logged in to HTK to download these ...):

[   ] htk-users.mbox          09-Feb-2007 14:08   20M  

[   ] htk-developers.mbox 09-Feb-2007 10:36 2.9M

Ken

--- (Edited on 9/23/2008 8:46 pm [GMT-0400] by kmaclean) ---

Re: Problem with HCompV - HTK
User: archana
Date: 5/31/2016 7:34 am
Views: 1751
Rating: 0

HMM Def Error: GetToken: Symbol expected at line 1/col 2/char 1 in Data/archana1.mfc
  ERROR [+7050]  HMError:
HMM Def Error: LoadHMMSet: GetToken failed at line 1/col 0/char -1 in Data/archana1.mfc
  ERROR [+7050]  HMError:
  ERROR [+2028]  Initialise: LoadHMMSet failed
 FATAL ERROR - Terminating program HCompV

--- (Edited on 5/31/2016 7:35 am [GMT-0500] by Visitor) ---

PreviousNext