Speech Recognition Engines

Flat
HTK CompV HCopy MFCC Problem
User: pmiln099
Date: 2/25/2010 1:45 pm
Views: 8387
Rating: 1

I am new to HTK and am trying to work through a tutorial. I am getting hung up on initializing the HMMs. HCopy seems to work and makes my .mfc file. But HCompV returns errors:

peter@pubuntu:~/bin/htk$ HTKTools/HCompV -C task/seg/copy.cfg -f 0.01 task/data/sentence.mfc -M hmm00/ task/seg/proto
HMM Def Error: GetToken: Symbol expected at line 1/col 2/char 1 in task/data/sentence.mfc
  ERROR [+7050]  HMError:
HMM Def Error: LoadHMMSet: GetToken failed at line 1/col 0/char -1 in task/data/sentence.mfc
  ERROR [+7050]  HMError:
  ERROR [+2028]  Initialise: LoadHMMSet failed

Below are my config and proto files. Where have I gone wrong? Is it in my config file? Or proto file? Here is the config file I am using when running HCopy. I only modify it to read TARGETKIND = MFCC_0_D_A when running HCompV. Do I need to make other changes to the config file?

SOURCEKIND = WAVEFORM 
SOURCEFORMAT = WAV
SOURCERATE = 625.0 # 16KHz sampling rate, in 100ns
TARGETKIND = MFCC_0 # MFCCs are the best choice, C_0 as an energy coefficient
TARGETRATE = 100000.0 # 10 ms targets
SAVECOMPRESSED = T # keep compressed output
SAVEWITHCRC = T # use checksums
WINDOWSIZE = 250000.0 # 25 ms window
USEHAMMING = T # use a hamming window
PREEMCOEF = 0.97 # first order preemphasis
NUMCHANS = 20 # 20 channels filteration
CEPLIFTER = 22 # 22 cepstral filters
NUMCEPS = 12 # make 12 MFCC cepstral coefficients
ENORMALISE = T # normalize intensity of data
NATURALREADORDER = T # Zhi-Jie Yan, p.c.

My proto file file is:

~o <VecSize> 39 <MFCC_0_D_A>
~h "proto"
<BeginHMM>
<NumStates> 5
<State> 2
<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.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Problem
User: nsh
Date: 2/25/2010 2:27 pm
Views: 1120
Rating: 0

The order of arguments you are submitting with HCompV is not correct. Read HTKBook about proper format and examples, also check voxforge tuturial.

 

 

--- (Edited on 2/25/2010 23:27 [GMT+0300] by nsh) ---

Re: HTK CompV HCopy MFCC Problem
User: pipi
Date: 3/27/2014 10:42 pm
Views: 2157
Rating: 1

Hi, I am also a beginner of HTK, and face the same error. I have rearranged the order of arguments, but it didn't work. Have you fix this error? I will appreciate for your suggestion.

--- (Edited on 3/27/2014 10:42 pm [GMT-0500] by Visitor) ---

PreviousNext