Acoustic Model Discussions

Flat
ERROR [+1113] : writing a numpy array into HTK readable format
User: shareefbabu
Date: 11/29/2019 1:02 am
Views: 4244
Rating: 0

Hi,

I'm trying to write "nx2" dimension matrix into HTK readable format using htkmfc.py
Link for htkmfc.py

https://github.com/skerit/cmusphinx/blob/master/SphinxTrain/python/cmusphinx/htkmfc.py


when I write the numpy array using the following code

q= 280000*2 (np array)
feat_writer= htk.fopen('impos.fea',"w",veclen=2)
feat_writer.writeall(q)

it is not writing into HTK readable format...

error is as follows when  I do HList


 HList -h -z  impos.fea
 ERROR [+1113]  IsWave: cannot read HTK Header in File impos.fea
 FATAL ERROR - Terminating program HList



Please help me with any other solution to write the numpy array into HTK readable format to train "HCompV"

Any help is appreciated...
Thanks
Shareef

--- (Edited on 11/29/2019 1:02 am [GMT-0600] by shareefbabu) ---

--- (Edited on 11/29/2019 1:04 am [GMT-0600] by shareefbabu) ---

Re: ERROR [+1113] : writing a numpy array into HTK readable format
User: Rold1940
Date: 2/9/2020 5:46 am
Views: 1951
Rating: 0

Were you able to find a solution? 

--- (Edited on 2/9/2020 5:46 am [GMT-0600] by Rold1940) ---

PreviousNext