From edc8831945d834cf70712728f6b9749507d42719 Mon Sep 17 00:00:00 2001 From: miro Date: Wed, 17 Jul 2024 23:29:24 +0100 Subject: [PATCH] respect self.disable_ocp flag --- ovos_audio/audio.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ovos_audio/audio.py b/ovos_audio/audio.py index ec7745f..d30d84e 100644 --- a/ovos_audio/audio.py +++ b/ovos_audio/audio.py @@ -90,6 +90,11 @@ def __init__(self, bus, autoload=True, disable_ocp=False, self.load_services() def find_ocp(self): + if self.disable_ocp: + LOG.info("classic OCP is disabled in config, OCP bus api not available!") + # NOTE: ovos-core should detect this and use the classic audio service api automatically + return + try: from ovos_plugin_common_play import OCPAudioBackend except ImportError: