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 properties

  • file_objects (list[dict[str, Any]]) – List of dictionaries with File properties

  • text_file_objects (list[dict[str, Any]]) – List of dictionaries with TextFile properties

  • sound_file_objects (list[dict[str, Any]]) – List of dictionaries with SoundFile properties

  • speaker_ordering_objects (list[dict[str, Any]]) – List of dictionaries with SpeakerOrdering properties

  • utterance_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