ldc_bpcsad.htk.write_hmmdefs

ldc_bpcsad.htk.write_hmmdefs(old_hmmdefs_path, new_hmmdefs_path, speech_scale_factor=1, speech_phones=None)[source]

Modify an HTK hmmdefs file in which speech model acoustic likelihoods are scaled by speech_scale_factor.

Parameters:
  • old_hmmdefs_path (pathlib.Path) – Path to original HTK hmmdefs file.

  • new_hmmsdefs_path (str) – Path for modified HTK hmmdefs file. If file already exists, it will be overwritten.

  • speech_scale_factor (float, optional) – Factor by which speech model acoustic likelihoods are scaled prior to beam search. (Default: 1)

  • speech_phones (Iterable[str], optional) – Names of speech phones. Only relevant when speech_scale_factor != 1. If None, speech_scale_factor has no effect. (Default: None)