Skip to content

Commit

Permalink
add site_id (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Sep 12, 2023
1 parent 99d9213 commit de85b83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions hivemind_voice_satellite/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit de85b83

Please sign in to comment.