diff --git a/ovos_audio/service.py b/ovos_audio/service.py index a538b48..ed168d8 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 not 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,9 @@ 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", "") + if not engine: + return cfg = {"tts": {"module": engine, engine: config.get('tts', {}).get(engine, {})}} self.fallback_tts = TTSFactory.create(cfg)