DatabaseImportData#
- class montreal_forced_aligner.data.DatabaseImportData(speaker_objects=<dataclassy.dataclass.Factory object>, file_objects=<dataclassy.dataclass.Factory object>, text_file_objects=<dataclassy.dataclass.Factory object>, sound_file_objects=<dataclassy.dataclass.Factory object>, speaker_ordering_objects=<dataclassy.dataclass.Factory object>, utterance_objects=<dataclassy.dataclass.Factory object>)[source]#
Bases:
object
Class for storing information on importing data into the database
- Parameters:
speaker_objects (list[dict[str, Any]]) – List of dictionaries with
Speaker
propertiesfile_objects (list[dict[str, Any]]) – List of dictionaries with
File
propertiestext_file_objects (list[dict[str, Any]]) – List of dictionaries with
TextFile
propertiessound_file_objects (list[dict[str, Any]]) – List of dictionaries with
SoundFile
propertiesspeaker_ordering_objects (list[dict[str, Any]]) – List of dictionaries with
SpeakerOrdering
propertiesutterance_objects (list[dict[str, Any]]) – List of dictionaries with
Utterance
properties
- add_objects(other_import)[source]#
Combine objects for two importers
- Parameters:
other_import (
DatabaseImportData
) – Other object with objects to import