10.3 Saving features to files

Problem

Read this section if you wish to save features extracted with HARK.

Solution

Use SaveFeatures or SaveHTKFeatures module to save features. The SaveFeatures module saves features in float binary format, whereas the SaveHTKFeatures module saves features in HTK format. Figure 10.4 shows a network example, in which features are saved. Here, features are extracted and saved from a 1 channel audio signal read from the AudioStreamFromMic module. Features are saved by assuming the extracted features as inputs of the SaveFeatures module.

\includegraphics[width=120mm]{./fig/recipes/Save-Feature}
Figure 10.4: Sample network for saving features

Discussion

The format used in the SaveFeatures module is 32 bit float and little endian, and the format used in the SaveHTKFeatures modules is HTK. The HTK format is better for training an acoustic model using HTK.

See Also

SaveFeatures and SaveHTKFeatures modules and file format in HARK Document