Transcriber#
- class montreal_forced_aligner.transcription.Transcriber(acoustic_model_path, language_model_path, output_type='transcription', **kwargs)[source]#
Bases:
TranscriberMixin
,TopLevelMfaWorker
Class for performing transcription.
- Parameters:
See also
TranscriberMixin
For transcription parameters
AcousticCorpusPronunciationMixin
For corpus and dictionary parsing parameters
FileExporterMixin
For file exporting parameters
TopLevelMfaWorker
For 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