From 7e8d49910d67b9fce9e09172fc2ec0474e24ceba Mon Sep 17 00:00:00 2001 From: JarbasAi Date: Tue, 5 Sep 2023 13:34:06 +0100 Subject: [PATCH] feat/PHAL support --- hivemind_voice_satellite/__main__.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hivemind_voice_satellite/__main__.py b/hivemind_voice_satellite/__main__.py index bec4178..68cdeef 100644 --- a/hivemind_voice_satellite/__main__.py +++ b/hivemind_voice_satellite/__main__.py @@ -2,7 +2,6 @@ from hivemind_bus_client import HiveMessageBusClient from ovos_audio.service import PlaybackService from ovos_utils import wait_for_exit_signal - from hivemind_voice_satellite import VoiceClient @@ -37,10 +36,20 @@ def connect(host, key, password, port, selfsigned): service.daemon = True service.start() + try: + from ovos_PHAL.service import PHAL + phal = PHAL(bus=bus) + phal.start() + except ImportError: + print("PHAL is not available") + phal = None + wait_for_exit_signal() service.stop() audio.shutdown() + if phal: + phal.shutdown() if __name__ == '__main__':