FileData#
- class montreal_forced_aligner.corpus.classes.FileData(name, wav_path, text_path, text_type, relative_path, wav_info=None, speaker_ordering=<factory>, utterances=<factory>)[source]#
Bases:
objectData class for file information
- Parameters:
name (str) – File name
wav_path (str, optional) – Path to sound file
text_path (str, optional) – Path to sound file
relative_path (str) – Path relative to corpus root directory
wav_info (dict[str, Any]) – Information dictionary about the sound file
utterances (list[
UtteranceData]) – Utterance data for the file
- load_text(root_speaker, ensure_root_speaker=False)[source]#
Load the transcription text from the text_file of the object