Code: Create Prototype HTK HMM
Posted on November 16, 2006
One of the things that can be annoying about using HTK is creating the prototype HMM files. I think the first thing any researcher probably does is write a quick little program to generate a prototype from a number of parameters. So here’s my version to save you — the person who found this page on google — the trouble.
MakeHMMPrototype, written by David Dean, 2004
Generates a forward only, diagonal covariance HMM prototype
usage:
MakeHMMPrototype name parameterkind vectorsize numberstates mixturesperstate \
[ streamcount vecsize1 ... vecsizeN ]
name : name of hmm (eg. prototype)
parameterkind : parameter kind (eg. MFCC_0_D_A)
vectorsize : size of feature vector
numberstates : total number of states
mixturesperstate : number of mixtures per state
streamcount ... : multiple-stream support
(vecsize1 + ... + vecsizeN = vectorsize)
You can download the c code to compile to your favorite platform here.
» Filed Under code, howto, htk, speech
Comments
3 Responses to “Code: Create Prototype HTK HMM”
Hey, I found this to be very helpful. Thanks! A comment, though – the newline characters in the printf() statement (\n) are being displayed as simply “n” on this page. Just thought I’d let you know.
Thanks for that Ryan. I’ve changed it to a download link that should work better.
I really found this post helpful. Thanks!