Skip to content

Commit

Permalink
feat/PHAL support
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 5, 2023
1 parent dcf2f96 commit 7e8d499
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hivemind_voice_satellite/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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__':
Expand Down

0 comments on commit 7e8d499

Please sign in to comment.