From c68d7c09702f6d59aefdfa31d0902c563bbe7286 Mon Sep 17 00:00:00 2001 From: Lord Ivanhoe Date: Thu, 25 Jan 2024 04:19:27 +0100 Subject: [PATCH] remove mimic as default fallback, skip fallback init if empty or same as main TTS --- ovos_audio/service.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ovos_audio/service.py b/ovos_audio/service.py index a538b48..b3aec18 100644 --- a/ovos_audio/service.py +++ b/ovos_audio/service.py @@ -315,8 +315,9 @@ def _maybe_reload_tts(self): self._tts_hash = config.get("module", "") # if fallback TTS is the same as main TTS dont load it - if config.get("module", "") == config.get("fallback_module", ""): - return + if config.get("module", "") == config.get("fallback_module", "") or config.get("fallback_module", "")=="": + LOG.debug("Skipping fallback TTS init, fallback is empty or same as main TTS") + return if not config.get('preload_fallback', True): LOG.debug("Skipping fallback TTS init") @@ -354,7 +355,7 @@ def _get_tts_fallback(self): """Lazily initializes the fallback TTS if needed.""" if not self.fallback_tts: config = Configuration() - engine = config.get('tts', {}).get("fallback_module", "mimic") + engine = config.get('tts', {}).get("fallback_module", "") cfg = {"tts": {"module": engine, engine: config.get('tts', {}).get(engine, {})}} self.fallback_tts = TTSFactory.create(cfg)