Transcriber#
- class montreal_forced_aligner.transcription.Transcriber(acoustic_model_path, language_model_path, output_type='transcription', **kwargs)[source]#
Bases:
TranscriberMixin,TopLevelMfaWorkerClass for performing transcription.
- Parameters:
See also
TranscriberMixinFor transcription parameters
AcousticCorpusPronunciationMixinFor corpus and dictionary parsing parameters
FileExporterMixinFor file exporting parameters
TopLevelMfaWorkerFor top-level parameters
- Variables:
acoustic_model (AcousticModel) – Acoustic model
language_model (LanguageModel) – Language model
- create_decoding_graph()[source]#
Create decoding graph for use in transcription
- Raises:
KaldiProcessingError – If there were any errors in running Kaldi binaries
- create_hclgs()[source]#
Create HCLG.fst files for every dictionary being used by a
Transcriber
- create_hclgs_arguments()[source]#
Generate Job arguments for
CreateHclgFunction- Returns:
Per dictionary arguments for HCLG
- Return type:
dict[str,
CreateHclgArguments]
- export_files(output_directory, output_format=None, include_original_text=False)[source]#
Export transcriptions