Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/PHAL support #27

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading