align

aligner.multiprocessing.align(iteration, directory, split_directory, optional_silence, num_jobs, config)[source]

Multiprocessing function that aligns based on the current model

See http://kaldi-asr.org/doc/gmm-align-compiled_8cc.html and http://kaldi-asr.org/doc/gmm-boost-silence_8cc.html for more details on the Kaldi binary this function calls.

Also see https://github.com/kaldi-asr/kaldi/blob/master/egs/wsj/s5/steps/align_si.sh for the bash script this function was based on.

Parameters:
iterationint

Iteration to align

directorystr

Directory of training (monophone, triphone, speaker-adapted triphone training directories)

split_directorystr

Directory of training data split into the number of jobs

optional_silencestr

Colon-separated list of silence phones to boost

num_jobsint

The number of processes to use in calculation

configMonophoneConfig, TriphoneConfig or TriphoneFmllrConfig

Configuration object for training