From ec4501d31c388f3c6a64234fe08b3de08353e380 Mon Sep 17 00:00:00 2001 From: Jindrich Matousek Date: Fri, 26 Aug 2022 15:36:01 +0200 Subject: [PATCH] Make artic formatter compatible with changes made to other formatters (root_path is a part of items) --- TTS/tts/datasets/formatters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/tts/datasets/formatters.py b/TTS/tts/datasets/formatters.py index 4ba14ef0..40b26679 100644 --- a/TTS/tts/datasets/formatters.py +++ b/TTS/tts/datasets/formatters.py @@ -599,7 +599,7 @@ def artic(root_path, meta_file, **kwargs): # pylint: disable=unused-argument # In either way, wav name is stored in `cols[0]` and text in `cols[-1]` wav_file = os.path.join(root_path, "wavs", cols[0] + ".wav") text = cols[-1] - items.append({"text": text, "audio_file": wav_file, "speaker_name": speaker_name}) + items.append({"text": text, "audio_file": wav_file, "speaker_name": speaker_name, "root_path": root_path}) return items