How to read the .mfc file which is created by HTK in python environment

1.1k Views Asked by At

I have some file which are created by HTK file, ended by .mfc. I want to read the file into python3, Is there any solution? Thanks

1

There are 1 best solutions below

0
Mohammad Hassan Sohan Ajini On

This repo does it nicely:

from HTK import HTKFile
import numpy as np

htk_reader = HTKFile()
htk_reader.load(PATH_TO_YOUR_MFC_FILE)
result = np.array(htk_reader.data)

hope it helps.