From de85b83e0dec9692cf83d83b5fdcad0072968910 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Tue, 12 Sep 2023 15:51:07 +0100 Subject: [PATCH] add site_id (#35) --- hivemind_voice_satellite/__main__.py | 5 +++-- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hivemind_voice_satellite/__main__.py b/hivemind_voice_satellite/__main__.py index 2c79741..e21c3be 100644 --- a/hivemind_voice_satellite/__main__.py +++ b/hivemind_voice_satellite/__main__.py @@ -12,7 +12,8 @@ @click.option("--password", help="Password for key derivation", type=str) @click.option("--port", help="HiveMind port number", type=int, default=5678) @click.option("--selfsigned", help="accept self signed certificates", is_flag=True) -def connect(host, key, password, port, selfsigned): +@click.option("--siteid", help="location identifier for message.context", type=str, default="unknown") +def connect(host, key, password, port, selfsigned, siteid): init_service_logger("HiveMind-voice-sat") if not host.startswith("ws"): @@ -27,7 +28,7 @@ def connect(host, key, password, port, selfsigned): host=host, useragent="VoiceSatelliteV0.3.0", self_signed=selfsigned) - bus.connect() + bus.connect(site_id=siteid) # create Audio Output interface (TTS/Music) audio = PlaybackService(bus=bus, disable_ocp=True, validate_source=False) diff --git a/requirements.txt b/requirements.txt index 09a28f6..2cbc489 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -hivemind_bus_client>=0.0.3a2 +hivemind_bus_client>=0.0.4a8 ovos-audio ovos-dinkum-listener>=0.0.2, < 0.1.0 ovos-vad-plugin-webrtcvad