ldc_bpcsad.htk.HViteConfig

class ldc_bpcsad.htk.HViteConfig(slf_path: Path, hmmdefs_path: Path, macros_path: Path, config_path: Path, dict_path: Path, monophones_path: Path)[source]

HVite decoding configuration

Parameters:
  • slf_path (pathlib.Path) – Path to HTK SLF file defining the recognition network.

  • hmmdefs_path (pathlib.Path) – Path to HTK MMF file containing HMM definitions.

  • macros_path (pathlib.Path) – Path to HTK MMF file containing additional macro definitions (e.g., variance floors).

  • config_path (pathlib.Path) – Path to HTK configuration file defining expected source audio format and feature extraction pipeline.

  • dict_path (pathlib.Path) – Path to pronunciation dictionary.

  • monophones_path (pathlib.Path) – Path to file listing HMMs to load from the MMF files.

static from_model_dir(model_dir)[source]

Construct HViteConfig from contents ofa model directory.

TODO

Parameters:

model_dir (pathlib.Path) – Model directory.

Return type:

HViteConfig