PretrainedAligner

class montreal_forced_aligner.aligner.PretrainedAligner(corpus, dictionary, acoustic_model, align_config, temp_directory=None, call_back=None, debug=False, verbose=False, logger=None)[source]

Class for aligning a dataset using a pretrained acoustic model

Parameters:
corpus : AlignableCorpus

Corpus object for the dataset

dictionary : Dictionary

Dictionary object for the pronunciation dictionary

acoustic_model : AcousticModel

Archive containing the acoustic model and pronunciation dictionary

align_config : AlignConfig

Configuration for alignment

temp_directory : str, optional

Specifies the temporary directory root to save files need for Kaldi. If not specified, it will be set to ~/Documents/MFA

call_back : callable, optional

Specifies a call back function for alignment

Attributes

align_directory
meta
model_directory
use_mp

Methods

align([subset])
compile_information(model_directory, …)
dictionaries_for_job(job_name)
export_textgrids(output_directory) Export a TextGrid file for every sound file in the dataset
generate_pronunciations(output_path[, …])
setup()
export_textgrids(output_directory)[source]

Export a TextGrid file for every sound file in the dataset