From 7590c7db7acf884b16e17e17da6db162d71ea2b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=B6lge?= Date: Mon, 12 Jul 2021 12:31:05 +0200 Subject: [PATCH] Fix `base_tacotron` `aux_input` handling --- TTS/tts/models/base_tacotron.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TTS/tts/models/base_tacotron.py b/TTS/tts/models/base_tacotron.py index 66842305..01291775 100644 --- a/TTS/tts/models/base_tacotron.py +++ b/TTS/tts/models/base_tacotron.py @@ -78,7 +78,9 @@ class BaseTacotron(BaseTTS): @staticmethod def _format_aux_input(aux_input: Dict) -> Dict: - return format_aux_input({"d_vectors": None, "speaker_ids": None}, aux_input) + if aux_input: + return format_aux_input({"d_vectors": None, "speaker_ids": None}, aux_input) + return None ############################# # INIT FUNCTIONS