def from_db_root(self, root, speakers='sound'):
        root = os.path.abspath(root)
        self.root = root
        speakers_info = self._parse_speakers_info()
        speakers_in_wav = _speaker_names_from(os.path.join(self.root,
                                                           self.WAV_DIR))
        speakers_in_txt = _speaker_names_from(os.path.join(self.root,
                                                           self.TXT_DIR))
        if speakers == 'sound':
            speakers = speakers_in_wav
        elif speakers == 'text':
            speakers = speakers_in_txt
        elif speakers == 'info':
            speakers = speakers_info.keys()
        elif speakers == 'everything':
            speakers = set(speakers_info.keys).intersection(
                set(speakers_in_wav)).intersection(set(speakers_in_txt))
        else:
            raise ValueError
        for s in sorted(speakers):
            spkr_id = self.add_speaker(s, speakers_info.get(s, None))
            # Enumerate wavs and / or transcriptions
            snd_records = _records_list_from(self.get_wav_dir(spkr_id), 'wav')
            txt_records = _records_list_from(self.get_txt_dir(spkr_id), 'txt')
            for r in sorted(set(snd_records).union(txt_records)):
                self._build_record(r, spkr_id)
Return |Package| instance loaded with contents of .pptx package at
dataset/ETHPy150Open omangin/multimodal/multimodal/db/models/vctk.py/VCTKDB.from_db_root--crossover with--dataset/ETHPy150Open scanny/python-pptx/pptx/package.py/Package.open