From 9729993083997eca737d964249d4c46b50e81256 Mon Sep 17 00:00:00 2001 From: Daniel McKnight <34697904+NeonDaniel@users.noreply.github.com> Date: Mon, 27 Mar 2023 13:11:50 -0700 Subject: [PATCH] Patch `speaker` param checks Relates to #8 --- ovos_tts_plugin_mimic3/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovos_tts_plugin_mimic3/__init__.py b/ovos_tts_plugin_mimic3/__init__.py index 1135e1f..d947794 100644 --- a/ovos_tts_plugin_mimic3/__init__.py +++ b/ovos_tts_plugin_mimic3/__init__.py @@ -107,7 +107,7 @@ def _validate_args_combo(self, lang=None, voice=None, speaker=None): voice = self.default_voices[lang] else: raise ValueError(f"Selected lang {lang} is not supported!") - elif speaker: + elif speaker and isinstance(speaker, str): pass # TODO validate speaker is valid for default voice else: voice = self.voice